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
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.
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')
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
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
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.
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.
--
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
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
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
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
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
--
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)
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.
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:
>
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,
&
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
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)
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
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
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
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
(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
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
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
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
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
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
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
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
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.
--
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
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
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
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
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,
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
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
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
39 matches
Mail list logo