Re: [Matplotlib-users] autoscale when adding data to a Line2D?

2010-09-27 Thread Fernando Perez
Mmh, On Sun, Sep 26, 2010 at 10:56 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: Did you try autoscale_view method? http://matplotlib.sourceforge.net/api/axes_api.html?highlight=autoscale#matplotlib.axes.Axes.autoscale_view Please post a sample script that reproduces the problem. I'm

Re: [Matplotlib-users] autoscale when adding data to a Line2D?

2010-09-27 Thread Eric Firing
On 09/26/2010 09:43 PM, Fernando Perez wrote: Mmh, On Sun, Sep 26, 2010 at 10:56 PM, Jae-Joon Leelee.j.j...@gmail.com wrote: Did you try autoscale_view method? http://matplotlib.sourceforge.net/api/axes_api.html?highlight=autoscale#matplotlib.axes.Axes.autoscale_view Please post a sample

Re: [Matplotlib-users] autoscale when adding data to a Line2D?

2010-09-27 Thread Fernando Perez
On Mon, Sep 27, 2010 at 1:23 AM, Eric Firing efir...@hawaii.edu wrote: You can do this using Axes.relim() prior to calling autoscale_view(). Aha! That's the call I missed, thanks a bunch. Perhaps a note indicating that in the autoscale_view docstring wouldn't hurt, because as it reads now I

[Matplotlib-users] sector colouring?

2010-09-27 Thread Piter_
Hi all. Is it possiblle in matplotlib to draw something like this? http://upload.wikimedia.org/wikipedia/commons/thumb/9/9f/Integral_example.svg/420px-Integral_example.svg.png Thanks. Petro. -- Start uncovering the many

Re: [Matplotlib-users] sector colouring?

2010-09-27 Thread Joe Kington
Have a look at fill_between: http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.fill_between Basically, You'd want something like this: import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, np.pi, 20) y = np.sin(x) plt.figure() plt.fill_between(x, y,

[Matplotlib-users] Problems using triplot from file

2010-09-27 Thread radfahrer
Hi everybody, I am trying to plot a triangular grid from a textfile using triplot, but all I get is some wired straight line code: import numpy as np import matplotlib.pyplot as plt x, y = np.loadtxt('points.dat', unpack=True) triangles = np.loadtxt('triangles.dat', dtype=np.int32)

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

2010-09-27 Thread Friedrich Romstedt
2010/9/21 Brian Blais bbl...@bryant.edu: actually, I think the workflow that I use doesn't lend itself well to this.   usually what I do is write code in the local space, in a if __name__==__main__  block, so that after things run I can easily inspect variables, test the results, rerun,

Re: [Matplotlib-users] Python 3

2010-09-27 Thread Ryan May
On Fri, Sep 24, 2010 at 5:28 PM, Xavier Gnata xavier.gn...@gmail.com wrote: I'm not a svn expert but I get an error when I try to checkout the py3k branch: svn: Repository moved temporarily to '/viewvc/matplotlib/branches/'; please relocate Any clues? That URL was a link to the web view of

Re: [Matplotlib-users] Permission error after installing MPL 1.0 on Mac

2010-09-27 Thread Friedrich Romstedt
2010/9/23 Peter Hoekje phoe...@bw.edu: OK, I spoke a little too soon last time.  I reinstalled it tonight and looked a little closer.  Essentially all of the regular files under .../site-packages/matplotlib/... and its subdirectories have permissions similar to -rw--w not just the

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

2010-09-27 Thread Friedrich Romstedt
Brian, Do you, by chance, use interactive mode? Maybe ipython -pylab (if this does)? Just a shot into the dark ... -- Start uncovering the many advantages of virtual appliances and start using them to simplify

Re: [Matplotlib-users] Bring the legend to the front of a plot

2010-09-27 Thread Aman Thakral
Hi, I've managed to fix it. It was a very simple solution. The axes are added in sequential, so I just used the latest axes to be added as the basis for the legend. I've attached a modification of a matplotlib example (multiple_y_axis_with_splines.py) to show the behavior. Perhaps the example

Re: [Matplotlib-users] Problems using triplot from file

2010-09-27 Thread Ian Thomas
On 27 September 2010 15:37, radfahrer clem...@m-info.de wrote: I am trying to plot a triangular grid from a textfile using triplot, but all I get is some wired straight line Your triangulation consists of just two triangles, the first with vertices (0, 0) (0.1, 0.1) (0.1, 0.1) and the second

[Matplotlib-users] How to colorize the ticklabels using host.parasite

2010-09-27 Thread Filipe Pires Alvarenga Fernandes
I was wondering if there is a way to get a effect similar to this example: http://matplotlib.sourceforge.net/examples/api/two_scales.html?highlight=codex%20two%20scale Here The yticklabels have the same color as the label, but using host/parasite:

[Matplotlib-users] Changing behavior of a Pick Event

2010-09-27 Thread Aman Thakral
Hi, Is there a way to change the way a Pick event occurs? Instead of a mouse click, is it possible to use a mouse hover? I'm just curious because I'm developing a wx application and would like to have a Tooltip over various artists. Thanks, Aman

Re: [Matplotlib-users] autoscale when adding data to a Line2D?

2010-09-27 Thread Russell E. Owen
In article 4ca0549d.3060...@hawaii.edu, Eric Firing efir...@hawaii.edu wrote: On 09/26/2010 09:43 PM, Fernando Perez wrote: Mmh, On Sun, Sep 26, 2010 at 10:56 PM, Jae-Joon Leelee.j.j...@gmail.com wrote: Did you try autoscale_view method?

Re: [Matplotlib-users] How to colorize the ticklabels using host.parasite

2010-09-27 Thread Filipe Pires Alvarenga Fernandes
On Mon, Sep 27, 2010 at 14:15, Aman Thakral aman.thak...@gmail.com wrote: I think you're looking at an old example.  Have a look at this one: http://matplotlib.sourceforge.net/examples/pylab_examples/multiple_yaxis_with_spines.html Is that the desire effect? Yes, thanks. Regards, Aman

[Matplotlib-users] Interactive plotting hangs with certain backends on 64-bit Windows 7

2010-09-27 Thread Josh Hemann
When performing interactive plotting from a script (i.e. matplotlib.interactive(True) followed by my plotting code, no show() calls involved but sometimes draw()) I am getting plot windows that initially show a plot, but upon attempts at interaction hang and go blank. Unfortunately, I cannot

[Matplotlib-users] plot3Dsurface4txtfile

2010-09-27 Thread tmfd
Hi, all! How to build a surface from a file? I could read data : x,y,z = loadtxt('data.txt', usecols=[0,1,2], unpack=True), but was unable to draw :-(( In a file stored vertices rectangular sites: -3.7169418696 -1.1272630211 2.3019377358 -3.8909157412 -2.0312577759 1.7469796037

Re: [Matplotlib-users] How to colorize the ticklabels using host.parasite

2010-09-27 Thread Jae-Joon Lee
For your original script that uses axes_grid1 toolkit, you can do something like host.axis[left].major_ticklabels.set_color(p1.get_color()) par1.axis[right].major_ticklabels.set_color(p2.get_color()) par2.axis[right].major_ticklabels.set_color(p3.get_color()) Note that these are only

Re: [Matplotlib-users] How to colorize the ticklabels using host.parasite

2010-09-27 Thread Filipe Pires Alvarenga Fernandes
On Mon, Sep 27, 2010 at 20:10, Jae-Joon Lee lee.j.j...@gmail.com wrote: For your original script that uses axes_grid1 toolkit, you can do something like    host.axis[left].major_ticklabels.set_color(p1.get_color())    par1.axis[right].major_ticklabels.set_color(p2.get_color())    

Re: [Matplotlib-users] legend and bbox_to_anchor, and draggable()

2010-09-27 Thread Jae-Joon Lee
On Sun, Sep 26, 2010 at 4:11 AM, Jouni K. Seppänen j...@iki.fi wrote: I'm not sure either. It seems that the two-number form of the bounding box is meant to create a degenerate bounding box so that any kind of location specifier (upper right, lower center, etc) will always hit that exact

Re: [Matplotlib-users] Changing behavior of a Pick Event

2010-09-27 Thread Jae-Joon Lee
On Tue, Sep 28, 2010 at 1:36 AM, Aman Thakral aman.thak...@gmail.com wrote: Hi, Is there a way to change the way a Pick event occurs?  Instead of a mouse click, is it possible to use a mouse hover? I'm just curious because I'm developing a wx application and would like to have a Tooltip over