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] 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] [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] 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] 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] 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] 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] 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

[Matplotlib-users] Matplotlib in daily life

2013-01-21 Thread Ryan May
Hi, Just ran across this article that shows a familiar looking graph. Just another encounter of matplotlib in daily life. http://www.wired.com/wiredenterprise/2013/01/google-password/2/ Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] Saving animations

2012-10-05 Thread Ryan May
gt; It would be great if the docs could be updated with how to specify > a codec btw. I only found out by chance. > > Thanks for your help, andy Glad to hear it. It would be nice if there were good docs, period. But that requires a lazy dev (me) to finish his Ph.D. first. :) Ryan -- R

Re: [Matplotlib-users] Saving animations

2012-10-04 Thread Ryan May
gt; that seems somewhat unrelated). I'm on Ubuntu Precise (12.04) here as well. No problems with/without, but I'm noticing the extra_args aren't being used (which I think is a known bug I need to fix.) Can you run with --verbose-debug and post the relevant output? (Or just compress an

Re: [Matplotlib-users] Updating quiver arrows in animation

2012-09-23 Thread Ryan May
ou cannot update the arrow positions without making a new Quiver > instance, so to animate with varying positions, you will need to delete > the previous Quiver instance and make a new one for each frame. Given this, it might be best to use ArtistAnimation then, which should handle turning

Re: [Matplotlib-users] Has nxutils been removed from mpl?

2012-03-08 Thread Ryan May
 module > is not a release stopper, even if it is undesirable. +1 Python 3 support is more important and, quite frankly, overdue--especially given how long it's been sitting in the tree. Ryan -- Ryan May Graduate Research Assistant Sc

Re: [Matplotlib-users] Does matplotlib.animation module use weakrefs?

2012-03-01 Thread Ryan May
On Feb 29, 2012, at 20:00, Bernhard Heijstek wrote: > Hello, > > I'm trying to run a rudimentary animation code > (http://pastebin.com/ZNRhDmPR). When I don't explicitly give a name to the > FuncAnimation object, the code doesn't work. I mean, just dropping in: > anim.FuncAnimation(fig, updat

Re: [Matplotlib-users] Combining pcolormesh and contour

2012-02-28 Thread Ryan May
id while the other > assumes that it lies in the middle of each grid point.  This is why you see > them slightly offset from each other. By definitition, with pcolormesh you're giving it the edges of the grid cells. In fact, for an NxN grid of data, you should have N+1xN+1 grids of x,y val

Re: [Matplotlib-users] Partial coloring of text in matplotlib

2012-02-07 Thread Ryan May
ace, this becomes harder: plt.ylabel(["The sun is", "yellow"], ['k', 'y']) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Keep

Re: [Matplotlib-users] animation problems

2012-01-09 Thread Ryan May
ing that or commenting out the call to save(). Given that saving is half-baked at this point, a good maintainer of this code *cough*me*cough* would probably make a problem saving not completely crap out the script. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Ryan May
, Jan 5, 2012 at 3:50 PM, Eric Firing wrote: >> >> On 01/05/2012 07:34 AM, Ryan May wrote: >> > On Thu, Jan 5, 2012 at 10:58 AM, Benjamin Root  wrote: >> >> >> >> >> >> On Thu, Jan 5, 2012 at 10:40 AM, Benjamin Root  wrote: >> >>>

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Ryan May
f _get_linewidth(self): return self._lw lw = property(_get_linewidth, _set_linewidth) linewidth = property(_get_linewidth, _set_linewidth) Declaring slots allows you to keep the available attributes to those explicity listed. This way, you can't set a random (misspelled

Re: [Matplotlib-users] cycling mechanism

2012-01-04 Thread Ryan May
On Jan 4, 2012, at 20:52, Benjamin Root wrote: > Hello all, > > So, I am getting to the point where I need to implement a color cycling > mechanism throughout pyplot. So, before I get too deep in implementing it, I > have some thoughts that I need feedback on. > > 1) Not all plotting functio

Re: [Matplotlib-users] animation.FuncAnimation

2011-12-20 Thread Ryan May
rgs=(curve,x_data,y_data), interval=100) plt.show() Ben was also right in that you could subclass FuncAnimation and override/extend methods. This would have the benefit of giving more control over the handling of seek(). (Something else for my todo list...) Ryan

Re: [Matplotlib-users] [timer] How it works?

2011-11-29 Thread Ryan May
h will intergrate properly with the figure event loop, is shown in the example: http://matplotlib.sourceforge.net/examples/event_handling/timers.html In your case: timer = fig.canvas.new_timer(interval=1000) timer.add_callback(write, 2) timer.start() Ryan

Re: [Matplotlib-users] griddata question

2011-02-18 Thread Ryan May
points), so the interpolation algorithm would effectively be extrapolating. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- The ultimate all-in-one performance toolkit: Intel(R) Par

Re: [Matplotlib-users] make plot() cycle through line style instead of colour

2011-02-15 Thread Ryan May
om itertools import cycle styles = cycle(['k-', 'k--', 'k-.']) plot([1,2], [1,2], styles.next()) plot([1,2], [1,3], styles.next()) plot([1,2], [1,4], styles.next()) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma --

Re: [Matplotlib-users] griddata

2011-02-14 Thread Ryan May
rdinates, you just need to pass in the locations of the points in cartesian coordinates: x = r * cos(theta) y = r * sin(theta) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- T

Re: [Matplotlib-users] X11 Window information for plots

2011-01-19 Thread Ryan May
nt to set the window title, that's already available: fig = plt.figure() fig.canvas.set_window_title("Look at me!") Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -

Re: [Matplotlib-users] yticks on the right and label size

2011-01-18 Thread Ryan May
_yticks(np.arange(16.8,18.8,0.4)) > AX2.set_yticklabels(np.arange(16.8,18.8,0.4),size=20,position=(1.08,0)) Instead of tick_right() try: AX2.yaxis.set_ticks_position('right') Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma --

Re: [Matplotlib-users] ColorbarBase usage

2011-01-17 Thread Ryan May
lab_examples/multi_image.html Well, I learned something today. I had always been turning to ColorbarBase for cases like this. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -

Re: [Matplotlib-users] Python 3

2011-01-03 Thread Ryan May
On Mon, Jan 3, 2011 at 9:28 AM, Darren Dale wrote: > On Mon, Jan 3, 2011 at 9:45 AM, Ryan May wrote: >> On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata wrote: >>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py", >>> l

Re: [Matplotlib-users] Python 3

2011-01-03 Thread Ryan May
/dist-packages/matplotlib/backends/qt4_editor/formlayout.py", > line 59, in >     from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString, > ImportError: cannot import name QString > > Looks like this backend hasn't been ported yet. I remember seeing this on Gentoo

Re: [Matplotlib-users] AttributeError subplot2grid

2010-12-13 Thread Ryan May
bvious... > > Running Matplotlib version 0.99.3 (python 2.6.6) on Ubuntu 10.10 I'm 90% certain that the subplot2grid feature was added in 1.0. You could build and install from source: https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/ Ryan -- Ryan Ma

Re: [Matplotlib-users] memory "leak" caused by canvas.draw()

2010-12-10 Thread Ryan May
can take a look. (I just don't have the time right now.) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- ___ Matplotlib-

Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-30 Thread Ryan May
dered the correct behavior by adding the following line at linen 84 in the script: self.subplot.xaxis.set_major_locator(adl) Does adding that get you what you want? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -

Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-30 Thread Ryan May
t help, though). > > Is the act of plotting somehow "refreshing" things?  What can I call in > order to force this to happen without actually plotting any additional > points after my lines are plotted? It's difficult to tell without seeing the code that's producing

[Matplotlib-users] psd (and friends) scaling and NFFT

2010-11-16 Thread Ryan May
whose code may or may not be broken by such a change. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTM

Re: [Matplotlib-users] Change in pcolor functionality from 0.99.1.1 to 1.0.0

2010-11-12 Thread Ryan May
oblem I've been seeing here: http://matplotlib.sourceforge.net/examples/pylab_examples/pcolor_demo.html Calling pcolor with antialiased=False removes the lines, but that's just a workaround, not a solution. I'm not really sure where to start to track this down, so if anyone

Re: [Matplotlib-users] RectangleSelector Issue

2010-11-12 Thread Ryan May
drawtype='box', minspanx=5, minspany=5, spancoords='pixels' ) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma --

Re: [Matplotlib-users] automatically choose different line markers

2010-11-08 Thread Ryan May
colors = itertools.cycle(['r','g','b','c','y','m','k']) markers = itertools.cycle(['o','s','v']) fig = plt.figure() ax = fig.add_subplot(111) for i in range(10): x = np.linspace(0, 2*np.pi)

Re: [Matplotlib-users] config dir owned by root

2010-11-08 Thread Ryan May
edit /etc/sudoers, you are *very much* in control of how sudo works in this regard. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- The Next 800 Companies to Lead America's

Re: [Matplotlib-users] config dir owned by root

2010-11-08 Thread Ryan May
ng under sudo. >>             current_user = os.getenv("SUDO_USER") >>             if current_user: >>                 subprocess.call(["chown", "-R", current_user, p]) I'm not sure how I feel about this. On one hand, it is a pain to have this not

Re: [Matplotlib-users] Dealing with Multiple figures

2010-11-05 Thread Ryan May
> ax3.plot(...) > > > ax1.plot(...) > ax2.plot(...) > ax3.plot(...) > > # set the x and y lim <- how do I do this? ax1.set_xlim(xmin, xmax) ax1.set_ylim(ymin, ymax) ... Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ---

Re: [Matplotlib-users] unwanted label clipping in gallery

2010-10-27 Thread Ryan May
27;, rotation=270.) for tl in ax2.get_yticklabels(): tl.set_color('r') ax2.legend((line1, line2), ('exp(t)', '$sin(2 \pi t)$')) plt.show() Thanks for the suggestions. Any idea how the

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Ryan May
On Fri, Oct 22, 2010 at 11:31 AM, Maarten Sneep wrote: > On Fri, 2010-10-22 at 11:12 -0500, Ryan May wrote: >> On Fri, Oct 22, 2010 at 9:40 AM, Christopher Fonnesbeck >> >> > If there are only 7 possible values of the data, which are >> evenly-spaced, it should prob

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Ryan May
On Fri, Oct 22, 2010 at 9:40 AM, Christopher Fonnesbeck wrote: > On Oct 22, 2010, at 9:13 AM, Ryan May wrote: >> >> On Fri, Oct 22, 2010 at 8:47 AM, Christopher Fonnesbeck >> wrote: >>> I notice that when the number of bins in a histogram is sparse, the spacin

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Ryan May
seen this before, so I sense it's due to the specific data types you're passing in. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Nokia and AT&T present th

Re: [Matplotlib-users] bug: axes.hitlist() ?

2010-10-06 Thread Ryan May
uldn't cause a traceback regardless. I've fixed this in SVN. If you're not running SVN, the patch is small, but it should be noted that the error message you're seeing is purely cosmetic and shouldn't be causing any problems. Ryan -- Ryan May Graduate Research Assistant School

Re: [Matplotlib-users] Python 3

2010-09-27 Thread Ryan May
e web view of SVN. You need to checkout from: svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/py3k Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma --

Re: [Matplotlib-users] Python 3

2010-09-24 Thread Ryan May
On Fri, Sep 24, 2010 at 4:45 PM, Xavier Gnata wrote: > On 09/21/2010 04:13 PM, Ryan May wrote: >> On Tue, Sep 21, 2010 at 8:22 AM, A. S. Budden wrote: >> >>> All, >>> >>> Now that NumPy is available for python 3.1 and SciPy is well on its >>> w

Re: [Matplotlib-users] Mouse event blocked in 1.0 but works with 0.93 ?

2010-09-23 Thread Ryan May
ference to the callbacks, which would have kept PickFig alive. This was changed to eliminate some resource leaks. The fix is simple, just save the PickFig as a member of TestFig: self.pf = PickFig(self.figure) That fixes the problem for me. Ryan --

Re: [Matplotlib-users] empty xticklabel before plotting ...

2010-09-23 Thread Ryan May
= f.add_subplot(111) data = np.array([1,2,3,4,5]) / 100. ax.plot(data, np.arange(len(data))) ax.xaxis.set_major_formatter(plt.FuncFormatter(format)) plt.show() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma

Re: [Matplotlib-users] Mouse event blocked in 1.0 but works with 0.93 ?

2010-09-23 Thread Ryan May
? Without that, I'd just be guessing blindly. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Start uncovering the many advantages of virtual appliances and start using th

Re: [Matplotlib-users] empty xticklabel before plotting ...

2010-09-23 Thread Ryan May
(plt.FormatStrFormatter('%.2g')) plt.show() If you can't get what you want using a format string, you can write a function that does what you want can create a formatter from that using FuncFormatter. Ryan -- Ryan May Graduate Researc

Re: [Matplotlib-users] Python 3

2010-09-21 Thread Ryan May
here are no major impediments--the branch can already run a simple example. Unfortunately, development time seems to be quite a lacking resource of late (I *know* it has for me). Patches, however, are always accepted. :) Ryan -- Ryan May Graduate Research Assistant School of Meteorology Unive

Re: [Matplotlib-users] plot not updating in snow leopard

2010-09-20 Thread Ryan May
e timed updates integrate into the GUI event loop and don't fight it. The other benefit is that this works with any of the interactive backends and you don't end up debugging weird draw problems. Even when I've gotten your style of animation to work in the past, I've still had p

Re: [Matplotlib-users] textured bar-chart

2010-09-20 Thread Ryan May
ed with some texture or tiling or a grid? > Excel has this function but I could not find a way to do it in > python/matplotlib. It's not what one would call a turn-key solution, but it is possible: http://matplotlib.sourceforge.net/examples/pylab_examples/demo_ribbon_box.html Ry

Re: [Matplotlib-users] Z channel

2010-09-16 Thread Ryan May
tting package in the sense of having all of the hardware bells and whistles, so there is no z-buffer. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Start uncovering the m

Re: [Matplotlib-users] Error

2010-09-15 Thread Ryan May
c example? pylab is just pyplot with some additional imports from mlab and numpy. Otherwise, they're the same plotting API. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- St

Re: [Matplotlib-users] quiver units

2010-09-15 Thread Ryan May
ymodules/python2.6/matplotlib/quiver.py", line 425, in > _init >     trans = self._set_transform() >   File "/usr/lib/pymodules/python2.6/matplotlib/quiver.py", line 481, in > _set_transform >     raise ValueError('unrecognized units') > ValueError: unrecogn

Re: [Matplotlib-users] basemap and contouring

2010-09-13 Thread Ryan May
esponding *before* coffee this morning. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- Start uncovering the many advantages of virtual appliances and start using them to simplify

Re: [Matplotlib-users] basemap and contouring

2010-09-13 Thread Ryan May
7;c') > > data2 = np.random.sample((17,16)) > x = np.linspace(-1.74, -1.32, 16) > y = np.linspace(15.15, 15.61, 17) > X, Y = m(x, y) > m.contourf(X, Y, data2, colors='black') > plt.show() You replaced the call to meshgrid with a call to the Basemap object. You need

Re: [Matplotlib-users] drawing circles with scatter

2010-09-08 Thread Ryan May
rather have one dimension expanded than the other one > shrunk. Can I control that? You can make it so that axes box itself is changed instead of your data limits: import matplotlib.pyplot as plt ax = plt.gca() ax.set_aspect('equal','box') Ryan -- Ryan May Graduate Resea

Re: [Matplotlib-users] Line changes color along its length

2010-09-07 Thread Ryan May
IDL this is done by just giving a color array with the same length as the > data then the line changes with the current colortable. Try this: http://matplotlib.sourceforge.net/examples/pylab_examples/multicolored_line.html Ryan -- Ryan May Graduate Research Assis

Re: [Matplotlib-users] Uniform transparency and background color?

2010-09-02 Thread Ryan May
Remember, though, that your monitor doesn't display an "alpha" color. Any translucency from a net blending of colors just means that you're blending in a background color (alpha=1.0) somewhere. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of

Re: [Matplotlib-users] Uniform transparency and background color?

2010-09-02 Thread Ryan May
and blue are blended together, you end up with purple. If you want it all uniform, you'd be better off setting the axes patch to an alpha of 0.0. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma <>-

Re: [Matplotlib-users] problems with autoscale_view

2010-08-30 Thread Ryan May
;, x, y2, 'go') > ax.grid(True) > maxy = max(max(y1), max(y2)) > maxx = max(x) > > ax.set_xlim((0.0, maxx)) > ax.set_ylim((0.0, maxy)) > > fig.autofmt_xdate() > > plt.xticks(range(0, 40, 1)) > > plt.yticks(range(0, 40, 1)) > plt.xlabel('Longitude

Re: [Matplotlib-users] Not scaling patches.

2010-08-27 Thread Ryan May
On Fri, Aug 27, 2010 at 1:16 PM, Eric Firing wrote: > On 08/27/2010 07:15 AM, Ryan May wrote: >> You can make the circle this way, specifying everything in axes coordinates: >> >> cp = patches.Circle((.5,.5),.025, transform=ax.transAxes) >> >> However, this pu

Re: [Matplotlib-users] Not scaling patches.

2010-08-27 Thread Ryan May
re the only path forward I see is subclassing Circle. This way you could add code to the draw method to calculate the center in axes coordinates from the center in data coords. This needs to be done at draw time since the mapping of data coords->axes coords changes as you pan and zoom. Ryan -- Rya

Re: [Matplotlib-users] legend missed one dataset

2010-08-26 Thread Ryan May
he right end be >> automatically set). >> >> I hope that helps! >> Ben Root > Thank you it works, but ax.set_xlim(left=0.0) does not work only > ax.set_xlim(0.0) works. That's becaues that only works for SVN trunk. The keyword args 'left' and 'right&#x

Re: [Matplotlib-users] exclude something from legend

2010-08-26 Thread Ryan May
and(2,10) x4,y4 = np.random.rand(2,10) plt.plot(x1, y1, label='first') plt.plot(x2, y2) # No label, so not included plt.plot(x3, y3, label='_nolegend_') # Actively suppress plt.plot(x4, y4, label='fourth') plt.legend() # Only shows lines 'first' and 'fourth'

Re: [Matplotlib-users] My Legend keeps growing! Help

2010-08-26 Thread Ryan May
> > > You can select yourself what you want to include in the legend by > creating the legend as follows: You can also leave out the label, or in a loop like this, conditionally assign a label of '_nolegend_', which suppresses adding it to the legend. This example shows how th

Re: [Matplotlib-users] MPL = Location of new figure on desktop

2010-08-20 Thread Ryan May
ust X11 objects. The manager is just placing a box and responding to minimize/maximze, etc. It doesn't hurt to check, I just would be *GREATLY* surprised if anything changed due to the window manager. My money would be on some hint that a particular backend is failing to give the WM. Ry

Re: [Matplotlib-users] Noob assist: trailing value graph

2010-08-19 Thread Ryan May
has level y[i] If 'mid', the jumps in *y* occur half-way between the *x*-values. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- This SF.net email is spons

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-19 Thread Ryan May
n artists, >> unless you're referring to the jumble of text. These are actually >> tightly packed ticklabels for x-axis. Since the scaling is fubar-ed, >> it looks messed up. >> >> Not sure what could be reasonably expected in such a case. >> >> Ryan

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-18 Thread Ryan May
l, the other based on dates. That threw the axes scaling completely off. There weren't any misdrawn artists, unless you're referring to the jumble of text. These are actually tightly packed ticklabels for x-axis. Since the scaling is fubar-ed, it looks messed up. Not sure what could be reaso

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-11 Thread Ryan May
are undefined. > Agreed. The only thing I can think of is that the second figure is reusing the first. You can try calling plt.figure() at the beginning of the functions to create a new figure, or call plt.figure() in between the calls to CreateMemberStatCategoryFigure() and CreateMemberStatFigure().

Re: [Matplotlib-users] Same X and Y scale

2010-07-30 Thread Ryan May
On Jul 30, 2010, at 14:34, Nikolaus Rath wrote: > Hi, > > Consider this: > > X = np.linspace(0.70, 1.1, 100) > Y = np.linspace(-1.19, 1.19, 70) > (Xs, Ys) = np.meshgrid(X, Y) > Z = np.sqrt((Xs-0.9)**2 + Ys**2) - 0.10 > fig = plt.figure() > ax = fig.add_subplot(111) > ax.contour(X, Y, Z) > fig.s

Re: [Matplotlib-users] catching close figure event

2010-07-29 Thread Ryan May
dea ? >> >> thank you very much >> >> Eric, > > Which version of matplotlib are you using? "close_event" is a valid event > identifier. > It was added in the most recent 1.0, so make sure you have that. Ryan -- Ryan May Graduate Research Assistant School of

Re: [Matplotlib-users] scientific notation

2010-07-15 Thread Ryan May
ca().xaxis.get_major_formatter().set_powerlimits((-5,5)) The other way is make a custom formatter that changes the values of the ticks: def fmt_ghz(val, pos=None): return '%g' % (val / 1e9) plot(x, y) gca().xaxis.set_major_formatter(FuncFormatter(fmt_ghz)) You can get more i

Re: [Matplotlib-users] update an existing contour plot with new data

2010-07-09 Thread Ryan May
to make the plot. In this case, most of the work is in generating the contours, so I don't think you'd get much savings. (Granted, I haven't tried to verify these assumptions.) Ryan -- Ryan May Graduate

Re: [Matplotlib-users] update an existing contour plot with new data

2010-07-09 Thread Ryan May
lections: plt.gca().collections.remove(coll) C = plt.contourf(f2) plt.draw() Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- This SF.net email is sponsored by Sprint What

Re: [Matplotlib-users] NonUniformImage: problem with axis reversal

2010-07-07 Thread Ryan May
the image data is assumed to be starting in the upper left. You can change this assumption by passing: orgin='lower' All of these options are supported by imshow(), so if one has uniform data and just needs proper data scaling, imshow() will be sufficient. Ryan -- Ryan May Gradua

Re: [Matplotlib-users] How to ask a Figure whether the zoom was manually changed?

2010-07-06 Thread Ryan May
As Ben said, there's an close_event you can listen for. Here's an example: http://matplotlib.sourceforge.net/examples/event_handling/close_event.html Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ---

Re: [Matplotlib-users] Setting the xaxis date ranges

2010-07-03 Thread Ryan May
f this doesn't work for you, I'd need to see what data you're plotting with. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- This SF.net email is sponsored

Re: [Matplotlib-users] Minor tick labels

2010-07-03 Thread Ryan May
). Fixed in trunk. (As far as I can tell, this is due to an SVN merge error from the transforms branch.) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- This SF.net email is sponsor

Re: [Matplotlib-users] How can I solve this ... ??? II

2010-07-03 Thread Ryan May
alic", color = self.cor[ 608 ][ 1 ], lod = True ) That works for me here (though with the original, I just get missing characters, not an error). Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma --

Re: [Matplotlib-users] matplotlib and threads problem on mac (works on windows)

2010-07-02 Thread Ryan May
stalling in windows. > > anyone shed any lights on the thread problem? A lot of GUI toolkits don't permit multi-threaded access to their event loops. What you really want is to integrate your interaction into that loop itself, so that the GUI handles things for you. Try looking at the examp

Re: [Matplotlib-users] Question about old matplotlib.transforms API

2010-06-24 Thread Ryan May
thing, but I don't see matplotlib.transforms.Value() or anything remotely resembling it mentioned there. I have no idea what the original method did, so I'm not sure if this an omission or if I'm just dense. Ryan -- Ryan May Graduate Research Assistant School

Re: [Matplotlib-users] how to stop resize when adding scatter plot?

2010-06-22 Thread Ryan May
; This functionality work fine. > > However if I am zoomed in on my graph looking at detail, then click the > radio button, the scatter plot forces the graph to resize to once again > show the overall intial view (zoomed out). Try using: axes.set_autoscale_on(False) Ryan -- Ryan May

Re: [Matplotlib-users] plotting dates and dtypes

2010-06-18 Thread Ryan May
r(dates.DayLocator()) plt.gca().xaxis.set_major_formatter(dates.DateFormatter('%Y/%m/%d')) plt.show() Personally, I find it much easier to work with python datetime objects than any other form. You can Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Okla

Re: [Matplotlib-users] turning off tick marks

2010-06-17 Thread Ryan May
On Thu, Jun 17, 2010 at 11:39 AM, Benjamin Root wrote: > Try "ax.set_xticks([])", I think that works for 2D plots. Nope, labels disappear. Jeff, try this: ax.xaxis.set_ticks_position('none') Ryan -- Ryan May Graduate Research Assistant School of Meteorology

Re: [Matplotlib-users] hist() and masked_array

2010-06-17 Thread Ryan May
ion? Unfortunately, these lines in Axes.hist(): # TODO: support masked arrays; x = np.asarray(x) say it all. I think changing to asanyarray() should work (I'm not sure what, if anything, this would break), but there's no way for you to get this behavior without editi

Re: [Matplotlib-users] howto turn off colorbar frame

2010-06-17 Thread Ryan May
fortunately (I've marked this as a TODO, but I don't see a quick way to add it at the moment). The following gets it done, however: cb.ax.artists.remove(cb.outline) Ryan -- Ryan May Graduate Research Assistant Schoo

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] 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] 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] 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] 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] 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] 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] 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

  1   2   3   4   >