[Matplotlib-users] Matplotlib hi

2011-05-31 Thread zane . selvans
Matplotlib you won't be disappointed http://g.msn.com.br/BR9/1369.0?http://cnbc7.com/news -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery optio

[Matplotlib-users] quiver() color arrays?

2009-08-07 Thread Zane Selvans
Hey there, I'm trying to plot a bunch-o-vectors, colored red or blue, depending on whether their magnitude is positive or negative (they represent stresses), and I'm doing something like this: mag1 = evals[:,0] ex1 = evecs[:,0,1] ey1 = evecs[:,0,0] C1 = np.where(mag1 >= 0, 'red', 'blue') mag2

[Matplotlib-users] Wrong download link for MPL 0.99?

2009-08-06 Thread Zane Selvans
For some reason the download link on the Matplotlib pages is pointing to Basemap 0.99.4 instead of Matplotlib 0.99.0. I did a clean checkout of the v0_99_0 tag: svn checkout https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/tags/v0_99_0 and built/installed it, and that seems to have gone

Re: [Matplotlib-users] Axes.frame vs. Axes.spines in SVN Basemap and Matplotlib? (was New contourf()...)

2009-06-16 Thread Zane Selvans
which is for some >> reason outlining the >>     polygons in the filled contours. >> >>     """ >>     from numpy.random import uniform, seed >>     from matplotlib.mlab import griddata >>     import matplotlib.pyplot as plt >>     impor

Re: [Matplotlib-users] Quiver plot of a netcdf file

2009-06-15 Thread Zane Selvans
Okay, so in the "variables" section, what you've got is a list of things which vary as a function of the "dimensions" listed in the previous section (time, nsr_delta, lat, lon). I don't remember which of the NetCDF file reading libraries you're using, but using Jeff's older netCDF3 interface, you

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-15 Thread Zane Selvans
plt.savefig('broken_contourf.pdf') plt.savefig('broken_contourf.png') On Fri, Jun 12, 2009 at 3:02 PM, Zane Selvans wrote: > I switched back to using the macosx backend, and it turns out that the > thin black lines surrounding the polygons (including crossing the >

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Zane Selvans
, Zane Selvans wrote: > If I set path.simplify: False, the shape of the gaps between the > filled polygons does change.  Instead of being irregular, it becomes > an infinitessimally thin gap of uniform width, allowing the (in this > case white) background to show through. > > In b

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Zane Selvans
ilename, rather than using show(). > > Cheers, > Mike > > Zane Selvans wrote: >> >> Um, yeah.  So my response got bounced because of the attachment.  Take 2: >> >> For some reason my script bombed when I switched to the Agg backend, >> trying to displa

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Zane Selvans
avior if you switch to the Agg backend?  That's the > backend used to generate the images in the gallery.  If there's a difference > there, that would seem to suggest some tweaking of the macosx backend (which > is still relatively new) is in order. > > Mike > > Zan

[Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-11 Thread Zane Selvans
I just installed the latest SciPy Superpack in order to get access to the scipy.spatial.KDTree class, and discovered that for some reason now when I use contourf() lines get drawn at the boundaries between the filled contours. Additionally, there is always a single vertical line crossing from each

Re: [Matplotlib-users] least squares fitting of great circle to points on a sphere

2009-04-21 Thread Zane Selvans
On Fri, Aug 8, 2008 at 10:35 AM, Charles R Harris wrote: > > > On Mon, Aug 4, 2008 at 11:48 AM, Zane Selvans wrote: >> >> Does anyone out there happen to know a simple algorithm for least >> squares fitting a great circle to a given set of lat/lon points on a >>

[Matplotlib-users] Generating N regularly spaced points on a sphere

2009-04-14 Thread Zane Selvans
Is there a method built into Numpy/SciPy or friends that will generate a set of N points evenly (regularly - not randomly) sampling the entire surface of a sphere? I imagine people doing GCMs and other geoscience in spherical coordinates have to do this pretty frequently, so I'm sure someone's wri

[Matplotlib-users] mathtext acting weird under macosx backend

2008-12-18 Thread Zane Selvans
of the interpreter, and deleted the font cache from my .matplotlib directory, restarted, and the problem persisted. Any suggestions? I don't have any of the alternate tex rendering options set in my rcfile, just using plain mathtext. -- Zane Selvans Amateur Earthling z...@i

[Matplotlib-users] Legends for multi-histograms

2008-12-10 Thread Zane Selvans
l one patch from each returned list of patches afterward. Would make legend creation easier anyway. Just a suggestion, Zane -- Zane Selvans Amateur Earthling [EMAIL PROTECTED] 303/815-6866 http://zaneselvans.org PGP Key: 55E0815F --

[Matplotlib-users] Plotting w/ cyclic boundaries

2008-11-26 Thread Zane Selvans
uld see it being more generally useful when dealing with a periodic space where what you're interested in is the phase. Or maybe this already exists and I'm just not seeing it? -- Zane Selvans Amateur Earthling [EMAIL PROTECTED] 303/815-6866 http://zaneselvans.o

[Matplotlib-users] Unable to manipulate tick labels Basemap

2008-11-26 Thread Zane Selvans
l (non-Basemap) figures, I can do something like: for ticklabel in ax.get_xticklabels(): ticklabel.set_size('x-small') to re-size them after the fact, but on the Basemap axes, get_xticklabels() returns a zero length list. Does anybody know where are these things hiding? Thanks! Z

Re: [Matplotlib-users] Problems with LaTeX symbols

2008-11-24 Thread Zane Selvans
es, and the mpl-data/fonts directory that's getting installed in my site- packages only has 99 sub-entries. But maybe they aren't supposed to be the same? Dunno. So for now I can only get my math symbols to render with text.usetext turned on. I'll read up on the text f

Re: [Matplotlib-users] Problems with, LaTeX symbols, axes rescaling

2008-11-24 Thread Zane Selvans
the matplotlib source distribution Thanks again! Zane -- Zane Selvans Amateur Earthling [EMAIL PROTECTED] 303/815-6866 http://zaneselvans.org PGP Key: 55E0815F - This SF.Net email is sponsored by the Moblin Your M

[Matplotlib-users] Problems with, LaTeX symbols, axes rescaling

2008-11-24 Thread Zane Selvans
hich they're being displayed. This happens even when I do a figure.show() at the end of the script. Some of the lines will draw, but not all of them. Is this a familiar problem? Thanks for any suggestions... Zane -- Zane Selvans Amateur Earthling [EMAIL PROTECTED

Re: [Matplotlib-users] Filling between curves conditionally

2008-11-23 Thread Zane Selvans
ng the list of polygon vertices to always explicitly include the points of intersection between the functions being filled_between? Or maybe just by increasing the number of vertices, though I assume that would slow things down. -- Zane Selvans Amateur Earth

Re: [Matplotlib-users] Filling between curves conditionally

2008-11-23 Thread Zane Selvans
that Chris Fonnesbeck puts out at http://macinscience.org Unfortunately some of the versions of stuff being pulled in there are kind of stale it looks like. Maybe I should give it another go from source or pre-built SVN binaries. Has it gotten any easier lately? Zane -- Zane Selvan

[Matplotlib-users] Filling between curves conditionally

2008-11-22 Thread Zane Selvans
Does anybody know of an easy way to take two intersecting curves, A(x) and B(x), and fill the areas between them only when A(x) < B(x) and not when A(x) > B(x)? -- Zane Selvans Amateur Earthling [EMAIL PROTECTED] 303/815-6866 http://zaneselvans.org PGP Key: 55

Re: [Matplotlib-users] Multi-histogram example generates errors

2008-11-13 Thread Zane Selvans
somewhere too, but having this kind of disconnect between what people have installed, and what the default doc refers to, will probably create other headaches too. Just my $0.02, Zane -- Zane Selvans Amateur Earthling [EMAIL PROTECTED] 303/815-6866 http://zaneselvans.org PGP Key

[Matplotlib-users] Multi-histogram example generates errors

2008-11-12 Thread Zane Selvans
229 """ --> 230 return array(a, dtype, copy=False, order=order) 231 232 def asanyarray(a, dtype=None, order=None): ValueError: setting an array element with a sequence. -- Zane Selvans Amateur Earthling [EMAIL PROTE

Re: [Matplotlib-users] limiting theta in polar axis plots

2008-10-17 Thread Zane Selvans
windrose.html http://www.nabble.com/windrose-OO-td16298025.html but with a mind toward a particular kind of application (windrose diagrams obviously :). But I think allowing users to specify (thetamin, thetamax, offset) would be a very generally applicable improvement. Thanks again, Zane

[Matplotlib-users] limiting theta in polar axis plots

2008-10-17 Thread Zane Selvans
f the examples or documentation though. If it's not possible now, I think it would be a wonderful addition. Thanks, Zane -- Zane Selvans Amateur Earthling [EMAIL PROTECTED] 303/815-6866 http://zaneselvans.org PGP Key

Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-17 Thread Zane Selvans
he main page, in the "Need Help?" section, I'm seeing a bunch of weird gunk that's probably not supposed to be getting through to the web...: That seems to have been fixed in the meantime. Still seeing it? Yep, looks good. Thanks for all your work! -- Zane Selvans Ama

Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-16 Thread Zane Selvans
k the user guide, the >>>>>> .r6222 href="faq/index.html">faq, the api docs, archives, and join the matplotlib mailing lists >>>>>>> .r6221 You can file bugs, patches and feature requests on the sourceforge tracker, but it is a good i

Re: [Matplotlib-users] Figures missing from matplotlib documentation?

2008-10-13 Thread Zane Selvans
On Oct 9, 2008, at 12:55 PM, John Hunter wrote: On Thu, Oct 9, 2008 at 2:40 PM, Zane Selvans <[EMAIL PROTECTED]> wrote: I too often feel like I'm just hacking my way around in Matplotlib, without understanding how it is actually "supposed" to be used (i.e. how it was d

Re: [Matplotlib-users] How do I make a legend for Line2D objects in Basemap, colored using a colormap?

2008-10-09 Thread Zane Selvans
On Oct 9, 2008, at 7:08 AM, Ryan May wrote: > Zane Selvans wrote: >> Zane Selvans <[EMAIL PROTECTED]> writes: >> >>> I also need to create a >>> colorbar to act as a legend, describing what the colors of the lines >>> means, in terms of values asso

Re: [Matplotlib-users] How do I make a legend for Line2D ob jects in Basemap, colored using a colormap?

2008-10-09 Thread Zane Selvans
Zane Selvans <[EMAIL PROTECTED]> writes: > > I'm plotting a bunch of lines on a map. They're being colored > according to the value of an attribute associated with the objects > they represent, using a colormap. However, I also need to create a > colorbar

[Matplotlib-users] How do I make a legend for Line2D objects in Basemap, colored using a colormap?

2008-10-08 Thread Zane Selvans
ms like this is something that should be trivially easy, but I don't see how to do it in the documentation anywhere. Thanks for any insight you might have... Zane -- Zane Selvans Amateur Earthling [EMAIL PROT

[Matplotlib-users] Plotting loop refuses to update display on OS X

2008-10-04 Thread Zane Selvans
the plotting routine from ipython 0.8.3 using the -pylab option. The same script previously worked fine under Matplotlib 0.98.1 Other plotting routines from the same module seem to work fine - it's only this plot within a loop that's giving me trouble. Any ideas? -- Zane Selvan

Re: [Matplotlib-users] Slow drawing of many lines in Basemap

2008-08-25 Thread Zane Selvans
On Aug 22, 2008, at 5:08 AM, Jeff Whitaker wrote: > Zane Selvans wrote: >> I'm drawing several hundred lines at a time, each consisting of >> 10-100 points, and it takes a couple of minutes for them all to >> display, which makes me think I must be doing somethi

[Matplotlib-users] Slow drawing of many lines in Basemap

2008-08-20 Thread Zane Selvans
lines to draw? I'm sure there is and I'm just being dense. Argh. -- Zane Selvans Amateur Earthling http://zaneselvans.org [EMAIL PROTECTED] 303/815-6866 PGP Key: 55E0815F - This SF.Net email is sponsored by th

Re: [Matplotlib-users] Using OGR/GDAL objects with Basemap

2008-08-06 Thread Zane Selvans
a pain. Just curious if there was >> anything out there to build on already... >> >> Thanks! >> >> -- >> Zane Selvans >> Amateur Earthling >> http://zaneselvans.org >> [EMAIL PROTECTED] >> 303/815-6866 >> PGP Key: 55E0815F >

[Matplotlib-users] Using OGR/GDAL objects with Basemap

2008-08-06 Thread Zane Selvans
ready... Thanks! -- Zane Selvans Amateur Earthling http://zaneselvans.org [EMAIL PROTECTED] 303/815-6866 PGP Key: 55E0815F - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest L

[Matplotlib-users] least squares fitting of great circle to points on a sphere

2008-08-04 Thread Zane Selvans
Does anyone out there happen to know a simple algorithm for least squares fitting a great circle to a given set of lat/lon points on a sphere? Seems like it might not be a crazy thing to add to the library. Thanks! Zane -- Zane Selvans Amateur Earthling http://zaneselvans.org [EMAIL

[Matplotlib-users] cyclic longitude in Basemap

2008-08-01 Thread Zane Selvans
side to the other, connecting the two portions of the feature. There's this function "addcyclic", but I don't think it does what I want. Actually, I'm not exactly clear on what it does. Thanks for any insight you might have, Zane -- Zane Selvans Amateur Earthling

Re: [Matplotlib-users] from pylab import nx?

2008-03-18 Thread Zane Selvans
? The NetworkX guys would probably know. -- Zane Selvans Amateur Human [EMAIL PROTECTED] 303/815-6866 PGP Key: 55E0815F begin:vcard fn:Zane Selvans n:Selvans;Zane org:Earthlings adr:;;200 S. Parkwood Ave.;Pasadena;CA;91107;USA email;internet:[EMAIL PROTECTED] title:Amateur Human tel;cell:(303) 815

Re: [Matplotlib-users] Analyzing unprojected (spherical, geodetic) vector data and Matplotlib

2008-03-14 Thread Zane Selvans
nd send it to the map for visualization. Mostly I need to be able to analyze it. Thanks for any suggestions on packages to look at. I should dig deeper into Basemap to see what all it does. Zane Jeff Whitaker wrote: Zane Selvans wrote: Hello all, I need to do analysis of vector data (linear fea

[Matplotlib-users] Analyzing unprojected (spherical, geodetic) vector data and Matplotlib

2008-03-14 Thread Zane Selvans
uths), best-fit great circles, etc. Thanks for any recommendations you might have, Zane -- Zane Selvans Amateur Human [EMAIL PROTECTED] 303/815-6866 PGP Key: 55E0815F begin:vcard fn:Zane Selvans n:Selvans;Zane org:Earthlings adr:;;200 S. Parkwood Ave.;Pasadena;CA;91107;USA email;internet:[EMAIL

[Matplotlib-users] NetCDF input/output/plotting using Matplotlib w/ Basemap

2008-03-08 Thread Zane Selvans
emap and SciPy, does anyone have a good recommendation for which NetCDF Python package to use? Or issues I should consider? Thanks for any insight, Zane -- Zane Selvans Amateur Human [EMAIL PROTECTED] 303/815-6866 PGP Key: 55E0815F begin:vcard fn:Zane Selvans n:Selvans;Zane org:Earthlings adr:;