Fernando Perez skrev 2010-03-22 01:10:
> On Sat, Mar 20, 2010 at 4:00 PM, Jae-Joon Lee<lee.j.j...@gmail.com>  wrote:
>> On Sat, Mar 20, 2010 at 5:05 AM, Fernando Perez<fperez....@gmail.com>  wrote:
>>> I wonder if it's possible to put things like a draw_if_interactive()
>>> call at the end of the OO methods... I realize that pyplot was the
>>> only one meant to do that, but if we are to encourage using the OO api
>>> more, then it's going to have to be as pleasant to use as pyplot...  I
>>> don't know the codebase well enough to mess with this right now, so I
>>> hope someone who's more versed in that part of the code can make a fix
>>> for this whose  impact isn't too severe on the runtime of OO code.
>>
>> I'm not very inclined to this but I'll wait to hear what others think.
>> I use oo api in the interactive mode but I still prefer to call draw()
>> explicitly.
>> Of course, we can make it optional.
>
> Mmh, back to this one: I do think it would be something useful to have
> somewhere, because typing draw() after *every* operation when working
> interactively does get tiresome, it seems to me...  If we encourage
> calling subplots() for new teaching, then we do want it to be as
> pleasant as pyplot to use interactively, I think...
>

Would it be possible to put the draw in the ipython_prompt hook. That 
way it is always called after you have done something.

/Jörgen

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to