Hi,

On 3 March 2010 00:18, Gökhan Sever wrote:
>
>
> On Tue, Mar 2, 2010 at 5:57 PM, Andrea Gavana <andrea.gav...@gmail.com>
> wrote:
>>
>> Hi All,
>>
>>    I believe this question has been already asked in the past (I
>> found something at
>>
>> http://old.nabble.com/A-good,-interactive-plotting-package-td15396445.html).
>>
>> I use matplotlib extensively in our applications, and some of my users
>> repetitively asked for a way to customize *in runtime* the plots my
>> apps generate. I.e., the app brings up a figure with a bunch of lines,
>> points and texts, and they would like to change this linewidth, the
>> colour of that point, the appearance of an axis, the legend keys and
>> so on. I am currently answering "it can't be done at the moment" :-D.
>> It is obviously not true, it just require some (a lot, maybe) work.
>
> I can list three ways to interact with active plots:
>
> 1-)  Using keyboard shortcuts: Changing scaling  using "k" and "l" keys are
> my favorite. See more at
> http://matplotlib.sourceforge.net/users/navigation_toolbar.html
>
> 2-) Using the interactive navigation toolbar and with a small extension
> written by Pierre Raybaut (on Qt4Agg backend) For a screenshot see
> http://img156.imageshack.us/img156/9210/mplqtextra.png
> This is open to development. Actually many of the command line mpl interface
> could be integrated into that window.
>
> 3-) Directly from within IPython shell. That's another useful way of
> updating figure properties (e.g. adding labels, changing font) IPython and
> matplotlib are very well integrated in that manner. Similarly, Mayavi does a
> great job of integrating shell and UI.

Only the second approach slightly resembles what I have in mind.
Navigating the plot using shortcuts and the MPL toolbars is less than
1% of what you can do to customize a MPL plot. Asking a user who knows
nothing about Python (or programming in general) to use the IPython
shell to modify the plot in runtime is unrealistic at best.

The second approach looks interesting (pity it's been done using Qt,
but then, the world is not perfect either...). I could use some of
that code to build something that looks like a *beginning* of a
possible customization of plots (using THE GUI toolkit). I thought
this issue could have been important, as any other 2D/3D plotting
toolkits (commercial and not commercial) have some (or a lot) of
ability to customize their plots once they have been generated...

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
http://thedoomedcity.blogspot.com/

------------------------------------------------------------------------------
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-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to