[Matplotlib-users] Publish to HTML

2009-12-03 Thread David Arnold
I am wondering if Sampledoc type files can be used for this same purpose. Is there a way you can gather the output html and upload them to our Sakai drop boxes? David Arnold College of the Redwoods -- Join us December 9, 200

[Matplotlib-users] Sphinx and ams-latex

2009-12-06 Thread David Arnold
All, If I am using this in my conf.py in Sphinx: extensions = ['matplotlib.sphinxext.mathmpl', 'matplotlib.sphinxext.only_directives', 'matplotlib.sphinxext.plot_directive'] Is there a way I can use ams-latex constructs such as: \begin{align*} x+2y&=3\\ 2x-3y&=4 \end{align*} D.

[Matplotlib-users] 3D

2009-12-06 Thread David Arnold
All, I have: from mpl_toolkits.mplot3d import axes3d import matplotlib.pyplot as plt import numpy as np fig=plt.figure() ax=axes3d.Axes3D(fig) x=np.linspace(-2,2,40) y=np.linspace(-2,2,40) X, Y=np.meshgrid(x,y) Z=6-2*X**2 ax.plot_wireframe(X,Y,Z) ax.set_xlabel('x-axis') ax.set_ylabel('y-axis')

[Matplotlib-users] Rotation 3D

2009-12-07 Thread David Arnold
All, Is there any way to rotate a 3D plot_wireframe? D. -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk

[Matplotlib-users] Comet

2009-12-07 Thread David Arnold
All, Is there anything resembling Matlab's comet command? D. -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your

[Matplotlib-users] axis equal

2009-12-07 Thread David Arnold
All, Is there an "axis equal" command for mplot3d? D. -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk.

[Matplotlib-users] Baseline pngmath

2009-12-07 Thread David Arnold
All, I tried using sphinx.ext.pngmath. See: http://msemac.redwoods.edu/~darnold/html/cylinders.html Note in Exercise 1 how z = 6 - 2x^2 is placed so its baseline does not align (it's lower) with the baseline of the text. How can I align the baselines? David. --

[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] Surface and Plane

2009-12-09 Thread David Arnold
of the plane is as you can when rotating a similar figure in Matlab. Is this a bug or a feature yet to be added? Is there a workaround I am not aware of at this early stage? David Arnold College of the Redwoods Department of Mathematics

[Matplotlib-users] clear

2009-12-11 Thread David Arnold
All, In Matlab, if I want to clear my working space of variables, I type: >> clear all How do I do the same thing in Ipython? D. -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p

[Matplotlib-users] Tkinter scripts

2010-01-08 Thread David Arnold
All, Does anyone have some Tkinter scripts using matplotlib they can share? I am just starting to learn Tkinter and I could use some examples. David Arnold College of the Redwoods Department of Mathematics -- This

[Matplotlib-users] Lorenz animation

2010-01-14 Thread David Arnold
All, I've attached lorenz.m from Matlab. It animates the trajectory of the solution of the lorenz system in 3D. Does anyone have a Matplotlib file that will do something similar? David. lorenz.m Description: Binary data --

[Matplotlib-users] clabel manual

2010-02-05 Thread David Arnold
Hi, I'm trying to get manual labeling of contours to work: import numpy as np import matplotlib.mlab as mlab import matplotlib.pyplot as plt delta = 0.025 x = np.arange(-3.0, 3.0, delta) y = np.arange(-2.0, 2.0, delta) X, Y = np.meshgrid(x, y) Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)

[Matplotlib-users] Comet

2010-02-05 Thread David Arnold
All, I am still wondering why there is no comet command in matplotlib. I was successful with the following: import matplotlib.pyplot as plt import numpy as np len=200 t=np.linspace(0,2*np.pi,len) x=np.cos(t) y=np.sin(t) xd=[x[0]] yd=[y[0]] l,=plt.plot(xd,yd) plt.axis([-1,1,-1,1]) for i in np.

Re: [Matplotlib-users] Comet

2010-02-06 Thread David Arnold
pace(0,2*pi,2000); x=-sin(t); y=cos(t); plot(x,y) Because the student just sees sees the "finished" path. The comet command, on the other hand, allows the student to "see" that path as it is traced out in real time. David. On Feb 6, 2010, at 9:09 AM, Eric Firing wrote: >

Re: [Matplotlib-users] Comet

2010-02-06 Thread David Arnold
Goyo, Sweet little function. Thanks. I still feel that a comet routine should be added to matplotlib for the reasons I've delineated. D. On Feb 6, 2010, at 1:38 PM, Goyo wrote: > Hi David, > > El sáb, 06-02-2010 a las 10:21 -0800, David Arnold escribió: >> Hi Eric, &

Re: [Matplotlib-users] clabel manual

2010-02-06 Thread David Arnold
stop = mouse_event_stop > blocking_input.BlockingMouseInput.add_click = add_click > blocking_input.BlockingMouseInput.pop_click = pop_click > > > > On Sat, Feb 6, 2010 at 2:01 AM, David Arnold > wrote: >> Hi, >> >> I'm trying to get manual labeling of

[Matplotlib-users] GUI setSizePolicy

2010-02-10 Thread David Arnold
Hi, I put these lines FigureCanvas.setSizePolicy(self,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Expanding) FigureCanvas.updateGeometry(self) in the following code, but I have not idea what they do as the GUI seems to behave equivalently (I can resize easily with the mouse)

[Matplotlib-users] Python 3

2010-02-14 Thread David Arnold
All, Can anyone shed light on how python 3 is working together with matplotlib, scipy, and numpy? David -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winni

[Matplotlib-users] LineBuilder

2010-02-14 Thread David Arnold
All, I am curious why this doesn't work: # linebuilder.py import matplotlib.pyplot as plt class LineBuilder: def __init__(self, line): self.line=line self.xs=list(line.get_xdata()) self.ys=list(line.get_ydata()) self.cid=line.figure.canvas.mpl_connect('button

[Matplotlib-users] Enter Figure on Macs

2010-02-14 Thread David Arnold
All, Any Mac users out there? This script from the User Guide does not seem to recognize entering or leaving a figure. Any thoughts? # enterleave.py import matplotlib.pyplot as plt def enter_axes(event): print 'enter_axes', event.inaxes event.inaxes.patch.set_facecolor('yellow') ev

[Matplotlib-users] Easy come easy go

2010-02-14 Thread David Arnold
All, This example: http://matplotlib.sourceforge.net/examples/event_handling/keypress_demo.html Raises this exception o my Macbook when the key 's' is pressed: The debugged program raised the exception unhandled TypeError "save_figure() takes exactly 1 argument (2 given)" File: /Library/Frame

Re: [Matplotlib-users] Enter Figure on Macs

2010-02-14 Thread David Arnold
(0.125,0.1;0.775x0.363636) leave_axes Axes(0.125,0.1;0.775x0.363636) On Feb 14, 2010, at 7:50 PM, John Hunter wrote: > On Sun, Feb 14, 2010 at 6:53 PM, David Arnold > wrote: >> All, >> >> Any Mac users out there? This script from the User Guide does not seem to >> recognize ent

[Matplotlib-users] agg_buffer_to_array.py

2010-02-15 Thread David Arnold
All, This error: The debugged program raised the exception unhandled AttributeError "'FigureCanvasMac' object has no attribute 'buffer_rgba'" File: /Users/darnold/Documents/temp/Matplotlib/PylabExamples/agg_buffer_to_array.py, Line: 16 is raised by the following script on my Macbook. # agg_buff

[Matplotlib-users] Where do bugs and document corrections/suggestions get sent?

2010-02-17 Thread David Arnold
All, Where do bugs and document corrections/suggestions get sent? David -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications

[Matplotlib-users] Clipping

2010-02-17 Thread David Arnold
All, I'm looking at: http://matplotlib.sourceforge.net/examples/api/clippath_demo.html But I cannot figure out: patch=patches.Circle((300, 300), radius=100) Where precisely is (300,300)? D. -- Download Intel® Paralle

[Matplotlib-users] Masks

2010-02-17 Thread David Arnold
All, In the code on: http://matplotlib.sourceforge.net/examples/api/bbox_intersect.html I think I've figured out that: vertices = (np.random.random((4, 2))-0.5)*6.0 vertices = np.ma.masked_array(vertices, [[False, False], [True, True], [False, False], [False, False]]) prevents the sec

Re: [Matplotlib-users] mplot3d stays?

2010-02-21 Thread David Arnold
e (must be viewed in Firefox) will give some sense of what I need when teaching multivariable calculus. http://msemac.redwoods.edu/~darnold/math50c/matlab/index.php David Arnold College of the Redwoods http://msemac.redwoods.edu/~darnold/index.php Davd Arnold College of the Redwoods On Feb 21, 2010, at

[Matplotlib-users] Cursor?

2010-02-25 Thread David Arnold
All, I tried this code from: http://matplotlib.sourceforge.net/examples/widgets/cursor.py from matplotlib.widgets import Cursor import pylab fig = pylab.figure(figsize=(8,6)) ax = fig.add_axes([0.075, 0.25, 0.9, 0.725], axisbg='#CC') #ax = fig.add_subplot(111, axisbg='#CC') canvas = a

[Matplotlib-users] Artist tutorial different response

2010-02-26 Thread David Arnold
All, On: http://matplotlib.sourceforge.net/users/artists.html In the Axes Container section, you can see in what follows that I got some very different responses than what is shown on the page: In [1]: fig=figure() In [3]: ax=fig.add_subplot(111) In [4]: rect=matplotlib.patches.Rectangle((1,1

[Matplotlib-users] Traits

2010-03-05 Thread David Arnold
All, In one post from John Hunter, I heard the word "traits", which I assume is from the enthought distribution. Is there a move in matplotlib toward the "trait" technology taking place? How about for Python in general? Thanks. David. --

[Matplotlib-users] Working a piece at a time.

2010-03-08 Thread David Arnold
All, I'm using Aptana (Eclipse) and pydev on a macbook pro. I'm trying to work with the following: http://matplotlib.sourceforge.net/examples/user_interfaces/fourier_demo_wx.html Now, this is a fairly complicated and interconnected piece of coding. When I am trying to learn something, I like t

[Matplotlib-users] Doc suggestion

2010-03-09 Thread David Arnold
All, The linebuilder program on: http://matplotlib.sourceforge.net/users/event_handling.html Needs two extra lines, one at the beginning and one at the end. Their absence, particularly the second one, can cause confusion. import matplotlib.pyplot as plt class LineBuilder: def __init__(se

[Matplotlib-users] Function in edit box

2010-03-10 Thread David Arnold
All, Anyone have a small (short) example using Matplotlib and possibly wxPython where the user enters a function in an edit box and Matplotlib responds by sketching the graph over a domain? David. -- Download Intel® Par

[Matplotlib-users] Colormaps

2010-03-13 Thread David Arnold
All, I am having difficulty with a line on: http://scipy.org/LoktaVolterraTutorial Here are the lines: values = linspace(0.3, 0.9, 5) vcolors = p.cm.autumn_r(linspace(0.3, 1., len(values))) First of all, I can find no reference to autumn_r in the Matplotlib documentation. Also, using Aptana

[Matplotlib-users] Surf, mesh, and friends

2008-07-25 Thread David Arnold
All, I am aware of the 3d examples at: http://scipy.org/Cookbook/ Matplotlib/mplot3D However, this seems out of date, some examples work, some don't. Are there other pointers that show how I can use matplotlib to draw three dimensional surfaces similar to the ones drawn in Matlab with mesh,

[Matplotlib-users] Comet

2008-08-14 Thread David Arnold
All, Does anyone have any code emulating Matlab's comet command? D. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes

[Matplotlib-users] clabel

2008-10-25 Thread David Arnold
All, Does Matplotlib have a form of the clabel command that uses the switch manual, as in Matlab: [c,h]=contour(x,y,z); clabel(c,h,'manual') Which allows the user to pick the contours to label with the mouse? David Arnold College of the Redwoods http://msemac.redwoods.edu/~darnold

Re: [Matplotlib-users] clabel

2008-10-26 Thread David Arnold
Eric Firing wrote: > David Arnold wrote: >> All, >> Does Matplotlib have a form of the clabel command that uses the >> switch manual, as in Matlab: >> [c,h]=contour(x,y,z); >> clabel(c,h,'manual') >> Which allows the user to pick the contours to