The following trivial program is supposed to generate one plot per key press
until the user presses 'q'. Instead, nothing is displayed until the user
presses 'q'. Any suggestions will be appreciated.
from os import sys
from matplotlib import *
from numpy.random import rand
while True:
z=
Try something like this:
from os import sys
from matplotlib import *
from numpy.random import rand
fig= pyplot.figure(figsize=(8,8), dpi=120)
pyplot.show()
while True:
z= rand(20,20)
pyplot.imshow(z)
pyplot.draw()
chr= sys.stdin.read(1)
if chr=='q':
break
appologies - sys.stdin.read(1) blocks until you give it a new line
(Enter) that' s probably what you were having problems with.
Paul Ivanov, on 2009-08-23 01:14, wrote:
Try something like this:
from os import sys
from matplotlib import *
from numpy.random import rand
fig=
Good morning
I'm working in a project in QT4 and I need to create a 3D graph embedded in
a Widget form. Is it possible to do it? and where I could get an example?
Thanks
German
--
Let Crystal Reports handle the
Hi JJ,
I'm not sure I understand how to properly set the axe_locator. Below
is my snippet of code that I use to create my contourf plot and then
create the colorbar. I'm unsure how I would modify it to do as you
suggested. Any help would be appreciated.
plot = ax.contourf(xc, yc,
Having to hit Enter is not a major problem, but I'm still not getting
anything displayed.
I noticed that you used pyplot.draw() instead of pyplot.show(). I've
checked the available documentation, but haven't been able to understand the
difference between these.
I should have mentioned that I'm
Dr. Phillip M. Feldman wrote:
Having to hit Enter is not a major problem, but I'm still not getting
anything displayed.
i guess that might be because the show command before the loop blocks
the program.
you can omit the line with show or start ipython with
ipython -pylab
both versions work
I've been trying to understand how colormaps work. I've been through the
Matplotlib User's Guide (Release 0.98.6svn, dated June 14, 2009), but the
section on colormaps has not yet been written. If anyone can point me to
documentation or provide an explanation, I'd be grateful.
--
View this
Hello everyone,
I was playing around with matplotlib, created a plot that allows users to add
nodes (axis is set off as it's going to be used for graph data structuer
purposes, hence don't want the y-x axis, is there another way to hide them as
well?).
Basically the program below allows
I previously used version '0.90.1' and could do something along these lines.
figure.add_axes
... etc
canvas.Refresh()
User makes a new selection and in the code I do:
figure.clear()
figure.add_axes
... etc
canvas.Refresh()
With 0.99 and wxAgg on Windows Vista with wxPython 2.8.10.1 Unicode
Werner F. Bruhin wrote:
I previously used version '0.90.1' and could do something along these lines.
figure.add_axes
... etc
canvas.Refresh()
User makes a new selection and in the code I do:
figure.clear()
figure.add_axes
... etc
canvas.Refresh()
With 0.99 and wxAgg on Windows Vista
Dr. Phillip M. Feldman wrote:
I've been trying to understand how colormaps work. I've been through the
Matplotlib User's Guide (Release 0.98.6svn, dated June 14, 2009), but the
section on colormaps has not yet been written. If anyone can point me to
This is my fault; I need to write that.
On Sun, Aug 23, 2009 at 1:24 PM, Eric Firingefir...@hawaii.edu wrote:
Dr. Phillip M. Feldman wrote:
I've been trying to understand how colormaps work. I've been through the
Matplotlib User's Guide (Release 0.98.6svn, dated June 14, 2009), but the
section on colormaps has not yet been written.
To create a cursor that only pans horizontally, I'm thinking of writing a
special version of drag_pan in backend_bases.py It would call drag_pan in
axes.py with the key argument set to 'x'
Any advice, suggestions?
backend_bases.py :
def my_drag_pan(self, event):
'the drag callback in
I just realized that by clicking once on the pan button, the cursor goes into
pan, and clicking again, it goes back to the arrow. Same for some of the other
buttons. I realized this by looking at the code. I would recommend that the
documentation at the link shown below say something about
Sameer Regmi wrote:
We are working on plotting mesh (in
hermes2d: http://hpfem.math.unr.edu/projects/hermes2d-new/)
In the hermes2d examples curves are defined as [4, 7, 45] where 4,7
are vertices indices, and 45 is center angle.
1) matplot.path porvides a way to plot curve with three
On Sun, Aug 23, 2009 at 7:45 PM, Chris Barkerchris.bar...@noaa.gov wrote:
This is a Bezier spline -- it can not exactly form a piece of a circle
(though it can get pretty close). You can probably find the math
somewhere for how to approximate a circle, but...
somewhere like ...
When you have a problem like this with one install looking one place
and another install looking in another place making a symbolic link is
usually easier and more likely to catch everything than making a copy.
In your case you could have said:
ln -s
18 matches
Mail list logo