Re: [Matplotlib-users] Using dates in a simple plot with wxPython doesn't work

2015-07-28 Thread Brendan Barnwell
tetime import datetime", thus importing the datetime type from that library. If your first version is working, change the second version to use the same import. -- Brendan Barnwell "Do no

Re: [Matplotlib-users] How to visualize a, b results of x, y variables

2015-07-09 Thread Brendan Barnwell
approximates what it is you're trying to illustrate with the graph. -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown ---

Re: [Matplotlib-users] animation.FuncAnimation example --- how does it work?

2015-04-23 Thread Brendan Barnwell
sed positionally. (In Python 3 there are keyword-only arguments, and even in Python 2 the variadic **kwargs syntax collects only keyword arguments, but those aren't involved as far as the "frame" argument here is concerned.) -- Brendan Barnwell "Do not follow where

Re: [Matplotlib-users] Install Problem

2015-02-13 Thread Brendan Barnwell
e. > I'm new to Python, and am a loss as to how to install "matplotlib"! > Please Help !! Well, one thing is that an installer with "cp32" in the filename is for Python 3.2. For Python 3.4 you need the one that says "cp34". -- Brendan Barnwe

Re: [Matplotlib-users] Key events using nbagg backend

2014-12-04 Thread Brendan Barnwell
ew.html#the-nbagg-backend it says: "Phil Elson added a new backend, named “nbagg”, which enables interactive figures in a live IPython notebook session." The word "interactive" certainly could lead people to believe that the backend is, in fact, interactive. -- Brendan Ba

Re: [Matplotlib-users] Histogram appearance

2014-12-03 Thread Brendan Barnwell
that there are empty bins between each of the other bars. How are you setting the bins? You could try adjusting the bin boundaries. -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail.&q

Re: [Matplotlib-users] Problem with event handling in matplotlib in tkinter

2014-11-07 Thread Brendan Barnwell
ch and found numerous old-style classes throughout MPL. Is there any reason for this? -- Brendan Barnwell "Do not follow where the path may lead. Go, instead,

Re: [Matplotlib-users] pick_event after zooming/panning stops working.

2014-08-21 Thread Brendan Barnwell
would be keyboard shortcuts for the toolbar tools, so that zoom could be activated/deactivated without moving the mouse. -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and

Re: [Matplotlib-users] Basic matshow question

2014-07-30 Thread Brendan Barnwell
about the normal Python interpreter, not IPython. -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown -- Infragistics Professi

Re: [Matplotlib-users] timer objects in macosx backend

2013-07-18 Thread Brendan Barnwell
er() x = t del t Then the object's __del__ will definitely not be called yet. It makes sense to have a way to stop the timer directly, regardless of how many names are pointing to it. -- Brendan Barnwell "Do not follow where the path may le

Re: [Matplotlib-users] Individual custom markers and colorbar

2013-04-26 Thread Brendan Barnwell
u can set the edgecolor equal to the string 'face' to make it use the facecolor. -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown -

Re: [Matplotlib-users] set limits not obeyed for stacked plots when set_aspect('equal') used

2013-03-20 Thread Brendan Barnwell
iginal post). You should be able to fix the aspect ratio of the *axes* and also the dimensions of the *figure*, and let the slack be taken up by blank space around the axes. It would still be possible for the dimensions of the axes box to change, just not their aspect ratio (i.e., zooming in on an obl

Re: [Matplotlib-users] set limits not obeyed for stacked plots when set_aspect('equal') used

2013-03-20 Thread Brendan Barnwell
ure (as suggested in the original post). You should be able to fix the aspect ratio of the *axes* and also the dimensions of the *figure*, and let the slack be taken up by blank space around the axes. It would still be possible for the dimensions of the axes box to change, just not their asp

Re: [Matplotlib-users] Evolution of the interface

2013-03-15 Thread Brendan Barnwell
tch-all way is even more unpythonic. There are lots of things you might want to do to an MPL object, and we shouldn't elevate attribute get/set as the "main one" that should be accessed by the call syntax. That MEP would be great, though! -- Brendan Barnwell

[Matplotlib-users] Plotting with WxAgg backend hangs

2013-03-11 Thread Brendan Barnwell
Agg-td39110.html ), but there was no real answer: the poster just decided not to use WxAgg. But aren't we really supposed to be able to use WxAgg interactively? Thanks, -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trai

[Matplotlib-users] Pick PathCollection component by interior

2013-01-10 Thread Brendan Barnwell
, but even handling it without that wrinkle would be a start. Thanks, -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown -

Re: [Matplotlib-users] Novice question: Am I using pyplot.rgrids correctly?

2012-12-17 Thread Brendan Barnwell
a negative *r-coordinate* is a perfectly mathematically respectable notion with a standard interpretation. Moreover, it is actually useful when you want to graph some things, and is supported by other plotting software (see, e.g., http://www.wolframalpha.com/input/?i=polar+plot+r%3Dtheta%2C-p

Re: [Matplotlib-users] Novice question: Am I using pyplot.rgrids correctly?

2012-12-17 Thread Brendan Barnwell
tewart/mathweb/math127/intro_polar/intro_polar.htm and an MIT Opencourseware document at http://ocw.mit.edu/resources/res-18-001-calculus-online-textbook-spring-2005/study-guide/MITRES_18_001_guide9.pdf. Matplotlib shouldn't raise an error on negative r, it should just interpr

Re: [Matplotlib-users] Why does contourf with the extend argument tweak the data limits?

2012-07-09 Thread Brendan Barnwell
code that I pointed to in _process_levels is setting vmin and vmax. It's possible this isn't the root of the problem, but the code certainly looks strange and unmotivated, and it is what's causing incorrect clim to be set. -- Brendan Barnwell "Do not follow where the path may

[Matplotlib-users] Why does contourf with the extend argument tweak the data limits?

2012-07-08 Thread Brendan Barnwell
cs.set_clim(50, 210) cb = pyplot.colorbar(cs) But why do I have to do this? The whole reason I passed in my specified levels was because I wanted THOSE to be the data limits. Why is matplotlib expanding the data limits, and thus preventing me from specifying the "out of range&qu

Re: [Matplotlib-users] What is your matplotlib workflow?

2012-06-18 Thread Brendan Barnwell
r libs that provide a simpler interface (like I guess this Canvas thing you mentioned) could be useful for getting around that. -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown

[Matplotlib-users] Certain annotation parameters cause strange error

2011-10-29 Thread Brendan Barnwell
inds of arrows when the text is too close to the annotated point. Any ideas? Thanks. -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown ---

[Matplotlib-users] Histogram of categorical values

2011-07-09 Thread Brendan Barnwell
would be a common task, so I'm wondering if there's a function for it, or, failing that, a standard recipe. Thanks, -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail.&q

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Brendan Barnwell
hile back this caused me a lot of headache, for the reasons Tony Yu mentioned: it means you have to draw everything multiple times. It would really help if it were possible to specify objects' parameters and get their sizes without drawing them. -- Brendan Barnwell "Do not follow where the path

Re: [Matplotlib-users] savefig bbox_inches='tight' does not consider suptitle

2011-03-07 Thread Brendan Barnwell
"required". Good thing I read this message! :-) > The interface should create the figure objects, the figure objects should > create the axes objects, the axes objects should create the axis objects, > and so on and so forth. That makes perfect sense, but is not at all

Re: [Matplotlib-users] How to blank an area of the canvas?

2010-02-16 Thread Brendan Barnwell
support some animation, I think >> you 'd better turn to another tool if you need an efficiency, Maybe so. What tool would you recommend for animated plots? Best wishes, -- Brendan Barnwell "Do not follow where the path may lead. G

Re: [Matplotlib-users] How to blank an area of the canvas?

2010-02-14 Thread Brendan Barnwell
Brendan Barnwell wrote: > I'm trying to find the quickest way to erase a rectangular area of > the figure canvas. I tried using canvas.restore_region with the > optional bbox argument, but there seems to be some mismatch between > the measurement units of the saved buff

[Matplotlib-users] How to blank an area of the canvas?

2010-02-12 Thread Brendan Barnwell
them elsewhere? That's what I'm trying to do here. Thanks, -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown -- SOLA

[Matplotlib-users] Animation with many moving parts

2010-02-10 Thread Brendan Barnwell
the blank. This way items that were nowhere near any change wouldn't need to be redrawn. Is this feasible? Is there a standard way to go about this? Is there any way to figure out which artists overlap without looping over the list of all artists and checking the bbox boun

Re: [Matplotlib-users] Importing pyplot crashes python

2010-01-23 Thread Brendan Barnwell
Brendan Barnwell wrote: > Hi, > > I decided to upgrade to matoplotlib 0.99.1. I'm on Windows XP. I > downloaded matplotlib-0.99.1.win32-py2.5.exe and ran it. It seemed to > install. Now when I try "from matplotlib import pyplot", Python > crash

[Matplotlib-users] Importing pyplot crashes python

2010-01-21 Thread Brendan Barnwell
fix this problem? Thanks, -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown -- Throughout its 18-year history, RSA Conferenc

Re: [Matplotlib-users] basic understanding of plotting dates

2007-09-04 Thread Brendan Barnwell
dle datetime objects itself? The requirement of having to manually convert them to an ad-hoc matplotlib "format" (which is just an integer) seems rather obtuse. -- --Brendan Barnwell "Do not follow where th

Re: [Matplotlib-users] Legend outside plot

2006-08-18 Thread Brendan Barnwell
Stefan van der Walt wrote: > On Thu, Aug 17, 2006 at 09:48:58PM -0700, Brendan Barnwell wrote: >> [I accidentally sent this message privately to the sender before. . . why >> doesn't this list set the Reply-To header to the list?] > > I don't think mailing l

Re: [Matplotlib-users] Legend outside plot

2006-08-17 Thread Brendan Barnwell
[I accidentally sent this message privately to the sender before. . . why doesn't this list set the Reply-To header to the list?] Darren Dale wrote: >> On Wednesday 16 August 2006 02:26, Brendan Barnwell wrote: > >>>>Hi, I'm trying to get matplotlib to giv

[Matplotlib-users] Legend outside plot

2006-08-15 Thread Brendan Barnwell
to NEVER overlap lines? I'm rather surprised that there seems to be no way to guarantee this, since it seems like an obvious thing to want, and also since there seem to be a bunch of requests for it on the mailing list. Thanks for the help. -- --Brendan Barnwell "Do