From: Tommy G. <tg...@ma...> - 2006-07-18 19:15:17
|
Is there a keyword or a function to lock the figures so that they can not be resized? Cheers Tommy tg...@ma... http://homepage.mac.com/tgrav/ "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genious -- and a lot of courage -- to move in the opposite direction" -- Albert Einstein |
From: Tommy G. <tg...@ma...> - 2006-07-22 16:29:48
|
I am using matplotlib to display a couple of fits-images and then use the mouse to select a source in the image. However, when I click on the window containing the image to get it into focus the window starts resizing itself based on the movement of the mouse. I am on a mac with OS 10.4 and are using TkAgg. Has anyone seen this before and know how to avoid it from happening? Cheers Tommy |
From: Gary R. <gr...@bi...> - 2006-07-23 00:59:26
|
I see weird behaviour like this in Windows too. In my case, the horizontal size of the plot window increases as the pointer is moved inside a plot region. i.e. the aspect ratio of the window changes erratically, I think between two sizes. Sometimes it remains at the incorrect shape when the mouse pointer is shifted outside the plot area and sometimes it pops back to the correct shape. Is this the behaviour you see? I don't know how to avoid it. I noticed that shifting the pointer out of the plot area by moving through the bottom of the window seems to avoid the possibility of the window remaining with the incorrect aspect. I seem to remember seeing this behaviour on an old version of matplotlib. I thought it disappeared and has perhaps returned. My memory is hazy on this. Gary R. Tommy Grav wrote: > I am using matplotlib to display a couple of fits-images and then use > the mouse to select a source in the image. However, when I click on > the window containing the image to get it into focus the window starts > resizing itself based on the movement of the mouse. I am on a mac > with OS 10.4 and are using TkAgg. Has anyone seen this before and > know how to avoid it from happening? > > Cheers > Tommy > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Darren D. <dd...@co...> - 2006-07-23 03:08:46
|
I also see this behavior in the qtagg and qt4agg backends. Darren On Saturday 22 July 2006 8:59 pm, Gary Ruben wrote: > I see weird behaviour like this in Windows too. In my case, the > horizontal size of the plot window increases as the pointer is moved > inside a plot region. i.e. the aspect ratio of the window changes > erratically, I think between two sizes. Sometimes it remains at the > incorrect shape when the mouse pointer is shifted outside the plot area > and sometimes it pops back to the correct shape. Is this the behaviour > you see? I don't know how to avoid it. I noticed that shifting the > pointer out of the plot area by moving through the bottom of the window > seems to avoid the possibility of the window remaining with the > incorrect aspect. I seem to remember seeing this behaviour on an old > version of matplotlib. I thought it disappeared and has perhaps > returned. My memory is hazy on this. > > Gary R. > > Tommy Grav wrote: > > I am using matplotlib to display a couple of fits-images and then use > > the mouse to select a source in the image. However, when I click on > > the window containing the image to get it into focus the window starts > > resizing itself based on the movement of the mouse. I am on a mac > > with OS 10.4 and are using TkAgg. Has anyone seen this before and > > know how to avoid it from happening? > > > > Cheers > > Tommy > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your opinions on IT & business topics through brief surveys -- and earn > > cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Darren S. Dale, Ph.D. dd...@co... |
From: Tommy G. <tg...@ma...> - 2006-07-24 13:12:26
|
This is the same behavior that I see. The window resizes horisontally when the pointer is inside the window, although the window behaves erratically as it resizes. Moving the pointer to the right will cause the window to grow then reduce size as you go further right. As soon as the pointer leaves the window the resizing stops. And it only happens while the window is in focus. Tommy On Jul 22, 2006, at 8:59 PM, Gary Ruben wrote: > I see weird behaviour like this in Windows too. In my case, the > horizontal size of the plot window increases as the pointer is moved > inside a plot region. i.e. the aspect ratio of the window changes > erratically, I think between two sizes. Sometimes it remains at the > incorrect shape when the mouse pointer is shifted outside the plot > area > and sometimes it pops back to the correct shape. Is this the behaviour > you see? I don't know how to avoid it. I noticed that shifting the > pointer out of the plot area by moving through the bottom of the > window > seems to avoid the possibility of the window remaining with the > incorrect aspect. I seem to remember seeing this behaviour on an old > version of matplotlib. I thought it disappeared and has perhaps > returned. My memory is hazy on this. > > Gary R. > > Tommy Grav wrote: >> I am using matplotlib to display a couple of fits-images and then use >> the mouse to select a source in the image. However, when I click on >> the window containing the image to get it into focus the window >> starts >> resizing itself based on the movement of the mouse. I am on a mac >> with OS 10.4 and are using TkAgg. Has anyone seen this before and >> know how to avoid it from happening? >> >> Cheers >> Tommy >> >> --------------------------------------------------------------------- >> ---- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys -- and earn >> cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users Tommy tg...@ma... http://homepage.mac.com/tgrav/ "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genious -- and a lot of courage -- to move in the opposite direction" -- Albert Einstein |
From: Jouni K S. <jk...@ik...> - 2006-07-24 19:42:33
|
Tommy Grav <tg...@ma...> writes: > The window resizes horisontally when the pointer is inside the > window, although the window behaves erratically as it resizes. > Moving the pointer to the right will cause the window to grow then > reduce size as you go further right. Is this related to the pointer coordinates shown in the lower-right corner of the window? I.e., when you move the pointer right, perhaps the x-coordinate becomes a longer number and the window is enlarged to accommodate it. I remember seeing behavior like this on some old version of Matplotlib (probably TkAgg backend on OS X) but cannot reproduce it now. -- Jouni |
From: Darren D. <dd...@co...> - 2006-07-24 19:56:55
|
On Monday 24 July 2006 15:12, Jouni K Seppanen wrote: > Tommy Grav <tg...@ma...> writes: > > The window resizes horisontally when the pointer is inside the > > window, although the window behaves erratically as it resizes. > > Moving the pointer to the right will cause the window to grow then > > reduce size as you go further right. > > Is this related to the pointer coordinates shown in the lower-right > corner of the window? I.e., when you move the pointer right, perhaps > the x-coordinate becomes a longer number and the window is enlarged to > accommodate it. I remember seeing behavior like this on some old > version of Matplotlib (probably TkAgg backend on OS X) but cannot > reproduce it now. That looks like the problem. If you click the zoom widget in qt4agg, then "zoom to rect mode" also appears on that line, forcing the width of the window to increase even further. |
From: Darren D. <dd...@co...> - 2006-07-27 12:17:22
|
On Monday 24 July 2006 15:12, Jouni K Seppanen wrote: > Tommy Grav <tg...@ma...> writes: > > The window resizes horisontally when the pointer is inside the > > window, although the window behaves erratically as it resizes. > > Moving the pointer to the right will cause the window to grow then > > reduce size as you go further right. > > Is this related to the pointer coordinates shown in the lower-right > corner of the window? I.e., when you move the pointer right, perhaps > the x-coordinate becomes a longer number and the window is enlarged to > accommodate it. I remember seeing behavior like this on some old > version of Matplotlib (probably TkAgg backend on OS X) but cannot > reproduce it now. This was the problem. I fixed it in the qt backends by setting the label's resize policy to ignore the sizing hints. (I'm sorry if this is the second time this message gets posted.) |
From: Darren D. <dd...@co...> - 2006-07-28 20:13:02
|
On Monday 24 July 2006 15:12, Jouni K Seppanen wrote: > Tommy Grav <tg...@ma...> writes: > > The window resizes horisontally when the pointer is inside the > > window, although the window behaves erratically as it resizes. > > Moving the pointer to the right will cause the window to grow then > > reduce size as you go further right. > > Is this related to the pointer coordinates shown in the lower-right > corner of the window? I.e., when you move the pointer right, perhaps > the x-coordinate becomes a longer number and the window is enlarged to > accommodate it. I remember seeing behavior like this on some old > version of Matplotlib (probably TkAgg backend on OS X) but cannot > reproduce it now. I fixed this problem for the qt backends. The coordinates of the cursor are rendered in a label, and the resize policy of the label needs to be set so it doesnt try to grow to accomodate the long string. Darren |