Re: [Matplotlib-users] get_*gridlines alwys returns the same things?

2010-05-05 Thread Nico Schlömer
> If there is a substantial need to read the grid state, we could expose > it via a suitable API at the Axis level. But is this important? Well, I'm using this for the matplotlib2tikz converter which takes a matplotlib figure and spits out TikZ code. TikZ

Re: [Matplotlib-users] get_*gridlines alwys returns the same things?

2010-05-05 Thread Eric Firing
On 05/05/2010 08:46 AM, Chloe Lewis wrote: > I got curious and looked for the grid command in matplotlib/axes.py. > Looks like an inherited-from-Matlab thing. In the cla (clear axis) > function of the Axes class: > > self._gridOn = rcParams['axes.grid'] > #... > self.g

Re: [Matplotlib-users] get_*gridlines alwys returns the same things?

2010-05-05 Thread Jae-Joon Lee
On Tue, May 4, 2010 at 6:27 PM, Nico Schlömer wrote: > That's really independent of whether the grid is on or off. > > Is there any explanation for it that does not have to do with Harry > Potter or the Jedi? ;) > positions of gridlines (and ticks, ticklabels, etc) are updated during the drawing

Re: [Matplotlib-users] get_*gridlines alwys returns the same things?

2010-05-05 Thread Chloe Lewis
I got curious and looked for the grid command in matplotlib/axes.py. Looks like an inherited-from-Matlab thing. In the cla (clear axis) function of the Axes class: self._gridOn = rcParams['axes.grid'] #... self.grid(self._gridOn) and grid() passes its argument on to

Re: [Matplotlib-users] matplotlib import problem

2010-05-05 Thread Jouni K . Seppänen
"ailp...@gmail.com" writes: > I have strange problem while I am importing matplotlib. > File "/usr/lib/python2.6/xml/sax/saxutils.py", line 6, in > import os, urlparse, urllib, types > File "/usr/lib/python2.6/urllib.py", line 26, in > import socket > File "socket.py", line 7, in

Re: [Matplotlib-users] Animated plots in a Tkinter application

2010-05-05 Thread Alan G Isaac
On 5/5/2010 6:53 AM, Kim Hansen wrote: > Could anyone give a working example of an embedded, animated plot in a > Tkinter application, where animated=True is used together with canvas > background copying to make efficient animated plots in Tkinter > together with other widgets? First see the

Re: [Matplotlib-users] re move / delete arrow / annotate, how to?

2010-05-05 Thread KrishnaPribadi
Ryan May-3 wrote: > > > You can accomplish it by: > > ax.texts.remove(arrow) > > I'd still like to know why this exception gets raised: > > > NotImplementedError Traceback (most recent call > last) > > /home/rmay/ in () > > /home/rmay/.local/lib/python2.6/site-packa

[Matplotlib-users] Animated plots in a Tkinter application

2010-05-05 Thread Kim Hansen
Hi, Could anyone give a working example of an embedded, animated plot in a Tkinter application, where animated=True is used together with canvas background copying to make efficient animated plots in Tkinter together with other widgets? I cannot make it work myself, see below. I am working on a