[Matplotlib-users] Matplotlib using OpenGL

2007-04-27 Thread Ryan May
just can't go back. Has anyone tried making an OpenGL backend? If not, can anyone think of any reason why it couldn't be done, maybe using wx's GLCanvas? Any comments, or starting points on where I could see how to go about this would be _greatly_ appreciated. Thanks, Ryan -- Ryan May

Re: [Matplotlib-users] default shading for pcolor

2007-07-20 Thread Ryan May
to the list this time.) +1 for default 'flat' (either way) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.net email is sponsored by: Microsoft Defy all challenges

Re: [Matplotlib-users] matplotlib - representation of nan values in 2D

2007-09-26 Thread Ryan May
with the NaN points deleted before calling hist() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual

[Matplotlib-users] Bug in errorbar/docstring?

2007-12-04 Thread Ryan May
into agreement. Thanks, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop

Re: [Matplotlib-users] power law fitting of data

2007-12-06 Thread Ryan May
variables to make it a linear fit problem: log(y) = log(a * x^b) = log(a) + b * log(x) So just do the linear regression with the logarithms of x and y, and the slope you get back will be b, and the intercept will be log(a). Ryan -- Ryan May Graduate Research Assistant School of Meteorology

Re: [Matplotlib-users] Plot a complex sequence (newb)

2008-02-07 Thread Ryan May
, then try: pylab.plot(s.real) pylab.plot(s.imag) pylab.show() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.net email is sponsored by: Microsoft Defy all challenges

Re: [Matplotlib-users] Legend problem

2008-02-07 Thread Ryan May
a list of patch objects is returned by the calls to bar, and legend seems to only use the first two objects from the *first* list. The question is, is it a bug, because it *is* very unexpected behavior? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] Legend problem

2008-02-07 Thread Ryan May
Ryan May wrote: chombee wrote: My legend shows both plots as the same colour (blue) when in fact they are different colours. Here's the relevant code: font = FontProperties(size='small'); ... b1 = bar(i,lowermeans,width,color='b') b2 = bar(i+width,uppermeans,width,color='y

[Matplotlib-users] Basemap 0.9.9 ImportError

2008-02-11 Thread Ryan May
_geod import Geod as _Geod ImportError: /usr/lib64/python2.5/site-packages/matplotlib/toolkits/basemap/_geod.so: undefined symbol: pj_errno Any clues as to why this would be happening? As far as I can tell, pj_errno would be in Proj, which basemap has a version of internally. Ryan -- Ryan May

[Matplotlib-users] Interactive Replotting

2008-03-05 Thread Ryan May
Axis') t = threading.Thread(name='Plot', target=update_plot, args=(ax,)) t.start() P.show() Can anyone point me in the right direction? Thanks, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] Interactive Replotting

2008-03-05 Thread Ryan May
Ryan May wrote: Hi, I'm trying to get matplotlib to replot a pcolor image as data in a file is updated. What's the proper way to do this? The best approach I could come up with is as follows: Ok, I hadn't noticed the dynamic_image_gtkagg.py example before. I'm pretty sure this will do

[Matplotlib-users] Colorbar requires mappable?

2008-03-07 Thread Ryan May
. Is there any to create a colorbar without first actually plotting an image? If not, is there any reason colorbar couldn't be modified to work using only a norm and a cmap? Thanks, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] LinearSegmentedColormap

2008-03-12 Thread Ryan May
://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R

Re: [Matplotlib-users] best way to display an imshow() with the correct shape ?

2008-03-12 Thread Ryan May
fiddling with fig.subplots_adjust() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008

Re: [Matplotlib-users] LinearSegmentedColormap

2008-03-13 Thread Ryan May
regardless. So, for example, a normalized data value of 0.25 gets an RGB tuple of (0.5333,0.5333,0.5333). HTH, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.net email

Re: [Matplotlib-users] ./make.py html fails

2008-06-09 Thread Ryan May
and very useful, and it puts a nice public face on all the hard work you've done. My hat off to you. Keep it up. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - Check out the new

Re: [Matplotlib-users] Creating an oceanographic profile with matplotlib

2008-06-13 Thread Ryan May
doesn't care about dependent or independent variables. With plot(x,y), one variable gets mapped to the x-axis, one gets mapped to the y-axis. 2)ax.set_ylim says that the call is (min,max), but what it really means is (lower,upper). This could probably be clearer in the docs. HTH, Ryan -- Ryan

Re: [Matplotlib-users] colorbar

2008-06-18 Thread Ryan May
() fig.subplots_adjust(top=0.85) ax = fig.add_axes([0.12, 0.9, 0.8, 0.05]) plt.colorbar(cax=ax, orientation='horizontal') Hope this helps, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] Animated bar graph question

2008-06-22 Thread Ryan May
to on) bar(10+0.25, 4) Try adding a clf(), which clears the current figure, in between the calls to bar. Another option is to use hold(False) signals that you want a new plotting command to start from a clean slate. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University

Re: [Matplotlib-users] Customizing Quiver

2008-06-27 Thread Ryan May
closer to the present quiver than a windbarb version would. In any case, if you can come up with a good windbarb class, that would be great. I expect Jeff Whitaker would like to add that to basemap, too. Eric Ryan May wrote: Hi, Has anyone ever tried to modify quiver to change away

Re: [Matplotlib-users] legend in pylab

2008-06-29 Thread Ryan May
for the plot If I understand you correctly, what I think you want are: title() xlabel() ylabel() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - Check out the new SourceForge.net

Re: [Matplotlib-users] Fwd: Re: Autonomous display of image/plot/figure

2008-07-09 Thread Ryan May
there is some magic that occurs that runs the mainloop in a separate thread. What do you need to do after the call to show()? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - Sponsored

Re: [Matplotlib-users] keeping axis settings while adding data

2008-07-09 Thread Ryan May
the dynamic_image_gtkagg.py approach for (what I think is) a similar use case to yours. Before finding that one, I went through a variety of approaches with threading, ion()/ioff() and draw(). Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] Fwd: Re: Autonomous display of image/plot/figure

2008-07-10 Thread Ryan May
. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project

Re: [Matplotlib-users] Fwd: Re: Autonomous display of image/plot/figure

2008-07-12 Thread Ryan May
calls to show() fail to return? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your

Re: [Matplotlib-users] Fwd: Re: Autonomous display of image/plot/figure

2008-07-14 Thread Ryan May
to the command prompt. Do you happen to have a small complete example that replicates your problems that you could post here? Also, what are your versions of matplotlib and PyGtk (you are using GtkAgg, right)? Also, what OS are you running? Devs, what do you think? Ryan -- Ryan May Graduate

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-17 Thread Ryan May
example for this. Please take it in the spirit of fun it was intended. That's freaking hilarious. Someone clearly has too much time on their hands. (Yeah right.) Goes to show the power of matplotlib though. Nice one. Ryan -- Ryan May Graduate Research Assistant School of Meteorology

Re: [Matplotlib-users] Can I update symbol positions and colors in a collection?

2008-07-17 Thread Ryan May
shouldn't code up a patch? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based

[Matplotlib-users] basemap.transform_vector

2008-07-20 Thread Ryan May
Jeff, Is there any way to get transform_vector to only adjust the vector for the projection, not do any interpolation? I have a set of irregularly arranged points, so I'm unsure how to make it work. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] Wind Barb plots

2008-07-24 Thread Ryan May
(without having *too* much more code. Thanks, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build

Re: [Matplotlib-users] NaN bugs

2008-07-25 Thread Ryan May
is numpy.nanmax() and numpy.nanmin() which properly handle NaN's in your array. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sponsored by the Moblin Your Move

Re: [Matplotlib-users] Surf, mesh, and friends

2008-07-25 Thread Ryan May
(with python bindings) (http://www.vtk.org) or Mayavi2 (https://svn.enthought.com/enthought/wiki/MayaVi). Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email

Re: [Matplotlib-users] Generating an isosurface (mesh) out of a 3d array [SEC=UNCLASSIFIED]

2008-08-21 Thread Ryan May
about them on the enthought-dev mailing list. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build

Re: [Matplotlib-users] I'm wrecked

2008-08-21 Thread Ryan May
-- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win

Re: [Matplotlib-users] pylab.boxplot

2008-09-04 Thread Ryan May
. Either way the docstring is wrong. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest

Re: [Matplotlib-users] canvas.print_figure printing a variable amount of my figure

2008-10-06 Thread Ryan May
internally--such as a renderer.dpi setting that is ignored during rendering. Comments? +1 On your suggestion. I agree this is confusing at times. Unfortunately, I don't have any time to offer for code at this time. (Hopefully more time for MPL soon!) Ryan -- Ryan May Graduate Research Assistant

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

2008-10-09 Thread Ryan May
a LineCollection object. Hope this helps, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest

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

2008-10-23 Thread Ryan May
=/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

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

2008-10-23 Thread Ryan May
John Hunter wrote: On Thu, Oct 23, 2008 at 9:53 AM, Ryan May [EMAIL PROTECTED] wrote: I'll comment that the new site looks absolutely awesome. I've turned quite a few heads around here when I show people the new site and docs, especially the gallery. Great work guys! One question, how

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

2008-10-23 Thread Ryan May
John Hunter wrote: On Thu, Oct 23, 2008 at 10:51 AM, Ryan May [EMAIL PROTECTED] wrote: I've done it for barbs and I'll see if I notice anything else as time allows. Obviously I'm biased towards certain functionality. :) I'm guessing you guys have to do regenerate the docs and push them

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

2008-10-24 Thread Ryan May
John Hunter wrote: On Thu, Oct 23, 2008 at 10:51 AM, Ryan May [EMAIL PROTECTED] wrote: I've done it for barbs and I'll see if I notice anything else as time allows. Obviously I'm biased towards certain functionality. :) I'm guessing you guys have to do regenerate the docs and push them

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

2008-10-24 Thread Ryan May
leak, maybe not. Obviously, being an assertion, it only does this when debugging is enabled (though I can't seem to see where my system package on Gentoo turns this off). Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] Why is wrapper module called pylab ?

2008-10-26 Thread Ryan May
Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sponsored

Re: [Matplotlib-users] Setting the axis of an imshow plot

2008-11-03 Thread Ryan May
of the pixels. So you would do: imshow(data, extent=(l, r, b, t)) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sponsored by the Moblin Your Move

Re: [Matplotlib-users] graphs removing gaps to left and right,

2008-11-06 Thread Ryan May
, if you wish. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-11-25 Thread Ryan May
this afternoon. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Ryan May
looked at the source before...) I'm sitting down to look at this right now. Can you tell me if you have this problem with 0.98.3 as well? Thanks, Ryan Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Ryan May
Ryan May wrote: Fago, Matt - AES wrote: I found bug number 1859027 and have appended the below to the bug report. When is the next release due and how likely is this to get fixed? I might have time myself to help in a week or so, but would appreciate some help if someone else has time too

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-01 Thread Ryan May
here? I would be opposed to making such scaling the default, as IMHO it tries to do too much and I would have to work around it to get the more raw numbers. However, I am not opposed to adding (yet another) option to do such scaling. Other opinions? Ryan -- Ryan May Graduate

Re: [Matplotlib-users] Toggling points and legends

2008-12-01 Thread Ryan May
() m.fillcontinents() pts = m.scatter(x,y,25,marker='o',edgecolors='none',zorder=10) pts.set_visible(False) #Uncomment to make visible plt.show() Hope this helps, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] More points in polar plot than expected

2008-12-02 Thread Ryan May
to work well in Fedora 8 (don't know which version I ran there). Fedora 10 Python 2.5.2 matplotlib 0.98.1 Any ideas? Works for me on 0.98.3 and SVN HEAD. I get 4 blue dots. Can you send an image showing the output you're getting? Ryan -- Ryan May Graduate Research Assistant School

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Ryan May
, show from numpy import pi, sin, cos t = linspace(0,2*pi,20) r_1 = (1+sin(t)) r_2 = (1+cos(t)) subplot(211, polar=True) polar(t,r_1) #Or can use plot() subplot(212, polar=True) polar(t,r_2) show() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Ryan May
round in odd cases? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Ryan May
-- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Ryan May
, but I think changing the formatter may be less surprising... I like the idea of using %0.0f. If I don't hear any objections, I'll go ahead and make the change. It definitely will make things less confusing for our users. Ryan -- Ryan May Graduate Research Assistant School of Meteorology

Re: [Matplotlib-users] xticks in a polar plot

2008-12-03 Thread Ryan May
Nils Wagner wrote: Hi all, How can I suppress xticks in a polar plot ? import matplotlib.pyplot as plt from matplotlib.ticker import NullFormatter ax = plt.subplot(1, 1, 1, polar=True) ax.xaxis.set_major_formatter(NullFormatter()) plt.show() Ryan -- Ryan May Graduate Research Assistant

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread Ryan May
. on whether this should go in 0.98.x or go in a later release. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas

Re: [Matplotlib-users] using color as z-axis for plots

2008-12-08 Thread Ryan May
= np.random.randn(100) y = np.random.randn(100) data = x**2 + y**2 plt.scatter(x, y, c=data) plt.show() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- SF.Net email is Sponsored

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread Ryan May
John Hunter wrote: On Mon, Dec 8, 2008 at 10:56 AM, Ryan May [EMAIL PROTECTED] wrote: My only other concern is whether this belongs in 0.98.x. This is a behavior change from 0.98.3, not necessarily a bug fix. I'll defer to John, et al. on whether this should go in 0.98.x or go in a later

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread Ryan May
KURT PETERS wrote: Sorry, I meant the griddata module as part of mlab. Kurt It was first released in 0.98.3. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] csv2rec column names

2009-01-03 Thread Ryan May
: x=np.array([(1,10.), (2,20.)], dtype=[('A',int),('B',float)]) x['A'] array([1, 2]) True, but the problem in this case is that he wants to access by column number, which you can't really do with recarray or flexible dtype arrays. Ryan -- Ryan May Graduate Research Assistant School

Re: [Matplotlib-users] Pylab breaks locales with GTK

2009-01-05 Thread Ryan May
:49) [GCC 4.3.2] on linux2 Type help, copyright, credits or license for more information. This has been reported before, and IIRC, it's a problem with PyGTK. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] An application of Matplotlib/Basemap and wxPython to quantitative biogeography

2009-01-14 Thread Ryan May
this (from the parent directory to Croizat-1.00b): tar czf Croizat-1.00b.tar.gz Croizat-1.00b 2) You should exclude the *.pyc files from your released tarball. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] psd question...

2009-01-14 Thread Ryan May
changes in the new version that should improve this. Can you put an example of the data somewhere or create some dummy data that reproduces the problem so that I can try to reproduce the problem here? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] Color Map.

2009-01-15 Thread Ryan May
you're just starting out, I'd take a look at: http://matplotlib.sourceforge.net/gallery.html to get a feel for what's possible with matplotlib. It sounds like what you're interested would be pcolor/pcolormesh. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University

Re: [Matplotlib-users] plot a data stream with matplotlib

2009-01-19 Thread Ryan May
() You'd want to look at the animation examples in examples/animation. The exact details will depend upon what backend you want to use, but strip_chart_demo.py, simple_anim_gtk.py, and gtk_timeout.py are good places to start. HTH, Ryan -- Ryan May Graduate Research Assistant School of Meteorology

Re: [Matplotlib-users] ImportError: No module named pyplot

2009-01-20 Thread Ryan May
packages? If so, then does anyone know when this may be resolved? Any advice would be appreciated. What version of matplotlib do you have? import matplotlib print matplotlib.__version__ Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] Strange Recursion error with plot()

2009-02-02 Thread Ryan May
-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- This SF.net

Re: [Matplotlib-users] Strange Recursion error with plot()

2009-02-02 Thread Ryan May
Durand wrote: On Mon, 02 Feb 2009 19:57:15 -, Ryan May rma...@gmail.com wrote: I think it makes sense to accept only numbers but I suppose it's needed for backwards compatibility. Maybe you could have a deprecation warning? This is fixed in SVN head now so that strings will work again

Re: [Matplotlib-users] code searching

2009-02-05 Thread Ryan May
this code, I'll be happy to get it :) Thanks I don't remember a demo like that in matplotlib, but I do remember such a demo for Chaco2. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] code searching

2009-02-06 Thread Ryan May
of chaco's example using matplotlib. Patches are accepted. :) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R

Re: [Matplotlib-users] code searching

2009-02-06 Thread Ryan May
On Fri, Feb 6, 2009 at 1:10 PM, John Hunter jdh2...@gmail.com wrote: On Fri, Feb 6, 2009 at 10:56 AM, Ryan May rma...@gmail.com wrote: Lionel Roubeyrie wrote: You're right, it's the chaco's zooming plot, I confused. Is there a way to have this render with matplotlib? The event_handling

Re: [Matplotlib-users] Memory leaks in a web application

2009-02-09 Thread Ryan May
using the full OO interface and creating a figure by making an instance of Figure(), then you shouldn't need to close the figure by hand. It should be deleted whenever you delete or replace your instance of Figure. (If I understand correctly.) Ryan -- Ryan May Graduate Research Assistant School

Re: [Matplotlib-users] Plotting None value with dates goes in maximum recursion depth exceeded?

2009-02-11 Thread Ryan May
but I didn't bother on the branch since I figured it wasn't really supported behavior. Try converting the strings to numbers and you should be fine. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] executing function when view interval changes

2009-02-12 Thread Ryan May
On Wed, Feb 11, 2009 at 7:30 PM, John Hunter jdh2...@gmail.com wrote: On Wed, Feb 11, 2009 at 2:49 PM, Ryan May rma...@gmail.com wrote: You're looking for 'xlim_changed' and 'ylim_changed'. I know this can be found here: http://matplotlib.sourceforge.net/api/axes_api.html Should we

Re: [Matplotlib-users] executing function when view interval changes

2009-02-13 Thread Ryan May
On Fri, Feb 13, 2009 at 6:24 AM, John Hunter jdh2...@gmail.com wrote: On Thu, Feb 12, 2009 at 2:13 PM, Ryan May rma...@gmail.com wrote: On Wed, Feb 11, 2009 at 7:30 PM, John Hunter jdh2...@gmail.com wrote: On Wed, Feb 11, 2009 at 2:49 PM, Ryan May rma...@gmail.com wrote: Well, I checked

Re: [Matplotlib-users] x axis imshow...

2009-02-13 Thread Ryan May
read the whole file at once, it's just too big Does the 'extent' keyword argument to imshow do what you want? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from: Norman Oklahoma United States

Re: [Matplotlib-users] quiver and Inf values

2009-02-13 Thread Ryan May
)) V = Y V = numpy.ma.array(V, mask=numpy.isinf(V)) You can also catch NaN values by using ~numpy.isfinite() instead of numpy.isinf(). Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] quiver and Inf values

2009-02-13 Thread Ryan May
On Fri, Feb 13, 2009 at 2:30 PM, jason-s...@creativetrax.com wrote: Eric Firing wrote: Ryan May wrote: On Fri, Feb 13, 2009 at 12:08 PM, jason-s...@creativetrax.com mailto: jason-s...@creativetrax.com wrote: A student of mine recently noticed that sometimes, quiver plots were

Re: [Matplotlib-users] how to make scatter plot and bar graphs in same figure?

2009-02-16 Thread Ryan May
On Mon, Feb 16, 2009 at 7:22 AM, Manuel Metz mm...@astro.uni-bonn.dewrote: Attached is a very simple example that shows how to do something similar to scatterhist in matplotlib That's a nice example. Are you going to check that into SVN? Ryan -- Ryan May Graduate Research Assistant School

Re: [Matplotlib-users] rectangular patch

2009-02-18 Thread Ryan May
to the axes object (xx1 in your script). Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles

Re: [Matplotlib-users] griddata performance

2009-02-20 Thread Ryan May
would be helpful. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from: Norman Oklahoma United States. -- Open Source Business Conference (OSBC), March 24-25, 2009, San

Re: [Matplotlib-users] How to keep figure instead of flashing

2009-02-24 Thread Ryan May
() once, *after* you generate all of your figures. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from: Norman Oklahoma United States. -- Open Source Business Conference (OSBC

[Matplotlib-users] Mathtext + stixsans weird baseline

2009-02-25 Thread Ryan May
('ItLooksToMeLikeTheBaselineMoves $(g m^{-3})$') plt.ylabel('ItLooksToMeLikeTheBaselineMoves $(db km^{-1})$') plt.show() Thoughts? Am I doing something bad? Can anyone else reproduce this? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from: Norman Oklahoma United

Re: [Matplotlib-users] Mathtext + stixsans weird baseline

2009-02-25 Thread Ryan May
And here's the image I promised. On Wed, Feb 25, 2009 at 3:13 PM, Ryan May rma...@gmail.com wrote: Hi, When I combine mathtext with the stixsans fonts while mathtext.default is set to 'regular', horizontal text is not vertically aligned properly, like the baseline is moving. I've attached

Re: [Matplotlib-users] Matplotlib's logo

2009-03-05 Thread Ryan May
, and since the name is in the list anyway, I'd like to have the circular plot itself. Do you have it separately, or the Python code which generates it? Thank you! You can find the script here: http://matplotlib.sourceforge.net/examples/api/logo2.html Ryan -- Ryan May Graduate Research

Re: [Matplotlib-users] xlabel getting chopped off

2009-03-05 Thread Ryan May
seem to have an effect. how can i prevent this from happening? Try: figure.subplots_adjust(bottom=0.2) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Open Source Business

Re: [Matplotlib-users] parsing tab separated data into arrays

2009-03-13 Thread Ryan May
it to arrays. but there must be a better way? also, my first column is just a name, and so it is variable in length -- is there still a way to store it as an array so i can access: mydata[:, 0] to get all the names (as a list)? Try matplotlib.mlab.csv2rec or numpy.loadtxt Ryan -- Ryan May Graduate

Re: [Matplotlib-users] Reliefplot (imshow with shading)

2009-03-15 Thread Ryan May
, along with an example (shading_example.py) to show how to use it. Thanks for suggesting it. That looks awesome. Very nice work, Jeff. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

[Matplotlib-users] More funky font baselines

2009-03-18 Thread Ryan May
savefig.dpi : 100 Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from: Norman Oklahoma United States. attachment: more_funky_baseline.png-- Apps built with the Adobe(R

Re: [Matplotlib-users] More funky font baselines

2009-03-19 Thread Ryan May
. Mike Ryan May wrote: Mike, I've found another case of the funk baseline: import matplotlib.pyplot as plt plt.title('$Z_{DR}$ (from ts)') plt.show() I've attached an image of what I see. Here's my matplotlibrc: backend : GtkAgg mathtext.fontset : stixsans mathtext.default

[Matplotlib-users] Mathtext font size difference

2009-03-19 Thread Ryan May
these things. :) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from: Norman Oklahoma United States. attachment: different_sizes.png-- Apps built with the Adobe(R) Flex(R) framework

Re: [Matplotlib-users] Mathtext font size difference

2009-03-19 Thread Ryan May
the first A in Vera and the second in STIX. There's no easy way around that, since we don't currently support rich text for non-math fonts. To avoid this mix of fonts within the $ $, you would probably want to set mathtext.default to rm. Mike Ryan May wrote: Mike, Is there supposed

Re: [Matplotlib-users] joined matplotlib today

2009-03-27 Thread Ryan May
#matplotlib.pyplot.subplot Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from: Norman Oklahoma United States. -- ___ Matplotlib

Re: [Matplotlib-users] grab more points from a database when panning?

2009-03-30 Thread Ryan May
. In SVN trunk, there is an example in examples/event_handling/viewlims.py that redraws a fractal when you zoom in. You could probably adopt a similar approach to grab new data points, though the details would depend on the type of plot. Ryan -- Ryan May Graduate Research Assistant School

Re: [Matplotlib-users] Creating an xaxis with minutes

2009-04-08 Thread Ryan May
' % (minutes, sec) locator = mticker.MultipleLocator(60) formatter = mticker.FuncFormatter(minsec) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Enterprise, AL, United States

Re: [Matplotlib-users] preventing scaling view after updating plot

2009-04-09 Thread Ryan May
it into a release yet. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download

Re: [Matplotlib-users] tweaking automatic date formatting?

2009-04-14 Thread Ryan May
for ticking like this for dates, so you could look to it for inspiration on how to go about implementing the concept. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] Changing symbols instead of colors for lines ...

2009-04-14 Thread Ryan May
(lines.Line2D.markers.keys()) marker = markers.next() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States -- This SF.net email is sponsored by: High

Re: [Matplotlib-users] drawing lines an exact angles

2009-04-19 Thread Ryan May
matplotlib? Thank you in advance Matplotlib can plot the lines, but there's not anything inherent to the calculation of the angle of intersection. But if you represent the slopes as vectors, the angle of intersection can be found from the dot product of the vectors. Ryan -- Ryan May Graduate

  1   2   3   >