Hi Michael,
Michael Droettboom wrote:
Well, that was a good puzzle!
Glad I got your neurons firing.
This seems like a safe fix to me, but anyone who currently extends the
Wx Frame (meaning the whole window etc.) and is unknowingly compensating
for this effect may have problems after my
I'm getting a nonsensical error when attempting to make a simple plot
with a date axis. Googling shows this similar errors, but none with a
date axis. What could be causing this?
import datetime
from pylab import figure, show
fig = figure()
ax = fig.add_subplot(111)
dates =
I suspect there is an .afm font file on your new system that is untested
with matplotlib and exhibiting something new.
I would first try to track down which font file it is, and then send it
to me off list and I'll have a look at what might be tripping up matplotlib.
Cheers,
Mike
Rich Shepard
Matthias Michler wrote:
plot([x1], [y1], bo, [x2], [y2], r+)
This didn't work :-S
- the first time I call show(), execution never comes back to my script
so the code never gets to plot any further points
- if I put the show after the plotting loop (which means I don't get
the live plotting
On Tue, 11 Mar 2008, Chris Withers apparently wrote:
the first time I call show()
http://matplotlib.sourceforge.net/faq.html#SHOW
hth,
Alan Isaac
-
This SF.net email is sponsored by: Microsoft
Defy all challenges.
Alan G Isaac wrote:
On Tue, 11 Mar 2008, Chris Withers apparently wrote:
the first time I call show()
http://matplotlib.sourceforge.net/faq.html#SHOW
Okay, that tells me that I prettymuch don't want to be using show(), but
I don't think I want interactive mode either...
What I'm trying to
Le Sunday 09 March 2008 14:32:05 Eric Firing, vous avez écrit :
[EMAIL PROTECTED] wrote:
Hello,
I have some stupid questions about how to use colorbar.
1) I would like to be able to put the colorbar where I went: top, bottom,
left, right. For what I see I
Ryan May wrote:
Right, the show() command starts the GUI's mainloop, which blocks
execution of the script until you close the figure. What you probably
want is something like the dynamic_demo.py example.
...which barfes for me:
Traceback (most recent call last):
File dynamic_demo.py,
Hello,
I'm using a svn version of matplotlib and the API changed for contour. I want
to have the coordinate of the contour. Before Eric Firing (I think) gave a
solution to do it:
val = contour(xRange,yRange,delchi2,[1])
t = asarray(val.collections[0].get_verts())
but now
Hi,
I've successfully plotted gridded data on a basemap cyl projection
using pcolor:
mp = Basemap(projection=cyl, resolution=l, llcrnrlon=0.0,
urcrnrlon=30.0, llcrnrlat=-5.0, urcrnrlat=5.0)
pc = mp.pcolor(X, Y, zvalsm, cmap=cm.jet)
However, if I simply I change the projection type to merc,
.get_paths() returns a list of Path objects. (See path.py). For each
Path object, you can get an Nx2 array of vertices from its vertices
member. You can also use the iter_segments method to iterate through
each of its vertices, but that's primarily only useful when there may be
bezier
Rich Fought wrote:
Hi,
I've successfully plotted gridded data on a basemap cyl projection
using pcolor:
mp = Basemap(projection=cyl, resolution=l, llcrnrlon=0.0,
urcrnrlon=30.0, llcrnrlat=-5.0, urcrnrlat=5.0)
pc = mp.pcolor(X, Y, zvalsm, cmap=cm.jet)
However, if I simply I change the
Rich: What are X and Y set to? They should be the map projection
coorindates of the grid. If they are latitudes and longitudes, this
will work for 'cyl' but not 'merc'. For 'merc', you must convert the
lats and lons to x and y using
x, y = mp(lon, lat)
-Jeff
Thanks Jeff, that did
Matplotlib users,
I've been using pcolor and pcolormesh to plot results from the NCEP
Reanalysis. I've noticed that the plotted values are slightly offset.
Googling around I see that matlab has this quality, which I assume
matplotlib inherited.
# If your georeferenced image is in
mbauer wrote:
Matplotlib users,
I've been using pcolor and pcolormesh to plot results from the NCEP
Reanalysis. I've noticed that the plotted values are slightly offset.
Googling around I see that matlab has this quality, which I assume
matplotlib inherited.
# If your
Chris Withers wrote:
Matthias Michler wrote:
plot([x1], [y1], bo, [x2], [y2], r+)
This didn't work :-S
- the first time I call show(), execution never comes back to my script
so the code never gets to plot any further points
Okay, thanks to Ryan, I now have this point fixed, however,
Hi, does anyone know of a way to create lines with variable thickness and
color when doing a plot?
Basically, I'd like to have a third dimension represented using thickness.
The API for the plot function states that the line thickness can only be a
single floating point number.
Thanks
On Tue, Mar 11, 2008 at 12:45:21PM -0700, eliss wrote:
Hi, does anyone know of a way to create lines with variable thickness
and color when doing a plot?
Basically, I'd like to have a third dimension represented using
thickness. The API for the plot function states that the line
On Tue, Mar 11, 2008 at 12:45:21PM -0700, eliss wrote:
The API for the plot function states that the line thickness can only be a
single floating point number.
Really? Try
plot([1,2,3], lw=math.pi)
cheers,
steve
-
On 3/11/08, Troels Kofoed Jacobsen [EMAIL PROTECTED] wrote:
On Tue, Mar 11, 2008 at 12:45:21PM -0700, eliss wrote:
Hi, does anyone know of a way to create lines with variable thickness
and color when doing a plot?
Basically, I'd like to have a third dimension represented using
On Tue, Mar 11, 2008 at 01:23:04PM -0700, eliss wrote:
On 3/11/08, Troels Kofoed Jacobsen [EMAIL PROTECTED] wrote:
On Tue, Mar 11, 2008 at 12:45:21PM -0700, eliss wrote:
Hi, does anyone know of a way to create lines with variable
thickness
and color
On Tue, Mar 11, 2008 at 01:23:55PM -0700, eliss wrote:
On 3/11/08, Steve Schmerler [EMAIL PROTECTED] wrote:
On Tue, Mar 11, 2008 at 12:45:21PM -0700, eliss wrote:
The API for the plot function states that the line thickness can only be
a
single floating point number.
Really?
22 matches
Mail list logo