[Matplotlib-users] Arrows in figure window?

2013-10-25 Thread Skipper Seabold
What are those arrows for if not for cycling through figures? Is this really the only way to accomplish what the OP wants here? By writing an event handler? http://stackoverflow.com/questions/11088336/matplotlib-step-by-step-animation

[Matplotlib-users] Problem with PatchCollection and FancyArrowPatch?

2013-01-30 Thread Skipper Seabold
Hi, Trying to figure out why these two do not create the same plot. Bug or user error? import matplotlib.pyplot as plt from matplotlib.patches import FancyArrowPatch from matplotlib.collections import PatchCollection def correct_patch(pos): fig, ax = plt.subplots() for src, dst in pos:

[Matplotlib-users] FancyArrowPatch to edge of marker with known size?

2013-01-29 Thread Skipper Seabold
Say I have a marker with a known size in points and I want to draw an arrow to this point. How can I get the ends points for the arrow? As you can see in the below, it overlaps the markers. I want to go to the edge. I can use shrinkA and shrinkB to do what I want, but I don't see how they're

[Matplotlib-users] filled step plot?

2013-01-26 Thread Skipper Seabold
This has been asked before, and I just filed a ticket [1]. Can anyone think of a better way to do something like this? The fill_between below is pretty suboptimal IMO. import matplotlib.pyplot as plt import numpy as np t_sec = np.arange(6) velocity = np.array([24., 33., 40., 45., 48., 49.])

[Matplotlib-users] using draw_if_interactive in library plots?

2012-11-14 Thread Skipper Seabold
Hi All, Hoping someone can help me get a definitive answer to this question. Is draw_if_interactive bad to have in library plotting code? Based on this thread [1], we've been working under the assumption that calling draw_if_interactive in plotting code is bad. Though I'm skeptical that this is

[Matplotlib-users] overwriting suptitle?

2012-09-16 Thread Skipper Seabold
Is there a way to overwrite suptitle? When using 3rd party libs that return a figure, if they set suptitle and don't give you the text object back then you can't overwrite it? This doesn't seem right to me. http://stackoverflow.com/questions/10559144/matplotlib-suptitle-prints-over-old-title

Re: [Matplotlib-users] overwriting suptitle?

2012-09-16 Thread Skipper Seabold
On Sun, Sep 16, 2012 at 2:54 PM, Benjamin Root ben.r...@ou.edu wrote: On Sun, Sep 16, 2012 at 2:09 PM, Skipper Seabold jsseab...@gmail.com wrote: Is there a way to overwrite suptitle? When using 3rd party libs that return a figure, if they set suptitle and don't give you the text object

[Matplotlib-users] abline plot?

2012-04-01 Thread Skipper Seabold
Hi, I wrote an abline_plot function, and I'm curious if what I'm doing is the best way to go about this. I tried unsuccessfully to get the transforms to do what I want, but I'm not sure if it's possible. What I came up with is to use callbacks to draw an infinite line. It works, but it seems a

Re: [Matplotlib-users] abline plot?

2012-04-01 Thread Skipper Seabold
On Sun, Apr 1, 2012 at 4:23 PM, Skipper Seabold jsseab...@gmail.com wrote: Hi, I wrote an abline_plot function, and I'm curious if what I'm doing is the best way to go about this. I tried unsuccessfully to get the transforms to do what I want, but I'm not sure if it's possible. What I came

[Matplotlib-users] padding axis limits automatically?

2012-03-30 Thread Skipper Seabold
There is probably a simple answer to this, but I don't see it. How can I pad the axis limits automatically? For instance, in the below example, the x axis limits are the data points and the y limit is close. I want to have a function that pads the axis limit at least, by say, 10% of the range of x

Re: [Matplotlib-users] padding axis limits automatically?

2012-03-30 Thread Skipper Seabold
On Fri, Mar 30, 2012 at 5:45 PM, Tony Yu tsy...@gmail.com wrote: On Fri, Mar 30, 2012 at 4:40 PM, Eric Firing efir...@hawaii.edu wrote: On 03/30/2012 08:47 AM, Skipper Seabold wrote: There is probably a simple answer to this, but I don't see it. How can I pad the axis limits automatically

Re: [Matplotlib-users] plt.close(fig) error in python 3.2

2012-02-29 Thread Skipper Seabold
On Wed, Feb 29, 2012 at 2:02 PM, josef.p...@gmail.com wrote: snip I'm not able to build matplotlib myself. If you're interested, I've been able to build on windows since Christophe provides the dependencies by doing the following

[Matplotlib-users] Caption in Plot Directive

2012-01-05 Thread Skipper Seabold
Is this information incorrect? http://matplotlib.sourceforge.net/devel/documenting_mpl.html#module-matplotlib.sphinxext.plot_directive This line seems to preclude ever getting to the below code to process the caption.

[Matplotlib-users] draw bbox around axes title

2012-01-05 Thread Skipper Seabold
Hi, I'm trying to draw a box around an axes title, and I'm having trouble controlling it. I want the box to span the width of the x axis. I tried some iterations on the below since xy and height/width are hard-coded in set_title, but when I call show, it seems the width of the box is reset. Any

[Matplotlib-users] Ticks and Axes for 3d plotting

2011-11-08 Thread Skipper Seabold
Hi, Two related questions. Consider this plot - import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.plot([1,0,0,1],[0,1,0,0],[0,0,1,0]) ax.set_xlim3d(0,1) ax.set_ylim3d(0,1) #ax.set_ylim3d(1,0)

Re: [Matplotlib-users] Ticks and Axes for 3d plotting

2011-11-08 Thread Skipper Seabold
On Tue, Nov 8, 2011 at 6:13 PM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Nov 8, 2011 at 4:55 PM, Skipper Seabold jsseab...@gmail.com wrote: Hi, Two related questions. Consider this plot - import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure