Hi,
is there a way to update a contour plot? I need to display a series of
contour plots from a directory with data files and want to view them
consecutively, preferrably without building a gui for it. Is there an
easy way out?
Cheers, Ralph
Hi,
I'm having trouble building matplotlib 0.99.1.1 (transcript below).
I'm using copies of Python (2.5.1) and Tcl/Tk (8.5.5) that I have
built myself, and that are apparently working fine. Previously, I was
using this exact procedure to build 0.91.4 without any problems.
Any suggestions would
Is it possible to specify a path object that will use different
transforms for different vertices?
This is again related to plotting a box whose height is specified by
data coords, but whose width is a constant in axes coords regardless
of scale (so linear and log x-scales would produce a box of
Hi all,
glumpy is a fast OpenGL visualization tool for numpy arrays coded on
top of pyglet (http://www.pyglet.org/). The package contains many
demos showing basic usage as well as integration with matplotlib. As a
reference, the animation script available from matplotlib distribution
Hi Ralph,
I don't think there exists a function like the line-'set_data'-method for
collections, which are generated by 'contour'. This particular method of
lines only changes the data but leave anything else unchanged.
I attached an easy approach of updating a contour plot (simply deleting old
On Mon, Sep 28, 2009 at 9:06 AM, Nicolas Rougier
nicolas.roug...@loria.frwrote:
Hi all,
glumpy is a fast OpenGL visualization tool for numpy arrays coded on
top of pyglet (http://www.pyglet.org/). The package contains many
demos showing basic usage as well as integration with matplotlib. As
Well, I've been starting working on a pyglet backend but it is
currently painfully slow mainly because I do not know enough of the
matplotlib internal machinery to really benefit from it. In the case
of glumpy, the use of texture object for representing 2d arrays is a
real speed boost
Hi,
is there a way to update a contour plot? I need to display a series of
contour plots from a directory with data files and want to view them
consecutively, preferrably without building a gui for it. Is there an
easy way out?
Cheers, Ralph
Hello,
I want to dynamically update a plot of the rate at which a neural network is
learning a function. Ideally, my python program would open up a window and
update the plot inside of it after every training epoch.
I have written the following code to do so:
pyplot.title('Learning
Hello. My problem is as follows:
(ipython --pylab)
from pylab import *
pp=plot([0,0],[1,1])
text(xlim()[0],1,'Need padding ',horizontalalignment='left')
text(xlim()[1],1,'Need padding ',horizontalalignment='right')
The second case does not do what I want, which is to pad the text
There is
On Sun, Sep 27, 2009 at 8:49 PM, Gökhan Sever gokhanse...@gmail.com wrote:
On Sun, Sep 27, 2009 at 7:44 PM, Jae-Joon Lee lee.j.j...@gmail.comwrote:
On Sun, Sep 27, 2009 at 4:18 PM, Gökhan Sever gokhanse...@gmail.com
wrote:
When I run this as it is, and zoom once the top x-axis
I'm trying to 'automate' a few components within basemap. I have a pretty
complicated, and assuredly poorly written, set of functions that allow me to
'dynamically' plot a grid of data (lon,lat).
Here is one section where I try to deal with transforming the data based on
the projection. 'data'
I don't think the transformations framework is going to be of much help
for automating this. You seem to be suggesting an x-axis where the
center is in data coords and the width is in axes coords. Once you've
added the two together, it will be impossible to separate them.
I think the path of
Uri Laserson wrote:
Is it possible to specify a path object that will use different
transforms for different vertices?
This is again related to plotting a box whose height is specified by
data coords, but whose width is a constant in axes coords regardless
of scale (so linear and log
If I understand correctly, the top and bottom of the box are in data
coordinates, the x-center of the box is in data coordinates, only the
width of the box is in axes coordinates. Is that correct? If so, a
PolyCollection won't be able to do this (directly), since that would
require both the
On Mon, Sep 28, 2009 at 16:03, Michael Droettboom md...@stsci.edu wrote:
If I understand correctly, the top and bottom of the box are in data
coordinates, the x-center of the box is in data coordinates, only the width
of the box is in axes coordinates. Is that correct? If so, a
That's
On Mon, Sep 28, 2009 at 4:15 PM, Uri Laserson laser...@mit.edu wrote:
On Mon, Sep 28, 2009 at 16:03, Michael Droettboom md...@stsci.edu wrote:
If I understand correctly, the top and bottom of the box are in data
coordinates, the x-center of the box is in data coordinates, only the width
of the
Is the attached sort of what you want? It defines a custom rectangle by
(x, w, y1, y2) and overrides the get_transform of the patch to update
itself at draw time.
Mike
Uri Laserson wrote:
On Mon, Sep 28, 2009 at 16:03, Michael Droettboom md...@stsci.edu wrote:
If I understand correctly,
Christopher Barrington-Leigh wrote:
Hello. My problem is as follows:
(ipython --pylab)
from pylab import *
pp=plot([0,0],[1,1])
text(xlim()[0],1,'Need padding ',horizontalalignment='left')
text(xlim()[1],1,'Need padding ',horizontalalignment='right')
The second case
Ralph Kube-2 wrote:
Is there an
easy way out?
Well, you could just script it and create .png files I do it all the
time.
--
View this message in context:
http://www.nabble.com/Update-a-contour-plot-tp25648878p25653140.html
Sent from the matplotlib - users mailing list archive
I can confirm this with latest svn. I take a quick look at the code,
but couldn't figure where the stripping happens and I hope other
experts to step in.
While I think you're not using usetex mode, you may use tex's own
spacing command with usetex mode. Depending on your need, you may also
use
Thanks. Unfortunately this gives me the same results: no good. Something is
stripping whatever filler is there on the right.
text(xlim()[1],1.01,'string'.ljust(10,' '),horizontalalignment='right')
John [H2O] wrote:
Christopher Barrington-Leigh wrote:
Hello. My problem is as follows:
All my attempts at using TeX spacing failed too. What do you have in mind?
e.g.
text(xlim()[1],1.02,r'$r^\;2$~~~',horizontalalignment='right')
Jae-Joon Lee wrote:
While I think you're not using usetex mode, you may use tex's own
spacing command with usetex mode. Depending on your need,
Jeff,
Right now, for me, any Basemap example that uses colorbar() is broken
for me. I think there's a problem with how Basemap sets the current
'image' so that a colorbar can be automatically generated for plots.
The code currently does:
plt.gci._current = ret
I think the current image
Ryan May wrote:
Jeff,
Right now, for me, any Basemap example that uses colorbar() is broken
for me. I think there's a problem with how Basemap sets the current
'image' so that a colorbar can be automatically generated for plots.
The code currently does:
plt.gci._current = ret
I
On Mon, Sep 28, 2009 at 4:54 PM, Jeff Whitaker jsw...@fastmail.fm wrote:
Ryan May wrote:
Jeff,
Right now, for me, any Basemap example that uses colorbar() is broken
for me. I think there's a problem with how Basemap sets the current
'image' so that a colorbar can be automatically generated
Greetings,
I would like to plot to make a figure with 3 subplots
of the form (221) to (223):
- each subplot should show a bar3d plot of a matrix
- each subplot should have it's own title
The problems:
a) I don't see (nor did i find something) how i can
use subplots combined with bar3d
Hmm, I'm afraid that this only works if you use preview mode. I
haven't tested, but I guess it will fail without it. Check if
rcParams[text.latex.preview]==True.
-JJ
On Mon, Sep 28, 2009 at 6:26 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
You need an empty mbox at the end of line (\mbox{}).
Hi Mike,
This is definitely on the right track. Thanks a lot for writing it
out. When I change the view limits, indeed the width stays constant
while the height gets rescaled. However, when I try to change to a
logarithmic axis, I get the following errors. Again, excuse my
ignorance, but I am
On Mon, Sep 28, 2009 at 16:53, Jae-Joon Lee lee.j.j...@gmail.com wrote:
I personally think that a box, whose height has a physical meaning (in
data coordinate) while its width does not, is not a good
representation of your data. A vertical line or something like
errorbar seems to be more
Hello,
my problem is described very quickly:
The package is installed. In the interpreter the 'import matplotlib'
does not throw an error. On the other hand I tried to use matplotlib
in a python script and here the very same command provokes the
following error message:
Traceback (most
I'm not sure its possible right now to do subplots with 3D.
As for the title, I cannot either put titles on any 3D graphs...
2009/9/28 qu...@gmx.at
Greetings,
I would like to plot to make a figure with 3 subplots
of the form (221) to (223):
- each subplot should show a bar3d plot of a
Could you possibly explain exactly what is going on and how this
structurally differs from the approach that Mike posted?
In Mike's code, he uses BboxTransformTo using the box he created in
display coords. So this takes a unit square and spits out the box
that I specify when I instantiate
The exception will go away if you explicitly use np.array as below.
box = np.array([[self.x, self.y1],
[self.x, self.y2]])
However, note that Mike's example has x-center at 0.
-JJ
On Mon, Sep 28, 2009 at 6:41 PM, Uri Laserson laser...@mit.edu wrote:
Hi Mike,
This
Try below instead of Axes3D. Obviously, 131 is the geometry
parameter for subplot command. You don't need to add ax to fig
since Axes3D do that by itself.
from matplotlib.axes import subplot_class_factory
Subplot3D = subplot_class_factory(Axes3D)
ax = Subplot3D(fig, 131)
This will show you the
Jae-Joon Lee wrote:
Hmm, I'm afraid that this only works if you use preview mode. I
haven't tested, but I guess it will fail without it. Check if
rcParams[text.latex.preview]==True.
Hm, I don't know about mpl's mathtext mode, but I'm actually always
working in usetex mode.
felix meyenhofer wrote:
The package is installed. In the interpreter the 'import matplotlib'
does not throw an error. On the other hand I tried to use matplotlib
in a python script and here the very same command provokes the
following error message:
how are you running that script? I
After experimenting with colormaps for a while, I was able to make both
discrete (piecewise-constant) and continuous (piecewise-linear) colormaps
work. Although colormaps can be created directly using
LinearSegmentedColormap from the matplotlib.colors package, this is a
tedious and error-prone
38 matches
Mail list logo