Tagged Questions
3
votes
0answers
53 views
How do I get streamlines from matplotlib into ArcGIS?
I am running matplotlib v1.2 with the streamplot.py code to plot streamlines from data in a netcdf file. The plotting is going well but I would like to view the streamlines in Arc so I have been ...
3
votes
0answers
199 views
Efficient way to plotting multiple images with many patches in matplotlib?
I'm writing code which displays features matches between images. The code runs fairly slow at the moment. I have some ideas on how to speed it up, but I'm not 100% comfortable with matplotlib yet or ...
3
votes
0answers
376 views
matplotlib FigureCanvasQTAgg: slow rotation and grid overlaping surface on QWidget
I have widget generated by qtdesigner - optim_plotting_frame.py (code below)
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
...
3
votes
0answers
214 views
Type 1 fonts with log graphs
I'm trying to use Matplotlib graphs as part of a camera-ready
submission, and the publishing house requires the use of Type 1 fonts
only.
I'm finding that the PDF backend happily outputs Type-1 fonts ...
3
votes
0answers
91 views
Periodic Axes class in matplotlib?
I have a collection of latitude/longitude points that straddle the longitude=0 line. I'd like to plot these using a matplotlib Axes class that "wraps" the horizontal dimension such that, when looking ...
3
votes
0answers
167 views
Matplotlib zooming work in conjunction with wxPython ScrolledWindow
I've got a Matplotlib canvas (FigureCanvasWxAgg) that I'm displaying inside of a wx.ScrolledWindow. The problem is that I'd like to have the default zooming and panning functionality of Matplotlib ...
3
votes
0answers
400 views
masking part of a contourf plot in matplotlib
I am trying to produce a filled contour plot in matplotlib using contourf. Data are missing in a jagged pattern near the bottom of the plot. The contour plot turns out blank not only where the ...
2
votes
0answers
54 views
Python Matplotlib 3D line appearing through surface
I am using a mapping to convert points on the surface of a cube to a sphere.
I want to plot the surface of the resulting sphere and lines where the edges of the cube are mapped.
So far, I have tried ...
2
votes
0answers
37 views
How can I animate a 3d object in numpy
I have the following code :
import numpy as np
import matplotlib.pyplot as plt
import mpl_toolkits.mplot3d.axes3d as p3
from matplotlib import animation
fig = plt.figure()
p3.autoscale = True
ax = ...
2
votes
0answers
35 views
Update figure without saving
Using the PGF-backend for matplotlib, I am trying to modify the ticklabels of my logarithmic y-axis. I do not however know beforehand what my ticklabels will be, so I'd like to get the ticklabels with ...
2
votes
0answers
131 views
Getting consistent dash count/length in matplotlib paths
I'm using matplotlib.patheffects to draw a path using a dashed line. My goal is to divide each path into exactly N segments spaced evenly along the path. Since dashes need to be specified in pixel ...
2
votes
0answers
251 views
Matplotlib and wxPython PopupMenu cooperation
I would like to display a context menu over a matplotlib figure inside of a wxPython window when the mouse is clicked.
Unfortunately, after it detects the click, the PopupMenu method is called, but ...
2
votes
0answers
134 views
python matplotlib MKL fatal error on ubuntu 12.04
Here's my python code
1 import matplotlib.pyplot as plt
2 plt.plot([1, 2, 3, 4])
3 ...
2
votes
0answers
71 views
Nicely label lines without legend when axis limits change?
When there are lots of lines on a plot, a legend isn't always the best way to label them. I often do something like this to label the lines at the right-hand edge of the plot:
def p():
fig, ax = ...
2
votes
0answers
163 views
How to display a GTK-widget on top of FigureCanvas in matplotlib
I want to display a button (and other GTK widgets) on top of a matplotlib plot. However it is always displayed below the FigureCanvas.
Here is a minimal example:
import gtk
import matplotlib as mpl
...