Re: [Matplotlib-users] axis equal

2009-12-09 Thread Mike Alger
Unfortunately i have not found such a function as of yet and the function that sound close to it (aspect) only controls the windows aspect ratio Fortunately there is a quick and dirty work around I have found the following to be useful Assuming you have X Y Z matrices made using meshgrid or som

Re: [Matplotlib-users] Color in 3d plots

2009-12-09 Thread Reinier Heeres
Hi Mike, Sorry for the slow reply, but I put support for this in the development version in SVN. It can also do a bit of shading to make the surface look more structured. Note that the fact that a 40x40 grid turns into 39x39 squares is expected behavior: the code assumes the 40 points are the *ed

Re: [Matplotlib-users] Color in 3d plots

2009-12-09 Thread Mike Alger
I had a hunch that was the case but wasn`t entirely sure, and to be honest 3d plot functions have always been a black box for me and i have never really thought about what exactly gets plotted in 3d plot until now Thanks again Reinier i will take a look at the SVN A.S.A.P. Mike -Original

Re: [Matplotlib-users] Saving a plot to EPS

2009-12-09 Thread Michael Droettboom
I can confirm this bug on matplotlib-0.99.0, and 0.99.1.2, but not on SVN head. I think this is related to a recently fixed bug involving the renderer outputting single-point lines (which obviously doesn't make sense, and Postscript has problems with). You can either install from SVN (I recomm

Re: [Matplotlib-users] Saving a plot to EPS

2009-12-09 Thread Michael Cohen
Hi there, Does anyone know what might be the problem with this EPS write? Please see my email of Dec 6th for the attachments. Regards, Michael Michael Cohen wrote: > Hi, > > Sorry for taking a few days to reply. > Basic system information > > $ uname -a > Linux shc-b 2.6.18-128.1.10.el5 #1 SMP

[Matplotlib-users] Surface and Plane

2009-12-09 Thread David Arnold
All, Here is my first attempt to draw a surface and a plane on the same axes using mplot3d. from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm import matplotlib.pyplot as plt import numpy as np fig=plt.figure() ax = Axes3D(fig) x=np.linspace(-2,2,40) y=x x, y = np.meshgrid(x,y

[Matplotlib-users] Axes3D *args **kargs

2009-12-09 Thread David Arnold
All, Is there a page that explains in full the Axes3D command and exactly what can be passed as arguments to Axes3D command? view? etc. Thanks, David -- Return on Information: Google Enterprise Search pays you back

[Matplotlib-users] Problem with updating the plot

2009-12-09 Thread Sebastian Rhode
Hi folks, i have a problem with updating my graph. In some cases its works, but in others the graph is not updated right away. ... def openls(self, event): dlg = wx.FileDialog(self, "Choose a Light Source", os.getcwd(), "", "*.txt*", wx.OPEN) if dlg

Re: [Matplotlib-users] mplot3d animations

2009-12-09 Thread Reinier Heeres
Hi, Animations of 3d scenes is a bit tricky, because set_data() functions for wireframe and surface plots are not available. However, you can still do it by creating new surfaces or wireframes every frame, and removing the old one. I've attached an example that does this and will be added to svn s