Re: [Matplotlib-users] Stopping FuncAnimation

2014-03-06 Thread Ryan May
event to it? > There's an event_source() method that can be called to get the class that's controlling when animation events get fired (usually a timer, but you can provide custom ones). You should be able to call start() and stop() on it. Ryan -- Ryan May Graduate Research Assist

Re: [Matplotlib-users] FuncAnimation documentation problem

2014-03-06 Thread Ryan May
> Does this seem correct? > > Thanks, > Alan Isaac > > PS It would be nice if repeat accepted an integer number of repetitions. > That does sound correct to me. (I'll apologize for the broken English in the docs). Any chance you could file an issue, and maybe one on the r

Re: [Matplotlib-users] Animate on Mac O$

2014-03-13 Thread Ryan May
elves should work fine. Is there something else I'm missing? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Learn Graph Databases - Download FREE O'Reilly Bo

Re: [Matplotlib-users] Animate on Mac O$

2014-03-13 Thread Ryan May
> On Mar 13, 2014, at 17:55, Michiel de Hoon wrote: > > The problems with animations on Mac > are not so much related to the backend, > but to the animations code itself. Animations > with the MacOSX backend cannot be fixed > without redesigning the animations module. Can you give me a better id

Re: [Matplotlib-users] PySide backend

2014-03-17 Thread Ryan May
On Mon, Mar 17, 2014 at 4:11 PM, Christophe Bal wrote: > Hello, > does matplotlib can use a PySide backend ? > > I ask this question because PySide is installed with Anaconda. > The Qt4 backend can use either PySide or PyQt. It should use either if they're installed.

Re: [Matplotlib-users] [Pyaos] CAPE and CIN calculation in Python

2014-03-30 Thread Ryan May
on fleshing out that script with more features (and more class-based) on a branch here: https://github.com/metpy/MetPy/blob/skewt/metpy/plots/skewt.py Ryan -- Ryan Ma

Re: [Matplotlib-users] Wind barbs with small arrow heads

2014-09-17 Thread Ryan May
08191&iu=/4140/ostg.clktrk > ___ > 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

Re: [Matplotlib-users] Broken pipe error when saving animation for html5

2016-02-24 Thread Ryan May
om/questions/286675/how-to-install-ffmpeg-on-debian I > also have Debian packages x264 and libx264-142 installed. > > > > -- > Site24x7 APM Insight: Get Deep Visibility into Application Perfor

Re: [Matplotlib-users] Zooming plot and transforms...

2009-06-29 Thread Ryan May
n't have an answer for this > yet. If you come up with one, please let me know. Have you looked at the examples/widgets/span_selector.py demo? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma --

Re: [Matplotlib-users] Append _one point_ to a plot?

2009-07-03 Thread Ryan May
(y, [y0])) line.set_data([x,y]) This is rather inefficient however if you're adding lots of points or if there are just a lot of point in x any in general. If you know how many points you're going to end up with, you could create mostly empty MaskedArrays and keep the extra points m

Re: [Matplotlib-users] Append _one point_ to a plot?

2009-07-03 Thread Ryan May
On Fri, Jul 3, 2009 at 12:05 PM, guillaume ranquet wrote: > Ryan May wrote: > > > > > > On Fri, Jul 3, 2009 at 8:32 AM, guillaume ranquet > <mailto:granq...@wyplay.com>> wrote: > > > > Hi list, > > > > I'm trying to get a dyna

Re: [Matplotlib-users] invisible plot

2009-07-15 Thread Ryan May
lotlib import * > > x= arange(0,10.,0.1) > y= x**1.5 - 0.25*x**2 > > pyplot.figure(figsize=(9, 6), dpi=120) > pyplot.plot(x, y) Add this to the end of the script (after all the plotting): pyplot.show() Ryan -- Ryan May Graduate Research As

Re: [Matplotlib-users] ipython --pylab without namespace pollution?

2009-07-22 Thread Ryan May
ython/ipythonrc: pylab_import_all 0 That gives you exactly what you want. In my case, I also made a profile that imports numpy as np and matplotlib.pyplot as plt, so that I can get the equivalent of the ease pylab without the pollution. Ryan -- Ryan May Graduate Research Assistant School

Re: [Matplotlib-users] ipython --pylab without namespace pollution?

2009-07-22 Thread Ryan May
On Wed, Jul 22, 2009 at 8:34 PM, John Hunter wrote: > On Wed, Jul 22, 2009 at 8:04 PM, Ryan May wrote: > > On Wed, Jul 22, 2009 at 6:09 PM, Christopher Barker < > chris.bar...@noaa.gov> > > wrote: > >> > >> Hi folks, > >> > >> Does anyo

Re: [Matplotlib-users] ipython --pylab without namespace pollution?

2009-07-27 Thread Ryan May
On Mon, Jul 27, 2009 at 2:40 PM, Christopher Barker wrote: > Ryan May wrote: > >> > Put this in your ~/.ipython/ipythonrc: >> > >> > pylab_import_all 0 >> > >

Re: [Matplotlib-users] animation/"live"-plotting + performance

2009-07-29 Thread Ryan May
erformance improvement to be had depending on how you are adding the additional points to the array. Seeing a complete, minimal of the code showing the performance problem would be needed, since it's the details that matter in this case. Ryan -- Ryan May Graduate Research Assistant School of

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Ryan May
e example. I tweaked it to change the alpha of the lines in the legend so that you know when you've turned off a line (making it more chaco-like). Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ---

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread Ryan May
n [7]: lines >> Out[7]: >> > Here lines is a Line2D object. > > ax.plot always returns a list because it may plot more than one line. The > choice of syntax for the caller of the function is just for convenience. > One could just as easily do: Yeah, it's a nice l

Re: [Matplotlib-users] Re peated calls to Specgram for animation, memory leaking

2009-08-05 Thread Ryan May
has a specgram() function that performs the actual computation performed for the pyplot plotting function of the same name. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States ---

Re: [Matplotlib-users] hexbin density plots in matplotlib?

2009-08-05 Thread Ryan May
ot to be rude, but is there any reason you didn't look for pyplot.hexbin before sending the email? :) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Let Crystal Reports han

Re: [Matplotlib-users] loading csv data into arrays

2009-08-12 Thread Ryan May
it for you. The best one liner here is: arr.tofile('test.txt', sep='\n') >cat arr.txt ('M', 21, 72.094) ('F', 35, 58.328) ('M', 33, 21.988) That should get you going. If it's not enough, feel free to po

Re: [Matplotlib-users] loading csv data into arrays

2009-08-12 Thread Ryan May
27;, '0;0;0;0;0;0', 2.5)], > dtype=[('myheader1', '|S7'), ('myheader2_a', '|S11'), > ('myheader2_b', ' > i would only like to refer to my headers using this notation: > > data['my;header1'] > try a

Re: [Matplotlib-users] "import pylab" changes locale settings

2009-08-16 Thread Ryan May
n_posn': 1, > 'decimal_point': ',', 'int_curr_symbol': 'EUR ', 'n_cs_precedes': 1, > 'p_sign_posn': 1, 'mon_thousands_sep': ' ', 'negativ

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-19 Thread Ryan May
. Quite frankly, it's more amazing that it works on your Ubuntu macine. :) If you're wanting 3 separate windows, try: plot([1,2,3,4,5]) figure() plot([1,2,3,4,5]) figure() plot([1,2,3,4,5]) show() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] plot multiple times in one script fails

2009-08-19 Thread Ryan May
is a file to > visualize left. Unfortunaltely > only the first figure is shown as in the simple example. > So, what's wrong? Calling show() multiple times is not supported. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ---

Re: [Matplotlib-users] horizontal grid lines appearing when i put text on a plot

2009-08-20 Thread Ryan May
gt;> import matplotlib > >>> matplotlib.__version__ > '0.98.5.2' > >>> I can't reproduce this with SVN head here. I don't see anything in your script that should cause this. Can you upgrade to the latest release, 0.99? Ryan -- Ryan May Graduate R

Re: [Matplotlib-users] imshow and pcolor differences

2009-09-02 Thread Ryan May
t; plt.title('imshow defaults with origin=lower') > > plt.show() > > Is there a method to force imshow to not resample the image > It is not obvius to me from reading the help for imshow and pcolor. > pass in interpolation='nearest' as a keyword ar

Re: [Matplotlib-users] Error in doc?

2009-09-21 Thread Ryan May
rrect the subtle error. > Done. suptitle is the correct name, as it's kind of a "super" title that appears at the top of a figure with multiple panels, not a subtitle. Thanks for catching this. Ryan -- Ryan

Re: [Matplotlib-users] no LUTSIZE in matplotlib._cm anymore

2009-09-22 Thread Ryan May
r: cannot import name LUTSIZE > > How can I replace/solve this issue? > > Many thanks in advance. > from matplotlib.cm import LUTSIZE Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma --

Re: [Matplotlib-users] from matplotlib.numerix.mlab import amax

2009-09-22 Thread Ryan May
efinitely try that first). Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you

Re: [Matplotlib-users] where does register_cmap come from?

2009-09-26 Thread Ryan May
tplotlib do you have installed? python -c 'import matplotlib;print matplotlib.__version__' Try updating. That should fix it. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma --

[Matplotlib-users] Basemap calls to colorbar() failing

2009-09-28 Thread Ryan May
e current image handling in matplotlib itself was reworked (at least according to SVN logs, r7494), so that now instead there's a setter function: plt.sci(ret) I'd be happy fix these myself if you're too busy. Ryan -- Ryan May Graduate Research Assistant School of Mete

Re: [Matplotlib-users] Basemap calls to colorbar() failing

2009-09-28 Thread Ryan May
On Mon, Sep 28, 2009 at 4:54 PM, Jeff Whitaker wrote: > Ryan May wrote: >> >> Jeff, >> >> Right now, for me, any Basemap example that uses colorbar() is broken >> for me.  I think there's a problem with how Basemap sets the current >> 'image'

Re: [Matplotlib-users] Basemap and clim, has this changed in 0.99

2009-09-29 Thread Ryan May
entionally?  If so, what is now the recommended way to apply > climits to a Basemap plot? I think this is due to an issue I fixed yesterday. Matplotlib changed how it handled tracking the current image (in trunk) and Basemap hadn't been updated. A fresh pull of basemap (I checked in the changes

Re: [Matplotlib-users] contribution offer: griddata with gaussian average

2009-10-04 Thread Ryan May
2/A) relation. There's a huge difference between the two when you're dealing with data with noise. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Come build with us!

Re: [Matplotlib-users] graphs in memory

2009-10-14 Thread Ryan May
ng. Memory issues usually depend on the specifics of how you're doing something, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Come build with us! The BlackBerry(

Re: [Matplotlib-users] Is there an easy way to turn on automatic subticks?

2009-10-16 Thread Ryan May
at: http://matplotlib.sourceforge.net/examples/pylab_examples/major_minor_demo1.html?highlight=codex%20minor Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Come build with us! The Bla

Re: [Matplotlib-users] Problem when specifying formatter

2009-10-20 Thread Ryan May
lFormatter, which is the name of a class. Try: ax.xaxis.set_major_formatter(NullFormatter()) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Come build with us! The BlackBerry(R)

Re: [Matplotlib-users] function to create netcdf file

2009-11-11 Thread Ryan May
reateVariable('lat','d',('lat',)) >    nco.createVariable('lon','d',('lon',)) >    lon = np.arange(lon0,lon0+(nx*dx),dx) >    lat = np.arange(lat0,lat0+(ny*dy),dy) >    nco.variables['lat'][:] = lat >    nco.variables

Re: [Matplotlib-users] function to create netcdf file

2009-11-11 Thread Ryan May
thon language, setattr(a, 'foo', 'bar') is the same code as a.foo = bar. When working with NetCDF, the only time I've needed to use setarr (or getattr) is when the name of the attribute I want isn't a valid python identifier (like if an attribute has a - in it, e.g. '

Re: [Matplotlib-users] loadtxt/usecols -> list index out of range

2009-11-16 Thread Ryan May
nput" (don't know how to call > it), but why did it work before? Check your data file. What you posted to the list is copy/pasting as 8 spaces for me, but you are specifying delimiter='\t'. I'd try just not specifying delimiter or passing in delimiter=None. Ryan -- Rya

Re: [Matplotlib-users] Histogram without probability

2009-12-14 Thread Ryan May
in)``. In a probability density, the integral of the histogram should be 1; you can verify that with a trapezoidal integration of the probability density function:: pdf, bins, patches = ax.hist(...) print np.sum(pdf * np.diff(bins)) So instead, pass normed=Fa

Re: [Matplotlib-users] query about pyplot.text example

2010-01-03 Thread Ryan May
nsform=trans, clip_on=True) # Now do one 15 right trans2 = ax.transData + mtransforms.Affine2D().translate(15, 0) plt.text(x0, y0, 'Testing2', horizontalalignment='left', verticalalignment='center', transform=trans2, clip_on=True) plt.show() I hope this helps. Let me know if an

Re: [Matplotlib-users] line drawing bug or it's me doing something wrong?

2010-01-15 Thread Ryan May
to look at from here? Have you tried blowing away the Gentoo install of matplotlib completely and trying a new one? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States --

Re: [Matplotlib-users] Clipping

2010-02-18 Thread Ryan May
s (300,300)? I believe it's in window coordinates (pixels), with 0,0 being the lower left. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Download Intel® Parallel Studio Eval Try

Re: [Matplotlib-users] imshow size limitations?

2010-02-27 Thread Ryan May
ou specify the corners of the image in data coordinates. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Download Intel® Parallel Studio Eval Try the new software tools for yoursel

Re: [Matplotlib-users] display image as (r, g, b) from a (3xMxN) nympy.array

2010-02-27 Thread Ryan May
lib.pyplot.imshow(dd[0].transpose()) However, this will rotate the image (result will have N rows and M columns), if you're expecting it to have M rows and N columns. In that case, you need to "roll" the axis to the end, which will end up with a 3xMxN array: >>>dd[0].

Re: [Matplotlib-users] imshow size limitations?

2010-02-28 Thread Ryan May
On Sun, Feb 28, 2010 at 12:24 PM, David Goldsmith wrote: > --- On Sat, 2/27/10, Ryan May wrote: > >> From: Ryan May >> Subject: Re: [Matplotlib-users] imshow size limitations? >> To: "David Goldsmith" >> Cc: "matplotlib-users" >> Date

Re: [Matplotlib-users] Bug: string.letters

2010-03-09 Thread Ryan May
; > > Would be grateful for a comment. I'm seeing this here too: In [1]: import string In [2]: string.letters Out[2]: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' In [3]: import matplotlib In [4]: string.letters Out[4]: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' T

Re: [Matplotlib-users] IRC for matplotlib

2010-03-11 Thread Ryan May
On Thu, Mar 11, 2010 at 3:14 PM, afancy wrote: > Hi, > > Could anybody know if there is IRC for matplotlib? as I cannot find it. > Thanks #scipy is an appropriate for all things numpy, matplotlib, scipy, etc. Ryan -- Ryan May Graduate Research Assistant School of Meteorology U

Re: [Matplotlib-users] xlim with dates

2010-03-12 Thread Ryan May
use dates for the limits: import matplotlib.pyplot as plt import numpy as np from datetime import datetime, timedelta s = datetime.now() x = np.array([s, s + timedelta(hours=3)]) y = np.arange(1,3) plt.plot(x,y) plt.xlim(s - timedelta(minutes=30), s + timedelta(hours=4)) plt.show() Ryan -- Ryan May Gra

Re: [Matplotlib-users] AssertionError without further description

2010-03-21 Thread Ryan May
t;, you can always look at the gallery: http://matplotlib.sourceforge.net/gallery.html Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Download Intel® Parallel Studio Eval Try t

Re: [Matplotlib-users] AssertionError without further description

2010-03-21 Thread Ryan May
er, the gallery is the best place to look because we should be keeping it up to date with changes in the code. I attached the modified script since it won't show up in the gallery right away. I'd take a look, because it drastically simplifies the colormapping. Ryan -- Ryan May Graduate Res

Re: [Matplotlib-users] AssertionError without further description

2010-03-21 Thread Ryan May
On Sun, Mar 21, 2010 at 1:36 PM, Eric Firing wrote: > Ryan May wrote: >> That's because it wasn't there. :)  I've ported it to make better use >> of matplotlib facilities that are now available and added it to SVN. >> In general, however, the gallery is the bes

Re: [Matplotlib-users] mpl UML?

2010-03-21 Thread Ryan May
ke lines, collections can be added to existing axes (and don't need one around to be created). This is actually what's used under the hood. You *should* also be able to create an axes object and then set its figure, but I've never personally done it. What you really want to look at ar

Re: [Matplotlib-users] (no subject)

2010-03-24 Thread Ryan May
is a great place to learn: http://matplotlib.sourceforge.net/gallery.html For your particular need, I'd look at: http://matplotlib.sourceforge.net/examples/pylab_examples/legend_demo2.html Ryan -- Ryan May Graduate Research Assistant School of Met

Re: [Matplotlib-users] format yticks

2010-03-25 Thread Ryan May
notation for smaller numbers (the default is anything with an abs() >= 1e7). This displays in a slightly different way, with the base power off to the side of the axis: form = plt.gca().yaxis.get_major_formatter() # so anything with abs() >= 10000 will display in scientific notation

Re: [Matplotlib-users] contourf problem

2010-03-28 Thread Ryan May
:,None]) #Note change from bug in previous ex. fig = plt.figure() ax = fig.add_subplot(1,1,1) ax.contourf(X, Y, Z) ax.set_xlim(-5, 5) ax.set_ylim(-5, 5) plt.draw() Is there something I'm missing? (Running SVN trunk here) Ryan -- Ryan May

Re: [Matplotlib-users] Making a data-driven colormap

2010-03-30 Thread Ryan May
ather, data aspect ratio). (I'd love to hear any ideas the other devs have.) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma add_colorbar_limits.diff Description: Binary dat

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Ryan May
x27;ro') plt.xlim(0, maxX) plt.ylim(maxY, 0) ax = plt.gca() # Get current axes object ax.xaxis.set_ticks_position('top') plt.show() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma --

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Ryan May
On Tue, Mar 30, 2010 at 2:10 PM, Gökhan Sever wrote: > On Tue, Mar 30, 2010 at 2:37 PM, Ryan May wrote: >> You're looking for the set_ticks_position method on the xaxis (I've >> also tweaked setting the limits): >> >> plt.plot(xcoords, ycoords, 'ro&

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Ryan May
ipython (http://ipython.scipy.org/moin/) which makes working with plots interactively a breeze. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Download Intel® Parallel Stu

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Ryan May
djust(top=0.85) Hope that helps, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compilin

Re: [Matplotlib-users] How to show separate legend for each subplot

2010-03-31 Thread Ryan May
ml >> >> Hope that helps, >> -paul > > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune application

Re: [Matplotlib-users] Not using exponents on y-axis of log graphs

2010-04-06 Thread Ryan May
mbers instead (ie 1, 10, 100 etc)?  I guess I could make custom ticks for > every one, but the graph is not always the same and if it could do it > automatically it would be much better. Make a custom tick formatter: form = plt.FormatStrFormatter('%d') plt.gca().yaxis.set_major_for

Re: [Matplotlib-users] [matplotlib-devel] getting legend loc

2010-04-09 Thread Ryan May
a helper for self.set_aspect('equal', adjustable='box', anchor='C') self.set_autoscale_on(False) You can get all of these properties individually: ax = plt.gca() ax.get_aspect() ax.get_adjustable() ax.get_anc

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

2010-04-15 Thread Ryan May
m', which actually makes things worse. It's also quite noticable for larger font sizes with 'rm'. Thoughts? Ryan On Wed, Feb 25, 2009 at 4:13 PM, Ryan May wrote: > Hi, > > When I combine mathtext with the stixsans fonts while mathtext.default is > set to 'regular&#

Re: [Matplotlib-users] Documentation suggestions (longish post)

2010-04-18 Thread Ryan May
robably *are* lacking. I know I'm not likely to get to this any time soon however, so patches are welcome. :) If you're interested, the docs live here: http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/doc/ Ryan -- Ryan May Graduate Research Assistant School of Meteoro

Re: [Matplotlib-users] multiple canvases, one Navigation Toolbar

2010-04-19 Thread Ryan May
e axes, look here: http://matplotlib.sourceforge.net/examples/pylab_examples/shared_axis_demo.html Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Download Intel® Parallel Stu

Re: [Matplotlib-users] multiple canvases, one Navigation Toolbar

2010-04-19 Thread Ryan May
On Mon, Apr 19, 2010 at 5:29 PM, Mathew Yeates wrote: > Will this work for multiple figures? > Yes, with the caveat that the data ranges are synced, so if you're doing something like set_aspect('equal', 'datalims'), all the plots must have the same aspect rat

Re: [Matplotlib-users] How to show interactive plot window from program

2010-04-20 Thread Ryan May
> >    fig = plt.figure() >    ax = fig.add_subplot(111) >    ax.contourf(stuff) >    fig.show() Use plt.show() instead of fig.show() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ---

Re: [Matplotlib-users] ticks at 0 and 2pi

2010-04-20 Thread Ryan May
t;    ax.set_xlim(xmin=0, xmax=2 * math.pi) >    ax.set_ylim(ymin= -math.pi, ymax=math.pi) I don't see the problem here, I get the ticks as specified. What version of matplotlib are you using? What backend are you using? Ryan -- Ryan May Graduate Research Assistant School of Meteorol

Re: [Matplotlib-users] show() at the end of each function of an ensemble of scripts

2010-04-20 Thread Ryan May
ich is started with show). You might want to look at http://code.google.com/p/spyderlib/ or Google around for some other packages that integrate IPython into a GUI. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma --

Re: [Matplotlib-users] How to make colormaps

2010-04-20 Thread Ryan May
's docs directly: http://matplotlib.sourceforge.net/search.html I was able to find that example with: codex ListedColormap (codex tells it to search examples) but that's because I knew the name of the class I was looking for. Good luck and don't get discouraged.

Re: [Matplotlib-users] How to make colormaps

2010-04-20 Thread Ryan May
ands: if we have new users asking sensible questions and actually making a good effort, we don't want to discourage them. Now for those who want there hands held every step of the way I'm all for snarking at. Ryan -- Ryan May Graduate Research Assistant School o

Re: [Matplotlib-users] show() at the end of each function of an ensemble of scripts

2010-04-20 Thread Ryan May
, the user can click on various things and trigger actions. Have you looked at the examples in: examples/event_handling? Ryan -- Ryan May Graduate Research Assistant School of Meteorology Universi

Re: [Matplotlib-users] Publication quality plots in papers

2010-04-27 Thread Ryan May
>>> Matplotlib-users mailing list >>> Matplotlib-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> > > > > -- > Gökhan > >

Re: [Matplotlib-users] Publication quality plots in papers

2010-04-27 Thread Ryan May
ion controlled Latex document? > OpenOffice also has a good review system where I can track my/others changes > easily. > On Tue, Apr 27, 2010 at 3:27 PM, Ryan May wrote: >> >> I know this started with non-Latex, but I've found that passing around >> latex-generated

Re: [Matplotlib-users] Publication quality plots in papers

2010-04-27 Thread Ryan May
hat way (one day when I start using Latex :) ) > > > On Tue, Apr 27, 2010 at 4:32 PM, Ryan May wrote: >> >> My advisor just writes on a print out of the PDF. I'll make the >> changes in the revision tracked latex document. >> >> Ryan >> >> On

Re: [Matplotlib-users] Title color

2010-05-03 Thread Ryan May
.label.set_color(color) pp.gca().axes.title.set_color(color) You can also save the return value from pp.title: t = pp.title('Wow!') t.set_color(color) Ryan -- Ryan May Graduate Research Assistant Sch

Re: [Matplotlib-users] re move / delete arrow / annotate, how to?

2010-05-04 Thread Ryan May
t.pyc in remove(self) 123 self._remove_method(self) 124 else: --> 125 raise NotImplementedError('cannot remove artist') 126 # TODO: the fix for the collections relim problem is to move the 127 # limits calculation int

Re: [Matplotlib-users] what decides which lines go on top of the rest

2010-05-07 Thread Ryan May
d > like the opposite, markers on top of the errorbars.  Can  this be done? And > more generally, how can I choose what goes on top of what? You should be able to pass zorder= to the plotting functions to control the order. Ryan -- Ryan May Graduate Research Assistant School of Meteoro

Re: [Matplotlib-users] introducing mpl_toolkits.gridspec

2010-05-11 Thread Ryan May
ral/19097), > but never committed. Instead, it is packaged as a mpl_tookit module. Looks interesting, I'll have to take a look when I get a chance. Two early questions: 1) How does this relate to the functionality present in your axes_grid toolkit? 2) Do you plan on checking this into

Re: [Matplotlib-users] crop white space of image

2010-05-18 Thread Ryan May
f my 3D data) > ? figure.subplots_adjust() can be used to control various margins within the figure. When saving with savefig(), you can also specify bbox_inches='tight' which tells it to figure out the actual bounding box of you plot for saving, which eliminates a lot of whitespace. Ry

Re: [Matplotlib-users] align title of subplot with ylabel

2010-05-18 Thread Ryan May
thought through the solution completely, but my intuition says that this might be helpful: http://matplotlib.sourceforge.net/examples/pylab_examples/anchored_artists.html http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.

Re: [Matplotlib-users] Another text problem...

2010-05-20 Thread Ryan May
think? I'm +1, but I've been bitten by this and am not concerned personally with the backwards incompatibility. I'm not sure how much code out there is dependant o

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

2008-06-09 Thread Ryan May
have put together here is asthetic 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 -

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

2008-06-13 Thread Ryan May
ys 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 May Graduate Research Assistant School of Meteorology University of Oklahoma - Check

Re: [Matplotlib-users] colorbar

2008-06-18 Thread Ryan May
andom.randn(30,30) plt.pcolor(data) fig = plt.gcf() 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 Rese

Re: [Matplotlib-users] colorbar()

2008-06-21 Thread Ryan May
his case, I think you want to use the ax keyword for colorbar, as in: pylab.colorbar(ax=ax2) The ax keyword argument specifies an the axes for which you want the colorbar drawn. The cax keyword argument specifies the axes in which you want the colorbar drawn. If you don't specifiy cax, s

Re: [Matplotlib-users] Animated bar graph question

2008-06-22 Thread Ryan May
bar(10+0.25, 10) shows perfectly, then an update (using interactive mode > set 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 cle

Re: [Matplotlib-users] colorbar

2008-06-27 Thread Ryan May
Yves Revaz wrote: Ryan May wrote: Yves Revaz wrote: Hi all, When I use: colorbar(orientation='horizontal') the color bar is drawn on the bottom of the corresponding graph. Which option will draw the colorbar on the top of the graph ? I think (correct me if I'm wro

[Matplotlib-users] Customizing Quiver

2008-06-27 Thread Ryan May
anyone ever tried this (I'm pretty sure I know the answer)? Failing that, can anyone give me an idea of how difficult it might be for me to tweak quiver to do this? Thanks, Ryan -- Ryan May Graduate Research Assistant School of Me

Re: [Matplotlib-users] Customizing Quiver

2008-06-27 Thread Ryan May
> > Something I keep wanting to get to is an ellipse variant of quiver; that > would be much 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 t

Re: [Matplotlib-users] legend in pylab

2008-06-29 Thread Ryan May
ay labels for X and Y axes and a Title 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

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

2008-07-09 Thread Ryan May
0.91.2-1.fc8 from the yum > repository. Backend is set to GTKAgg in my matplotlibrc file. > (On this list top-posting is frowned upon -- it makes the conversation difficult to follow.) Your analysis is correct, the call to show() activates the GUI mainloop and does not ret

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

2008-07-09 Thread Ryan May
> why, or what am i doing wrong... i'm very grateful for any hints. Try looking at the dynamic_image_*.py in the examples directory (or examples/animation for version 0.98.x). I've personally used the dynamic_image_gtkagg.py approach for (what I think is) a similar use case to yo

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

2008-07-10 Thread Ryan May
it to wait for user interaction before continuing, there might be a little bit more work, but I don't think it'd be much. You could probably instead look at some of the Matplotlib UI widgets, like in the buttons.py example. Ryan -- Ryan May Graduate Research Assistant School of Met

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

2008-07-12 Thread Ryan May
'm not sure I'm following you at the moment. Are you calling show() once and closing the figure doesn't cause it to return? or are you trying to call show() multiple times from a single script and subsequent calls to show() fail to return? Ryan -- Ryan May Graduate Research As

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

2008-07-14 Thread Ryan May
matplotlib and PyGtk (you are using GtkAgg, right)? Also, what OS are you running? Devs, what do you think? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma - This SF.Net email is sp

  1   2   3   4   >