te a norm instead (I will put the code
here of course).
TP
--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastru
lue is for example 1e10, I am interested.
TP
--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Downlo
On Thursday, November 22, 2012 23:51:08 TP wrote:
> Thus it seems to me that my dummy example given in the previous post covers
> exactly the problem encountered in my real-world imshow function.
>
> Is there a memory-efficient workaround in my dummy example (instead of
> increas
le given in the previous post covers
exactly the problem encountered in my real-world imshow function.
Is there a memory-efficient workaround in my dummy example (instead of
increasing N)?
Thanks,
TP
--
Monitor your ph
N is too large, the plot becomes very slow, and a lot of memory
is used; I think because an array is probably built with this size, although
in theory there is no need to construct such a complete array.
Is there an easy workaround, or have I to study and modify the matplotlib code
myself?
Than
, PySide, and Matplotlib on my machine:
>>> from PySide import QtCore
>>> QtCore.qVersion()
'4.8.1'
>>> from PySide import __version__
>>> __version__
'1.1.0'
>>> import matplotlib
>>> matplotlib.__version__
'1.1.
Hi everybody,
I try to move an instance of matplotlib.lines.Line2D from one subplot to
another. How to do that? I have tried the following code, but the Line2D
does not appear on the second subplot.
Thanks in advance,
Julien
###
from pylab import *
ion()
f = figure()
s = f.add_subp
Michael Droettboom wrote:
> You can use the twinx/twiny methods to join two axes after they've been
> created.
>
> I don't think we currently provide a way to unjoin the subplots (either
> in the axes or in the Grouper class itself.) I think that's
> functionality we would need to add. If you c
Michael Droettboom wrote:
> Yes -- I'll update the docstring. The weakref support was added
> afterward during one of my many memory leak crusades ;)
>
> What were you attempting to do with the Grouper? You shouldn't have to
> use the class directly to use the sharex/sharey functionality -- it'
Hi everybody,
I try to play with "sharex" feature. Then, I have been guided to the
class "Grouper" of module cbook:
http://matplotlib.sourceforge.net/api/cbook_api.html
So I tried the following example:
##
from matplotlib.cbook import *
g = Grouper()
g.join('a', 'b'
Hi everybody,
I want to modify a matplotlib.lines.Line2D and update the plot.
I have used Line2D._y member to modify the line. It works. But by doing
canvas.draw() (see example below), the line is not updated on the plot. To
update it, I have to do autoscale_view(). But I do not want the x and y
r
Hi everybody,
I want to delete a subplot from my figure. How to do that?
For example, I would like to remove the right subplot in the following
example:
from pylab import *
ion()
f = figure()
s = f.add_subplot("121")
X1 = arange( 0.0, 5.0, 0.1 )
s.plot( X1, X1**2)
s =
Hi everybody,
I would like to update a subplot position automatically. Try this example:
##
from pylab import *
f = figure()
s1 = f.add_subplot( '111' )
s1.plot( [5,7], [6,9], 'r' )
s2 = f.add_subplot( '212' )
s2.plot( [5,7], [4,9], 'b' )
show()
##
The problem is
Michael Droettboom wrote:
> This has now been fixed in SVN r6608.
> This has also been fixed in SVN r6609.
Impressive!
Thanks a lot, now it works perfectly!
One hour ago, I discover a bug with cursors (obtained with axvline): the pan
didn't work well with cursors (some cursors remain at the sa
Hi everybody,
I encounter a strange behavior of TKAgg backend with Matplotlib 0.98.5 and
SVN versions, when panning: the grid lines do not always match the ticks on
the axes:
http://paratribulations.free.fr/help/pan_behavior/strange_lines_when_panning.png
Here is the corresponding script:
http:
Hi,
I use matplotlib 0.91.2.
When I plot the same Line2D on two subplots, it disappears: execute the
following script:
###
from pylab import *
ion()
f = figure()
s = f.add_subplot("211")
curve = matplotlib.lines.Line2D([0,1],[0,1],color='m')
s.add_line( curve )
s2 = f.add_subp
TP wrote:
> I have a question about the behavior of "del()" Python built-in.
Ok, del only removes a name from the local namespace.
I have found an old answer of John, below. It seems that a better solution
is to use the remove method of a line instance:
http:/
Hi everybody,
I have a question about the behavior of "del()" Python built-in.
In the following example, when I use del() on the copy of a line, it does
not delete it, whereas with the original line, it works. Why? I do not
understand, because the id is the same for the copy and the original:
###
Hi everybody,
In my own application, I want to specialize matplotlib.lines.Line2D to be
able to deal with units.
Concerning this class, is there a direct means to plot instances?
For example, if I do:
>>> a=matplotlib.lines.Line2D([5,6],[7,8],color='m')
To plot it, I have not found another way
Michael Droettboom wrote:
> Why are you turning autoscaling off and on? When you turn it off, the
> autoscale mechanism effectively "ignores" any plots until you turn it
> back on. If you remove
>
> gca().set_autoscale_on(False)
>
> all seems to work fine.
>
> Is your question that you want to a
Hi everybody,
Below you will find a small script that plots the graph of a simple function.
This code is aimed to be embedded in a GUI application.
I set the subplot dimension with the b.set_position([]) command. The floats
that are given to set_position() are percents relative to the Figure
di
21 matches
Mail list logo