Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-25 Thread Andreas Matthias
Benjamin Root wrote: > On Sunday, September 25, 2011, Andreas Matthias > wrote: >> Paul Ivanov wrote: >> >>> On Sat, Sep 24, 2011 at 3:59 AM, Andreas Matthias >>> wrote: >>>> Hmm. I do not get a reversed list of axes. T

Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-25 Thread Andreas Matthias
Paul Ivanov wrote: > On Sat, Sep 24, 2011 at 3:59 AM, Andreas Matthias > wrote: >> Hmm. I do not get a reversed list of axes. This is the output of >> the example code below: >> >> [, > object at 0x8f633ec>] >> [, > object at 0x8f633ec>] > &

Re: [Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-24 Thread Andreas Matthias
Paul Ivanov wrote: > On Fri, Sep 23, 2011 at 2:08 PM, Andreas Matthias > wrote: >> In the following example the coordinates of the mouse >> cursor displayed in the pylab window belong to the >> second y-axis. But I would prefer to have the coordinates >> of the fi

[Matplotlib-users] pylab, twinx, and displayed coordinates

2011-09-23 Thread Andreas Matthias
In the following example the coordinates of the mouse cursor displayed in the pylab window belong to the second y-axis. But I would prefer to have the coordinates of the first y-axis to be displayed. Is this possible? import pylab as mpl mpl.plot([1,3,2]) mpl.twinx() mpl.plot([400,50,100]) mpl.s

[Matplotlib-users] plotting masked arrays with plot_surface()

2011-09-22 Thread Andreas Matthias
I would like to plot a masked array with plot_surface(). But unlike imshow() which really plots the masked data, plot_surface() only plots the non-masked data. How can I plot the masked array? Ciao Andreas import numpy as np import pylab as mpl from mpl_toolkits.mplot3d import axes3d x = np.a

[Matplotlib-users] Missing space in formatted output conversion

2011-09-18 Thread Andreas Matthias
A leading space is missing in the output of mpl.text(1, 1, '% .3f' % 1.234) if used within the TeX backend. Whereas it is not missing in the plain non-TeX backend. Here is an example: import pylab as mpl #mpl.rcParams['text.usetex'] = False mpl.rcParams['text.usetex'] = True mpl.

[Matplotlib-users] Widgets on top of FigureCanvas

2011-04-02 Thread Andreas Matthias
I would like to put a gtk.Button on top of a FigureCanvas. But whatever I try the FigureCanvas stays always on top hiding the button. Below is an example where I can change the order of buttons by switching the following two lines lay.put(but1,360,260) lay.put(but2,360,275) but this doesn'

Re: [Matplotlib-users] preserving transparency in eps

2009-09-01 Thread Andreas Matthias
Chuck Pepe-Ranney wrote: > Thanks, I guess my problem is that I am using the latex prosper package to > make presentation slides but I cannot compile prosper documents with > pdflatex (see here ). > Sorry, I see that this is not a matplotlib specific