TkAgg vs. GTKAgg ioff cla behavior

Would it be possible to change the default reply-to address associated
with the mpl list? I prefer the settings of the scipy list where the
default is to reply to the list. With mpl, I have to add the list
manually.

···

---------- Forwarded message ----------
From: Ryan Krauss <ryanlists@...287...>
Date: Mar 16, 2006 11:11 AM
Subject: Re: [Matplotlib-users] TkAgg vs. GTKAgg ioff cla behavior
To: John Hunter <jdhunter@...4...>

So, I have some complicated script that doesn't seem to update my
graphs properly with the GTKAgg backend and does update them with the
TkAgg backend (using ipython), but I can't seem to recreate the
behavior with a simple script. If I can come up with a good, simple
example I will re-post. Otherwise I guess we need to assume that I am
doing something wrong somewhere in my complicated script.

Ryan

On 3/15/06, John Hunter <jdhunter@...4...> wrote:

    > the GTKAgg backend does not show the plot of y2.

On my system I get the plot of y2 (cos, not sin) -- here is the
complete script I am using and the --verbose-helpful output below

Example script:

  from pylab import *
  t=arange(0,1,0.01)
  y=sin(2*pi*t)
  y2=cos(2*pi*t)
  figure(1)
  plot(t,y)
  ioff()
  cla()
  plot(t,y2)
  show()

verbose helpful output:

  matplotlib data path /usr/lib/python2.4/site-packages/matplotlib/mpl-data
  $HOME=/home/jdhunter
  CONFIGDIR=/home/jdhunter/.matplotlib
  loaded rc file /home/jdhunter/.matplotlib/matplotlibrc
  matplotlib version 0.87.2svn
  verbose.level helpful
  interactive is False
  platform is linux2
  numerix numpy 0.9.7.2247
  font search path ['/usr/lib/python2.4/site-packages/matplotlib/mpl-data']
  loaded ttfcache file /home/jdhunter/.matplotlib/ttffont.cache
  backend GTKAgg version 2.6.1

    > Is this a bug, something wrong on my system, or does it make
    > sense that the GTKAgg backend ignores everything after
    > ioff()?

All ion and ioff do is control when the drawing takes place. If "ion"
(interactive is True) then the figure should be redrawn with every
pylab command. If "ioff" (interactive is off) the figure is only
drawn with a call to savefig, draw or show. That's how it is supposed
to work -- the details are spelled out at
http://matplotlib.sf.net/interactive.html

Let us know if you see further strangeness, and be sure to report the
output of verbose-helpful

JDH