Plotting something interactively not using pylab

Ok, never mind. I found the embedding_in_*.py examples which demonstrate
exactly what I need.


--- Urspr�ngliche Nachricht ---
Von: "Sascha" <saschagl@...380...>
An: <>
Betreff: [Matplotlib-users] Plotting something interactively not using
Datum: Mon, 26 Sep 2005 00:09:52 +0200

Ok, I am trying to show that using pylab is much easier than using the MPL
API to plot something interactively. What's missing in my example below?


>>> import matplotlib
>>> matplotlib.interactive(1)
>>> from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
>>> from matplotlib.figure import Figure
>>> fig=Figure()
>>> ax=fig.gca()
>>> ax.plot([1,2,3])
[<matplotlib.lines.Line2D instance at 0x0154EB70>]
>>> canvas=FigureCanvasTkAgg(fig)
>>> canvas.draw()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?



line 153,
in draw
AttributeError: 'NoneType' object has no attribute 'update_idletasks'

SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play:
Matplotlib-users mailing list
matplotlib-users List Signup and Options

5 GB Mailbox, 50 FreeSMS GMX ProMail - Mehr als E-Mail mit dem Profi-Postfach
+++ GMX - die erste Adresse f�r Mail, Message, More +++