SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Jean-Baptiste C. <jea...@de...> - 2004年01月22日 08:05:08
Hi !
The more I look at matplotlib, the more nice feature I find.
However there are more that I haven't found yet, eventhough they might
be implemented. I would like to have a little more interactivity with
the plot itself. By this I do not mean the interactivity with the python
shell, but with the mouse:
- Double click on the legend/axes/label allow it modification
- Single Click on a drawn line give the properties of the function=20
and/or location
- In short, being able to treat elements of the figure as widgets
- I reckon the whole figure is a DrawingArea and that might not be
straight forward
Of course just having a signal sent with the propoerties of the curves
would be good enough
Are more people interested in that ?
Takk
Kve=C3=B0ja
Jean-Baptiste
From: John H. <jdh...@ac...> - 2004年01月22日 17:39:04
>>>>> "Jean-Baptiste" == Jean-Baptiste Cazier <jea...@de...> writes:
 Jean-Baptiste> Hi ! The more I look at matplotlib, the more nice
 Jean-Baptiste> feature I find. However there are more that I
 Jean-Baptiste> haven't found yet, eventhough they might be
 Jean-Baptiste> implemented. I would like to have a little more
 Jean-Baptiste> interactivity with the plot itself. By this I do
 Jean-Baptiste> not mean the interactivity with the python shell,
 Jean-Baptiste> but with the mouse: - Double click on the
 Jean-Baptiste> legend/axes/label allow it modification - Single
 Jean-Baptiste> Click on a drawn line give the properties of the
 Jean-Baptiste> function and/or location - In short, being able to
 Jean-Baptiste> treat elements of the figure as widgets - I reckon
 Jean-Baptiste> the whole figure is a DrawingArea and that might
 Jean-Baptiste> not be straight forward
 Jean-Baptiste> Of course just having a signal sent with the
 Jean-Baptiste> propoerties of the curves would be good enough
 Jean-Baptiste> Are more people interested in that ?
It's not something I need in my own work, but I think it would be a
good addition to matplotlib and I'd be happy to include it. To that
end, I wrote some demo code to get you started! I implemented an
object picker (currently only for tick labels and lines but this can
easily be extended to include the other elements of the figure).
I also wrote the start of a line properties dialog. It should be
straight forward to extend to incorporate the other line properties,
(markeredgecolor, etc...) and then to do the same for a text
properties dialog, etc....
I needed to add a few things to matplotlib to make this easier, so
you'll need to grab the snapshot at 
 http://nitace.bsd.uchicago.edu:8080/files/share/matplotlib-0.42a.tar.gz
and see the file examples/object_picker.py. 
Good luck!
John Hunter
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /