Plotting something interactively not using pylab

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

Sascha

--- Urspr�ngliche Nachricht ---
Von: "Sascha" <saschagl@...380...>
An: <matplotlib-users@lists.sourceforge.net>
Betreff: [Matplotlib-users] Plotting something interactively not using
pylab
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?

TIA,
Sascha

>>> 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 ?
  File

"d:\abochs\zope\instances\Zope-2.8.0-final\bin\Lib\site-packages\matplotlib\backends\backend_tkagg.py",

···

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.
Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
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 +++