No resizing of figures

Is there a keyword or a function to lock the figures so that they can not be resized?

Cheers
Tommy

tgrav@…1191…

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

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

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
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

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
> Matplotlib-users@lists.sourceforge.net
> matplotlib-users List Signup and Options

-------------------------------------------------------------------------
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
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Darren S. Dale, Ph.D.
dd55@...163...

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

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

Matplotlib-users@lists.sourceforge.net

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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Tommy

tgrav@…935…

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

···

On Jul 22, 2006, at 8:59 PM, Gary Ruben wrote: