[Matplotlib-users] dynamically share axes

2011-05-05 Thread Michael Schmidt
Hi Everyone, I have several subplots in one figure, and I'm trying to dynamically display different subplots depending on user input. Everything works fine with the set_visible command, except that I'm running into a problem with shared axes. Basically, I'd like to be able to choose to display

Re: [Matplotlib-users] Asymmetrical arrangements of subplots

2011-05-05 Thread Goyo
2011/5/5 Sebastian Krieger sebastian.krie...@usp.br: Dear all, I have a small question about subplot. I want to avoid creating plot axes manually using pylab.axes, to create an asymmetrical arrangement of subplots like the following code in Matlab: figure subplot(2,2,1:2)

[Matplotlib-users] mplot3d and plot_surface: How to 'hide' objects inside the surface

2011-05-05 Thread Alexander Dietz
Hi, I have the following situation. I have been following the example to create a 3d surface, as explained here: http://matplotlib.sourceforge.net/examples/mplot3d/surface3d_demo2.html and I have altered the code slightly to plot a straight red line from the center outside of the sphere (see

[Matplotlib-users] Subplot x-tick labels overlap with each other and with titles

2011-05-05 Thread Chris Rodgers
Hi Whenever I create figures with at least 3x3 subplots, the x-tick labels overlap with each other and they also overlap with the title of the adjacent subplot, rendering the entire figure illegible. I know that I can fine-tune the plot to look exactly the way I want with wspace and hspace for

Re: [Matplotlib-users] Subplot x-tick labels overlap with each other and with titles

2011-05-05 Thread Goyo
2011/5/5 Chris Rodgers chris.rodg...@berkeley.edu: 1) Is this the intended behavior of matplotlib, or is there something wrong with my installation? This is by design, hspace and vspace are proportional to the size of each subplot. Also the number of ticks does not depend on the subplot or

Re: [Matplotlib-users] mplot3d and plot_surface: How to 'hide' objects inside the surface

2011-05-05 Thread Benjamin Root
On Thursday, May 5, 2011, Alexander Dietz alexanderdie...@googlemail.com wrote: Hi, I have the following situation. I have been following the example to create a 3d surface, as explained here: http://matplotlib.sourceforge.net/examples/mplot3d/surface3d_demo2.html and I have altered the

Re: [Matplotlib-users] Asymmetrical arrangements of subplots

2011-05-05 Thread Benjamin Root
2011/5/4 Sebastian Krieger sebastian.krie...@usp.br Dear all, I have a small question about subplot. I want to avoid creating plot axes manually using pylab.axes, to create an asymmetrical arrangement of subplots like the following code in Matlab: figure subplot(2,2,1:2)

Re: [Matplotlib-users] removing lines from plot

2011-05-05 Thread Benjamin Root
On Wed, May 4, 2011 at 11:23 PM, butt...@gmail.com wrote: redlines.set_visible(False) it is also possible to delete the line from ax.lines. Ex: del ax.lines[-1] deletes the last line. you need to perform a redraw for the change to be visible on the plot. There are more correct ways to do

Re: [Matplotlib-users] Animating plots with the Qt backend

2011-05-05 Thread Benjamin Root
On Tue, May 3, 2011 at 3:57 AM, Gerald Storer g...@mrxtech.com.au wrote: Hello, I've been trying to animate some plots with the qt backend and run into a couple of problems. Firstly, I'd like to be able to update the axis limits in an automated fashion as the data changes size.

Re: [Matplotlib-users] Roll and offset around viewpoint with Axes3D

2011-05-05 Thread Frederic Vogt
As for the roll issue described below : how hard would it be to implement something similar to tr = Affine2D().scale(2, 1).rotate_deg(30) inside mplot3D ? Where should I start ? All I want basically is define my viewpoint with 6 parameters (elev, azim, distance, roll, pitch and yaw), and not

Re: [Matplotlib-users] fill with a semilogy axis?

2011-05-05 Thread Benjamin Root
On Tue, May 3, 2011 at 3:40 AM, K.-Michael Aye kmichael@gmail.comwrote: A colleague posed an interesting challenge: How to do a filled plot having the y-axis in logarithm? I think I can do it with creating patches myself an adding it to the axis, but isn't there anything built-in? Best

Re: [Matplotlib-users] UserWarning: Attempting to set identical bottom==top

2011-05-05 Thread Benjamin Root
On Sun, May 1, 2011 at 4:35 PM, C M cmpyt...@gmail.com wrote: I get this error and would like to know what to do to eliminate it and also what it means: C:\Python25\lib\site-packages\matplotlib\axes.py:2571: UserWarning: Attempting to set identical bottom==top results in singular

[Matplotlib-users] [Repost: Note suggested patches] In mplot3d, how is format_zdata supposed to work? Why is sensible_format_data called?

2011-05-05 Thread Paul Leopardi
[Repost from 21 Mar 2011: note suggested patches] Hi all, I am using Matplotlib 1.0.1 and am seeing weird behaviour with mplot3d and ticker formatters, and I think I need to submit a patch to axes3d, but am not sure how much it will break, because format_zdata() and format_coord() look to be

Re: [Matplotlib-users] Matplotlib trims off the figure plotted

2011-05-05 Thread Benjamin Root
On Fri, Apr 29, 2011 at 7:18 AM, Musa Gabere musa.a...@gmail.com wrote: Hi Everyone, I am currently using matplotlib version 0.99 Ubuntu operating system. I am plotting a figure whose script is as follows. The figure i get is usually trimmed off. See the attached figure. Is there a way to

Re: [Matplotlib-users] Search for a row with a pattern in a column

2011-05-05 Thread Benjamin Root
On Thu, Apr 28, 2011 at 1:13 PM, Pau vim.u...@googlemail.com wrote: Hi, I am trying to grep in 650 data files a row which has a particular number on column 2, namely 0.250E+00 . Alternatively, I could look for that row by searching for the first column, which is 1 .

Re: [Matplotlib-users] Saving figure for later editing

2011-05-05 Thread Benjamin Root
On Tue, Apr 26, 2011 at 3:02 PM, Eric Firing efir...@hawaii.edu wrote: On 04/26/2011 09:36 AM, butt...@gmail.com wrote: I believe this feature, which has been requested a number of times, but is still missing from matplotlib is genuinely useful for interactive plotting. Moreover, I've

Re: [Matplotlib-users] Customizing 3d plots

2011-05-05 Thread Benjamin Root
I apologize for the delay. I have not been paying attention to this mailing list for the past couple of months. My responses are below. On Wed, Apr 20, 2011 at 12:20 AM, José Alexandre Nalon na...@terra.com.brwrote: Greetings, I'm trying to use Matplotlib to plot 3d surfaces, with good

Re: [Matplotlib-users] minvalue must be less than or equal to maxvalue error

2011-05-05 Thread Benjamin Root
On Mon, Apr 18, 2011 at 4:25 AM, Muffles dantares...@gmail.com wrote: Hello all, i created some program to read from netcdf files and plot the data, and it seems to work ok. But when i try to run an older file, it just shows this: Traceback (most recent call last): File netcdf2png.py,

Re: [Matplotlib-users] mplot3d and ticks

2011-05-05 Thread Benjamin Root
On Sat, Apr 16, 2011 at 8:17 AM, Giovanni Luca Ciampaglia junkie.dolp...@gmail.com wrote: Is there a way to control the distance between the axis label and the tick labels with mplot3d.Axes3D? For small figure sizes they overlap and I haven't found a way to fix that. My last resort was to

Re: [Matplotlib-users] No Display in Axes3D with Logarithmic axes

2011-05-05 Thread Benjamin Root
2011/4/3 hongleij hongl...@126.com OS :Win7 SP1 ActivePython-2.7.1.3-win32-x86.msi numpy-1.5.1-win32-superpack-python2.7.exe matplotlib-1.0.1.win32-py2.7.exe Code: from mpl_toolkits.mplot3d import axes3d ax = axes3d.Axes3D(plt.gcf()) #ax.set_xlim(1,10)

Re: [Matplotlib-users] Animating plots with the Qt backend

2011-05-05 Thread Gerald Storer
Ah, I did not know that. I shall investigate. Thanks, Gerald. On 6/05/2011 7:27 AM, Benjamin Root wrote: On Tue, May 3, 2011 at 3:57 AM, Gerald Storer g...@mrxtech.com.au mailto:g...@mrxtech.com.au wrote: Hello, I've been trying to animate some plots with the qt backend and run

Re: [Matplotlib-users] draw_event does not fire for savefig() when installing from source

2011-05-05 Thread Benjamin Root
On Thu, Apr 7, 2011 at 10:41 AM, Jeroen DR voetsjoeba+mplus...@gmail.comwrote: Hi, I'm using the method described on http://matplotlib.sourceforge.net/faq/howto_faq.html#howto-auto-adjust to automatically adjust my subplot figures to make room for my axis labels. I'm not drawing my graphs

Re: [Matplotlib-users] matplotlib subplot is slow

2011-05-05 Thread Benjamin Root
On Thu, Mar 31, 2011 at 7:42 PM, Eddie Schlafly schla...@hotmail.comwrote: Hi all, I was surprised today to notice that subplot was the slowest part of some plotting code of mine. On my machine, the last line of the following code puts ten subplots on a figure and records the amount of

Re: [Matplotlib-users] Save or pickle pyplot object

2011-05-05 Thread Benjamin Root
On Tue, Mar 29, 2011 at 8:35 AM, Andreas Reisinger andreas.reisin...@tuwien.ac.at wrote: Hi! I would like to save a pyplot object as it is, including axes, lines, text, etc. into a file. When opening it again, I want to be able to add additional axes, lines and so on. Unfortunately

Re: [Matplotlib-users] UserWarning: Attempting to set identical bottom==top

2011-05-05 Thread C M
On Thu, May 5, 2011 at 10:03 PM, C M cmpyt...@gmail.com wrote: On Thu, May 5, 2011 at 7:58 PM, Benjamin Root ben.r...@ou.edu wrote: On Sun, May 1, 2011 at 4:35 PM, C M cmpyt...@gmail.com wrote: I get this error and would like to know what to do to eliminate it and also what it means:

Re: [Matplotlib-users] [Repost: Note suggested patches] In mplot3d, how is format_zdata supposed to work? Why is sensible_format_data called?

2011-05-05 Thread Benjamin Root
On Thu, May 5, 2011 at 7:16 PM, Paul Leopardi paul.leopa...@iinet.net.auwrote: [Repost from 21 Mar 2011: note suggested patches] Hi all, I am using Matplotlib 1.0.1 and am seeing weird behaviour with mplot3d and ticker formatters, and I think I need to submit a patch to axes3d, but am not

Re: [Matplotlib-users] UserWarning: Attempting to set identical bottom==top

2011-05-05 Thread Benjamin Root
On Thu, May 5, 2011 at 9:04 PM, C M cmpyt...@gmail.com wrote: On Thu, May 5, 2011 at 10:03 PM, C M cmpyt...@gmail.com wrote: On Thu, May 5, 2011 at 7:58 PM, Benjamin Root ben.r...@ou.edu wrote: On Sun, May 1, 2011 at 4:35 PM, C M cmpyt...@gmail.com wrote: I get this error and would

Re: [Matplotlib-users] UserWarning: Attempting to set identical bottom==top

2011-05-05 Thread C M
Because you have a py2exe'ed program, I suspect that whoever packaged the program should be the one to modify that program to choose its axes limits more robustly in order to avoid the warning message. Maybe I have been unclear. I am the sole developer of this application, and I occasionally

[Matplotlib-users] List Archive

2011-05-05 Thread Nate Gallagher
Is there a list archive I can search to see if a question has been asked before? Thanks, Nate -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network

Re: [Matplotlib-users] List Archive

2011-05-05 Thread Benjamin Root
On Thursday, May 5, 2011, Nate Gallagher nate.gallag...@yahoo.com wrote: Is there a list archive I can search to see if a question has been asked before? Thanks, Nate http://old.nabble.com/matplotlib---users-f2906.html There are others as well. These are good formviewing the archives. But