This is not a bug.
The exception is raised simply because "textartist.figure" is None
(and it is None because you never set it).
"textartist" you created is not properly set up (no figure, no axes,
no transform). You may do
textartist = Text(0.5, 0.5, "Foo")
textartist.set_figure(fig)
fig.draw_art
Ted,
How does this example run for you?
http://matplotlib.sourceforge.net/examples/pylab_examples/griddata_demo.html
From: Ted Kord [mailto:teddy.k...@googlemail.com]
Sent: Monday, February 08, 2010 12:00 PM
To: Paul Hobson
Cc: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users
I am getting a fault when I try to use Figure.draw_artist() with a
matplotlib.text.Text object. Since matplotlib.text.Text inherits from
matplotlib.artist.Artist, which is what draw_artist() takes, this should
probably work.
Tested with latest SVN code on Linux.
Here is the traceback:
Traceb
Adolfo Aguirre wrote:
> He´s answer was that Zope awas not an straightforward stable
> environment but a work-in-progress,
Zope has been around a long time, it' s fine environment, particularly
when used as the core of Plone. Zope does have its own way of doing
things that are not to everyone's
Hey folks,
my problem may be obvious, but i can't seem to copy a plot from one canvas
to another.
# I have this object where whichCanvas is an instance of MplWidget (code
shown below)
self.whichCanvas.canvas.ax.plot(xData, yData, 'bo', linewidth=1.5,
linestyle='-')
# I want to cop
On 8 February 2010 17:37, wrote:
> Hey Ted,
>
> I don't quite understand how you're getting the Z data below. But if you
> have 3D data in X, Y, and Z 1D-arrays, the griddata function should work for
> you.
>
> http://matplotlib.sourceforge.net/api/mlab_api.html#matplotlib.mlab.griddata
>
> HTH,
I'd like to set the ticks on the y axis such that they do not display
anything lower than 0, even if part of the graph below 0 is visible.
I tried to do this with
ylocator = AutoLocator()
ylocator.view_limits(0, 100)
self.subplot.yaxis.set_major_locator(ylocator)
but it is not changing anything.
On Mac OS X 10.6.2, with Sage 4.3.1, I have installed matplotlib-0.99.1 with
gui backend (to do this, I set SAGE_MATPLOTLIB_GUI=True before using sage's
spkg installer, which performs some patches on matplotlib that ).
When I use the OS X backend and do:
import matplotlib.pyplot as plt
plt.figure
Greetings Adolfo,
On Mon, Feb 8, 2010 at 12:18 PM, Adolfo Aguirre
wrote:
> Hi:
>
> I do environmental research that requires almost real time online graphing
> for data originating in the field.
Can you be a little more specific regarding 'almost real time?' I
update data from a remote meteorol
> "M" == Michael Droettboom writes:
M> Matplotlib will output Type 42 fonts if the rcParam "ps.fonttype"
M> is set to 42.
I read the reply which stated that after sending mine
Sorry for the noise.
-JimC
--
James Cloos OpenPGP: 1024D/ED7DAEA6
-
Hi Paul
This helped immensely. Thanks.
Ted
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and ma
Hi:
I do environmental research that requires almost real time online graphing
for data originating in the field. I am a fan of Phyton thus I commissioned
a systems administrator to figure out how to put Matplotlib online. He´s
answer was that Zope awas not an straightforward stable environment bu
Hey Ted,
I don't quite understand how you're getting the Z data below. But if you have
3D data in X, Y, and Z 1D-arrays, the griddata function should work for you.
http://matplotlib.sourceforge.net/api/mlab_api.html#matplotlib.mlab.griddata
HTH,
-paul
-
Fro
Matplotlib will output Type 42 fonts if the rcParam "ps.fonttype" is set to 42.
Type 3 is the default because it greatly reduces filesize (it embeds only a
subset of the font), particularly with large Unicode fonts like Vera Sans.
Mike
--
Have you tried explicitly calling .clf() on the matplotlib Figure object from
your Tix.Frame.destroy callback?
Mike
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data
One more note about Axes3D and mouse rotation. Axes3D disconnects the mouse
callbacks when cla() is called. Which means that if you do this:
self.axes = Axes3D(self.figure)
self.axes.scatter(xs, ys, zs)
self.axes.cla()
self.axes.scatter(xs, ys, zs)
then the plot will have no mouse rotation. T
Jeff Whitaker wrote:
>
> zxc wrote:
>> Hi there!
>> I need to know how to close a figure/chart in matplot.
>>
>> Does anyone know how it works and could you please explain on the
>> example below?
>> The problem is: close(1) doesn't close the figure 1 and when the 2nd
>> figure will be plot t
Thanks, that worked perfectly.
Best, Filipe
On Mon, Feb 8, 2010 at 8:39 AM, Stephane Raynaud wrote:
> Hi Filipe,
>
> you can fist use the quiver() function in the classic way for stick plots,
> then use gca().xaxis_date().
>
> Here is a simple example :
>
> import pylab as P
> # t may be genera
On 2/6/2010 2:35 PM, Wayne Watson wrote:
> I'm not even sure if we are pro-pylab or pyplot as the preferred-style.
It is somewhat personal preference:
do you want access to NumPy and pyplot functions
in a single name space or not. But the "preferred"
style is the most explicit:
http://matplotlib
Hi
I'd like to generate a surface plot using mplot3d. However, Z is not a
function of X and/or Y. It's just a set of scalar values. So, the following
doesn't work:
X = np.arange(2, 102, 2)
Y = np.arange(0, 15.15, 0.15)
X, Y = np.meshgrid(X, Y)
Z = f[2]
ax.plot_surface(X, Y, Z, rstride=1, cstride=
Hi there!
I need to know how to close a figure/chart in matplot.
The problem is: I am developing a program that calculates >5 figures and
needs some minutes to calculate one. So it would be great if I could close
the figure if the next figure is ready cause then I am able to show both
figures and
Hello! I'm writing an application that will show different plots on it's GUI. In order to switch between the different plot types I'd like to destroy the first plot and to create a new afterwards. I stumbled into a memory leak since I don't know how to close matplotlib figures the clean way. I wro
axes_grid uses a custome axes class. See
http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#axisline
For more details, see
http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/axislines.html
To make ticklabel visible, you may do
grid.axes_all[1].axis["botto
Hi Filipe,
you can fist use the quiver() function in the classic way for stick plots,
then use gca().xaxis_date().
Here is a simple example :
import pylab as P
# t may be generated using date2num()
t = P.arange(100,110,.1)
u = P.sin(t)
v = P.cos(t)
P.quiver([t],[[0]*len(t)],u,v)
P.gca().xaxis_da
Hi,
I have an AxesGrid instance of 2x2 subplots. I actually only
want 3 subplots, so I instantiate AxesGrid with the add_all=False
option, and manually add only the first 3 axes to the figure:
import matplotlib as plt
from mpl_toolkits import axes_grid
f = plt.figure()
grid = axes_grid.AxesGrid(
Hello,
When I save the figure as EPS, no text shows up.
The problem occurs with the example "embedding_in_wx2.py" and when I use
MSWord to show the eps file.
Is it a problem with MSWord ??
Thanks by advance.
Cédrick
--
Hi,
I am searching for a solution of the axis aspect in 3d plots, too.
On 10/14/2009 14:01, Tinne De Laet wrote:
>
> axis("scaled")
> worked for me.
>
> Tinne
This does not seem to work. At least I am not getting it to work. This
command does not seem to be applied to the 3d axis. Do you have a
27 matches
Mail list logo