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 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 various > artists.

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 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 place, bu

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 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()) >    par2.axis["right"].ma

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

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

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

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 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 > > It did not t

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 wrote: > On 09/26/2010 09:43 PM, Fernando Perez wrote: > > Mmh, > > > > On Sun, Sep 26, 2010 at 10:56 PM, Jae-Joon > > Lee wrote: > >> > >> Did you try autoscale_view method? > >> > >> http://matplotlib.sourceforge.net/api/axes_api.html?hig

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

[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: http://matplotlib.sourceforge.net/examples/axes_

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

2010-09-27 Thread Ian Thomas
On 27 September 2010 15:37, radfahrer 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 (0, 0), (0.1,

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

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

2010-09-27 Thread Friedrich Romstedt
2010/9/23 Peter Hoekje : > 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 mpl-data subd

Re: [Matplotlib-users] Python 3

2010-09-27 Thread Ryan May
On Fri, Sep 24, 2010 at 5:28 PM, Xavier Gnata 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 SVN. You need to ch

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

2010-09-27 Thread Friedrich Romstedt
2010/9/21 Brian Blais : > 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, etc... It's only

[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) plt.triplot

Re: [Matplotlib-users] sector colouring?

2010-09-27 Thread Alan G Isaac
On 9/27/2010 9:10 AM, Piter_ wrote: > 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 http://matplotlib.sourceforge.net/examples/pylab_examples/fill_between_demo.html hth, Ala

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, where=y>0

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

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 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 think the confus

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 Lee 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 scrip

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 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 wondering if I'm do