Re: [Matplotlib-users] Axes3D - Equal Aspect Ratio

2010-02-08 Thread Paul Wellner Bou
Hi, I am searching for a solution of the axis aspect in 3d plots, too. On 10/14/2009 14:01, Tinne De Laet wrote: axis(scaled) worked for me. Tinne This does not seem to work. At least I am not getting it to work. This command does not seem to be applied to the 3d axis. Do you have an

[Matplotlib-users] Text not showing up when I save a figure as EPS

2010-02-08 Thread Cédrick FAURY
Hello, When I save the figure as EPS, no text shows up. The problem occurs with the example embedding_in_wx2.py and when I use MSWord to show the eps file. Is it a problem with MSWord ?? Thanks by advance. Cédrick --

[Matplotlib-users] how to make an axis labels visible in axes_grid?

2010-02-08 Thread Ernest Adrogué
Hi, I have an AxesGrid instance of 2x2 subplots. I actually only want 3 subplots, so I instantiate AxesGrid with the add_all=False option, and manually add only the first 3 axes to the figure: import matplotlib as plt from mpl_toolkits import axes_grid f = plt.figure() grid =

Re: [Matplotlib-users] quiver + dates

2010-02-08 Thread Stephane Raynaud
Hi Filipe, you can fist use the quiver() function in the classic way for stick plots, then use gca().xaxis_date(). Here is a simple example : import pylab as P # t may be generated using date2num() t = P.arange(100,110,.1) u = P.sin(t) v = P.cos(t) P.quiver([t],[[0]*len(t)],u,v)

Re: [Matplotlib-users] how to make an axis labels visible in axes_grid?

2010-02-08 Thread Jae-Joon Lee
axes_grid uses a custome axes class. See http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#axisline For more details, see http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/axislines.html To make ticklabel visible, you may do

[Matplotlib-users] Memory leak when destroying Tk frame containing a figure

2010-02-08 Thread Maximilian Mauer
Hello! I'm writing an application that will show different plots on it's GUI. In order to switch between the different plot types I'd like to destroy the first plot and to create a new afterwards. I stumbled into a memory leak since I don't know how to close matplotlib figures the clean way. I

[Matplotlib-users] Surface Plot

2010-02-08 Thread Ted Kord
Hi I'd like to generate a surface plot using mplot3d. However, Z is not a function of X and/or Y. It's just a set of scalar values. So, the following doesn't work: X = np.arange(2, 102, 2) Y = np.arange(0, 15.15, 0.15) X, Y = np.meshgrid(X, Y) Z = f[2] ax.plot_surface(X, Y, Z, rstride=1,

[Matplotlib-users] Python Matplotlib: How to close a plot?

2010-02-08 Thread JackD
Hi there! I need to know how to close a figure/chart in matplot. The problem is: I am developing a program that calculates 5 figures and needs some minutes to calculate one. So it would be great if I could close the figure if the next figure is ready cause then I am able to show both figures and

Re: [Matplotlib-users] MatPlotLib Usage FAQ Page Needs Some Work.

2010-02-08 Thread Alan G Isaac
On 2/6/2010 2:35 PM, Wayne Watson wrote: I'm not even sure if we are pro-pylab or pyplot as the preferred-style. It is somewhat personal preference: do you want access to NumPy and pyplot functions in a single name space or not. But the preferred style is the most explicit:

Re: [Matplotlib-users] quiver + dates

2010-02-08 Thread Filipe Pires Alvarenga Fernandes
Thanks, that worked perfectly. Best, Filipe On Mon, Feb 8, 2010 at 8:39 AM, Stephane Raynaud stephane.rayn...@gmail.com wrote: Hi Filipe, you can fist use the quiver() function in the classic way for stick plots, then use gca().xaxis_date(). Here is a simple example : import pylab as P

Re: [Matplotlib-users] How to close a plot?

2010-02-08 Thread David MacQuigg
Jeff Whitaker wrote: zxc wrote: Hi there! I need to know how to close a figure/chart in matplot. Does anyone know how it works and could you please explain on the example below? The problem is: close(1) doesn't close the figure 1 and when the 2nd figure will be plot the program

Re: [Matplotlib-users] Axes3D rotation not working when embedded in backend

2010-02-08 Thread Ben Axelrod
One more note about Axes3D and mouse rotation. Axes3D disconnects the mouse callbacks when cla() is called. Which means that if you do this: self.axes = Axes3D(self.figure) self.axes.scatter(xs, ys, zs) self.axes.cla() self.axes.scatter(xs, ys, zs) then the plot will have no mouse rotation.

Re: [Matplotlib-users] Memory leak when destroying Tk frame containing a figure

2010-02-08 Thread Michael Droettboom
Have you tried explicitly calling .clf() on the matplotlib Figure object from your Tix.Frame.destroy callback? Mike -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise

Re: [Matplotlib-users] vector EPS

2010-02-08 Thread Michael Droettboom
Matplotlib will output Type 42 fonts if the rcParam ps.fonttype is set to 42. Type 3 is the default because it greatly reduces filesize (it embeds only a subset of the font), particularly with large Unicode fonts like Vera Sans. Mike

Re: [Matplotlib-users] Surface Plot

2010-02-08 Thread PHobson
Hey Ted, I don't quite understand how you're getting the Z data below. But if you have 3D data in X, Y, and Z 1D-arrays, the griddata function should work for you. http://matplotlib.sourceforge.net/api/mlab_api.html#matplotlib.mlab.griddata HTH, -paul -

[Matplotlib-users] Matplotlib Online: HOW TO?

2010-02-08 Thread Adolfo Aguirre
Hi: I do environmental research that requires almost real time online graphing for data originating in the field. I am a fan of Phyton thus I commissioned a systems administrator to figure out how to put Matplotlib online. He´s answer was that Zope awas not an straightforward stable environment

Re: [Matplotlib-users] Surface Plot

2010-02-08 Thread Ted Kord
Hi Paul This helped immensely. Thanks. Ted -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and

Re: [Matplotlib-users] vector EPS

2010-02-08 Thread James Cloos
M == Michael Droettboom md...@stsci.edu writes: M Matplotlib will output Type 42 fonts if the rcParam ps.fonttype M is set to 42. I read the reply which stated that after sending mine Sorry for the noise. -JimC -- James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6

Re: [Matplotlib-users] Matplotlib Online: HOW TO?

2010-02-08 Thread Sean Arms
Greetings Adolfo, On Mon, Feb 8, 2010 at 12:18 PM, Adolfo Aguirre aguirre.ado...@gmail.com wrote: Hi: I do environmental research that requires almost real time online graphing for data originating in the field. Can you be a little more specific regarding 'almost real time?' I update data

[Matplotlib-users] OS X backend on 10.6 produces truncated plot labels

2010-02-08 Thread Art
On Mac OS X 10.6.2, with Sage 4.3.1, I have installed matplotlib-0.99.1 with gui backend (to do this, I set SAGE_MATPLOTLIB_GUI=True before using sage's spkg installer, which performs some patches on matplotlib that ). When I use the OS X backend and do: import matplotlib.pyplot as plt

[Matplotlib-users] help with view_limits

2010-02-08 Thread C M
I'd like to set the ticks on the y axis such that they do not display anything lower than 0, even if part of the graph below 0 is visible. I tried to do this with ylocator = AutoLocator() ylocator.view_limits(0, 100) self.subplot.yaxis.set_major_locator(ylocator) but it is not changing anything.

Re: [Matplotlib-users] Surface Plot

2010-02-08 Thread Ted Kord
On 8 February 2010 17:37, phob...@geosyntec.com wrote: Hey Ted, I don't quite understand how you're getting the Z data below. But if you have 3D data in X, Y, and Z 1D-arrays, the griddata function should work for you.

[Matplotlib-users] trying to Copy plot from one MplWidget canvas to another

2010-02-08 Thread Dave . M . Tung
Hey folks, my problem may be obvious, but i can't seem to copy a plot from one canvas to another. # I have this object where whichCanvas is an instance of MplWidget (code shown below) self.whichCanvas.canvas.ax.plot(xData, yData, 'bo', linewidth=1.5, linestyle='-') # I want to

Re: [Matplotlib-users] Matplotlib Online: HOW TO?

2010-02-08 Thread Christopher Barker
Adolfo Aguirre wrote: He´s answer was that Zope awas not an straightforward stable environment but a work-in-progress, Zope has been around a long time, it' s fine environment, particularly when used as the core of Plone. Zope does have its own way of doing things that are not to everyone's

[Matplotlib-users] Figure.draw_artist() bug with Text

2010-02-08 Thread Ben Axelrod
I am getting a fault when I try to use Figure.draw_artist() with a matplotlib.text.Text object. Since matplotlib.text.Text inherits from matplotlib.artist.Artist, which is what draw_artist() takes, this should probably work. Tested with latest SVN code on Linux. Here is the traceback:

Re: [Matplotlib-users] Surface Plot

2010-02-08 Thread PHobson
Ted, How does this example run for you? http://matplotlib.sourceforge.net/examples/pylab_examples/griddata_demo.html From: Ted Kord [mailto:teddy.k...@googlemail.com] Sent: Monday, February 08, 2010 12:00 PM To: Paul Hobson Cc: matplotlib-users@lists.sourceforge.net Subject: Re:

Re: [Matplotlib-users] Figure.draw_artist() bug with Text

2010-02-08 Thread Jae-Joon Lee
This is not a bug. The exception is raised simply because textartist.figure is None (and it is None because you never set it). textartist you created is not properly set up (no figure, no axes, no transform). You may do textartist = Text(0.5, 0.5, Foo) textartist.set_figure(fig)