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 t
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
runs
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
wrote:
>
> 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
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 si
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 Curv
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 on
There is
On Sun, Sep 27, 2009 at 8:49 PM, Gökhan Sever wrote:
>
>
> On Sun, Sep 27, 2009 at 7:44 PM, Jae-Joon Lee wrote:
>
>> On Sun, Sep 27, 2009 at 4:18 PM, Gökhan Sever
>> wrote:
>> > When I run this as it is, and zoom once the top x-axis ticklabels
>> disappear:
>> > http://img2.imageshack.
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' is
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 x
Matthias Michler wrote:
> 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
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 w
On Mon, Sep 28, 2009 at 16:03, Michael Droettboom 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 exactly correct.
>
On Mon, Sep 28, 2009 at 4:15 PM, Uri Laserson wrote:
> On Mon, Sep 28, 2009 at 16:03, Michael Droettboom 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 coordinat
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 wrote:
If I understand correctly, the top and bot
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 sec
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 arc
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 the
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:
>
> Untested, but I think you could do this with just python builtin types:
>
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 fo
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 hand
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
>
On Mon, Sep 28, 2009 at 4:54 PM, Jeff Whitaker 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 for p
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 (f
You need an empty mbox at the end of line (\mbox{}).
text(xlim()[1],1.02,r'$r^2$~~~\mbox{}',horizontalalignment='right')
If you did mean \; after ^, it requires {}.
Again, these only works if you use real TeX for text rendering (ie
usetex=True), not the mpl's mathtext mode.
Regards,
-JJ
On M
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 wrote:
> You need an empty mbox at the end of line (\mbox{}).
>
> text(xlim()[1]
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 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 suitable to me.
I agr
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 rece
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
> 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
>
>
> 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 instan
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 wrote:
> Hi Mike,
>
> This is definitely
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 yo
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. Unfort
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 pro
41 matches
Mail list logo