SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S




1
2
3
4
5
6
7
(4)
8
(9)
9
(4)
10
11
12
(2)
13
(1)
14
15
(11)
16
(3)
17
18
19
20
(4)
21
(2)
22
(4)
23
(6)
24
(1)
25
26
(5)
27
(5)
28
29
30
31

Showing 5 results of 5

From: John H. <jdh...@ac...> - 2004年07月26日 21:00:37
>>>>> "Steve" == Steve Chaplin <ste...@ya...> writes:
 Steve> I've added an icon for use for when matplotlib windows are
 Steve> minimized and chose an arbitrary icon (back.svg) to get it
 Steve> working on the GTK+ backend. Since the icon has to be
 Steve> resized to fit in the panel, and svg are good at resizing,
 Steve> I used svg instead of the usual png format (png or other
 Steve> formats could be used instead if required).
 Steve> John, if you can find/create a suitable matplotlib icon
 Steve> just copy it to images/matplotlib.svg and overwrite the
 Steve> existing icon file.
I had the bright idea to use the svg backend to generate the
minimization icon. See examples/matplotlib_icon.svg. It displays
correctly on my web browser, but not when minimized. I don't know if
this reflects a problem in the svg backend, or how gtk handles svg
icons.
If we can get this example to work, the next thing to do is connect
the icon setting to the window minimize event, and set the icon to be
the svg output of the current figure window!
JDH
From: Gregory L. <gre...@ff...> - 2004年07月26日 20:13:40
> -----Message d'origine-----
> De : mat...@li...=20
> [mailto:mat...@li...] De la=20
> part de John Hunter
> Envoy=E9 : lundi 26 juillet 2004 21:26
> =C0 : mat...@li...
> Objet : [matplotlib-devel] constrained zoom
>=20
>=20
>=20
> One more thought on interactive zoom. As I was trying out=20
> the interactive zoom (not zoom to rect, but right click on=20
> pan zoom) on some image data, I noticed that it would be=20
> useful to have some constraints on the zoom
>=20
> - zoom only on x. Already the x zoom is determined by the amount of
> movement in the horizontal direction, but it would be nice to be
> able to ignore the y direction. Candidate key modifier: 'x'
>=20
> - zoom only on y. ditto. Candidate key modifier: 'y'
>=20
> - preserve axes aspect ratio. Candidate key modifier: ??. I think
> some apps use a SHIFT or a CTRL modifier for this. Is there any
> consensus or common practice?
Yes, this will be very usefull! Add the group of axis (all of them react
to pan/zoom/zoom_to_rect of any of them, and it would be the ultimate
plot navigation tool :-) I go for shift for the last one (could even do
the 3 in one, kind of like power point snap to grid, except grid would
be 0/45/90 direction. I think powerpoint and many drawing program (adobe
illustrator, corel draw) act like that :-)
From: John H. <jdh...@ac...> - 2004年07月26日 19:49:33
One more thought on interactive zoom. As I was trying out the
interactive zoom (not zoom to rect, but right click on pan zoom) on
some image data, I noticed that it would be useful to have some
constraints on the zoom
 - zoom only on x. Already the x zoom is determined by the amount of
 movement in the horizontal direction, but it would be nice to be
 able to ignore the y direction. Candidate key modifier: 'x'
 - zoom only on y. ditto. Candidate key modifier: 'y'
 - preserve axes aspect ratio. Candidate key modifier: ??. I think
 some apps use a SHIFT or a CTRL modifier for this. Is there any
 consensus or common practice?
JDH
From: John H. <jdh...@ac...> - 2004年07月26日 19:43:09
>>>>> "Gregory" == Gregory Lielens <gre...@ff...> writes:
 Gregory> *zoom out to rect is implemented, works ok but is not as
 Gregory> intuitive as I hoped (interrective pan/zoom is so good
 Gregory> that it will be seldom used, I guess ;-) ). After
 Gregory> testing it, I guess an interractive Pan/Zoom with
 Gregory> shift_key
 pressed-> zoomx=zoomy would be a worthier extension
I say we drop it then. Obviously you are free to do what you want on
your backend, but it doesn't sound like it adds enough to incorporate
it into the general framework.
 Gregory> However, doing these modif I had some small problems:
 Gregory> -it seems current CVS print ticker locator instances at
 Gregory> redraw, I think since you corrected some ticker locator
 Gregory> bug or something...very minor I guess 
Fixed, thanks
 Gregory> the intended goal...I do not know why, as the axes
 Gregory> instance a printed continuously during the drag, showing
 Gregory> that figure is redrawed...but it shows to the screen only
 Gregory> when I release the button :-(
...snip 
 Gregory> -Why is the screen updated only after button release? Is
 Gregory> there an extra operation to do except the draw, is screen
 Gregory> updating blocked during events (maybe a double
 Gregory> buffering?) ...Or I am doing something forbidden
 Gregory> re-assigning callbacks within another callback?
The reason was performance. tk blits slowly do it is hard to get
interactive refresh rates. Also, matplotlib can be slow for some
figures, so I didn't want to bod down performance with interactive
redraws. 
In retrospect, I think it is a good idea to support dynamic updates.
I recoded the navigation toolbar base class a bit to call a method
dynamic_update during pan/zoom mode and implemented this for gtk (not
yet wx). It is a *very nice* feature, IMO. I had to trap the button
press and release events in gtk because button wasn't defined on a
drag (I guess this is the purpose of a drag event :-). My preference
for now is to not add a separate drag event to mpl_connect for
simplicity, but I'm open to it if you and the rest of the gang think
we should. We can always add it later.
Todd, you may want to take a stab at implementing this in tkagg --
you'll like it! For the slower interactive backends (wx*, tk) it may
be a good idea to make the dynamic update an rc param.
JDH
From: Gregory L. <gre...@ff...> - 2004年07月26日 13:04:09
Hi John,
I have modified the fltk backend for toolbar2 and I am now quite happy
with it's capabilities:
*Zoomtorect and pan/zoom are toggle buttons, that can be
activated/pushed or deactivated/raised
Push on zoomtorect de-activate pan/zoom and vice-versa, and when none
are activated one go back to initial situation (just the default
pointer, no action (ideal would be to cache the callback associated to
motion, push and release, so that one can go back to user-defined
behavior)
*rubber band is drawed during zoom_to_rect
*motion_notify event is captured, i.e. pointer shape change when it
enter axes if Pan/zoom or zoom_to_rect is active
*pan/zoom is interractive, i.e. view is refreshed continuously when user
drag the mouse keeping the button pushed (speed is ok, same as window
resize)
*zoom out to rect is implemented, works ok but is not as intuitive as I
hoped (interrective pan/zoom is so good that it will be seldom used, I
guess ;-) ).
After testing it, I guess an interractive Pan/Zoom with shift_key
pressed->zoomx=zoomy would be a worthier extension
However, doing these modif I had some small problems: 
 -it seems current CVS print ticker locator instances at redraw, I think
since you corrected some ticker locator bug or something...very minor I
guess
 -my first implementation of interractive pan/zoom was by defining a
drag event: fltk is able to distinguish between a motion notify event
(mouse move, no button pressed) and a button_drag event (mouse move with
a button(s) pressed). This allows very clean and simple implementation,
but when I tried to extend it to GTKAgg I was in trouble: it seems there
is not 2 events generated, but that motion_notify have just the number
of the button pressed (or None)...
I emulated this in FltkAgg, collapsing the 2 events in one, and hacked
an interractive pan/zoom over it but it is not as clean as the previous
solution (change the mouse_move callback to pan_drag callback in
pan_press, go back to mouse_move at pan_release)...A little extra
benefit compensating for this is that the pointer stay a hand even if
one go outside the window, and I autorized it for extra freedom in
pan/zoom...
Problem is that this do not allow me to port interrative Pan/Zoom to
TkAgg or GTKAgg, which was the intended goal...I do not know why, as the
axes instance a printed continuously during the drag, showing that
figure is redrawed...but it shows to the screen only when I release the
button :-(
So I have 2 questions:
-What do you think is the best event model: 
Separate events for DRAG/MOTION, or same one and use button info for
differenting the 2? The second one (=current implementation) is simpler
and cleaner in the sense that we have less events, but on the other hand
in practive I guess one will often want to redefine the drag without
changing motion, and in this case the 2 event is cleaner...Well, of
course if there is no simple way to generate 2 event except in fltk,
better to stay with 1 event for portability...
-Why is the screen updated only after button release? Is there an extra
operation to do except the draw, is screen updating blocked during
events (maybe a double buffering?) ...Or I am doing something forbidden
re-assigning callbacks within another callback?
Best regards,
Greg.
PS: still no news from pyfltk guy nor any activity on the pyfltk list :(

Showing 5 results of 5

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 によって変換されたページ (->オリジナル) /