For Programmers: Free Programming Magazines  


Home > Archive > Matlab > September 2006 > 2006a zoom WindowButtonDownFcn cannot be changed









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author 2006a zoom WindowButtonDownFcn cannot be changed
Alex V.

2006-09-20, 8:05 am

Hi,

a couple of Matlab versions ago I wrote a tool for displaying data in a
multi-axes figure window. One feature of this tool was a functionality
which allowed all the axes in one figure window to have the same x
limits - especially in case one was zooming in one of the axes. All
other axes would change dynamically after zooming.

To achieve this, the WindowButtonDownFcn of the figure was extended
after activating zoom mode in a way like:

1) Do some backup of all xlims
2) original WindowButtonDownFcn in zoom mode (zooming in)
3) adjust all axes x limits according to the zoomed axes.

Since version 2006a this isn't working any more. This message is generated:

Warning: Setting the "WindowButtonDownFcn" property is not permitted
while this mode is active.
> In uitools.uimodemanager.uimodemanager>localModeWarn at 55


Ok, obviously setting WBDFcn while in zoom mode is forbidden in newer
versions. Can anybody give me a hint how to get my code working again?
Is there a description of the uimodemanager stuff?
Thanks in advance.

Regards,
-Alex.
--
email address is valid but messages will be deleted (due to spam)
for serious mail, please replace 'nospam' with 'usenet'
Titus Edelhofer

2006-09-20, 8:05 am

Hi Alex,
fortunately life got easier for this kind of things:
use linkaxes to connect the multiple axis.

Titus

"Alex V." <alex.nospam@arcor.de> schrieb im Newsbeitrag
news:4511248b$0$17395$9b4e6d93@newsspool
2.arcor-online.net...
> Hi,
>
> a couple of Matlab versions ago I wrote a tool for displaying data in a
> multi-axes figure window. One feature of this tool was a functionality
> which allowed all the axes in one figure window to have the same x
> limits - especially in case one was zooming in one of the axes. All
> other axes would change dynamically after zooming.
>
> To achieve this, the WindowButtonDownFcn of the figure was extended
> after activating zoom mode in a way like:
>
> 1) Do some backup of all xlims
> 2) original WindowButtonDownFcn in zoom mode (zooming in)
> 3) adjust all axes x limits according to the zoomed axes.
>
> Since version 2006a this isn't working any more. This message is
> generated:
>
> Warning: Setting the "WindowButtonDownFcn" property is not permitted
> while this mode is active.
>
> Ok, obviously setting WBDFcn while in zoom mode is forbidden in newer
> versions. Can anybody give me a hint how to get my code working again?
> Is there a description of the uimodemanager stuff?
> Thanks in advance.
>
> Regards,
> -Alex.
> --
> email address is valid but messages will be deleted (due to spam)
> for serious mail, please replace 'nospam' with 'usenet'



Alex V.

2006-09-20, 8:05 am

Hi Titus,

thanks, looks good. It seems that part of my code is superfluous - what
a pity.


Titus Edelhofer wrote:
> Hi Alex,
> fortunately life got easier for this kind of things:
> use linkaxes to connect the multiple axis.
>
> Titus


Gruß,
-Alex.
--
email address is valid but messages will be deleted (due to spam)
for serious mail, please replace 'nospam' with 'usenet'
Alex V.

2006-09-28, 7:04 pm

Hi,

Titus Edelhofer wrote:
> Hi Alex,
> fortunately life got easier for this kind of things:
> use linkaxes to connect the multiple axis.
>
> Titus


There's still a problem. After zooming, I'd like some axis properties
(i.e. labels) to get changed. For that, I've written my own functions
(which in previous versions has been called by the already mentioned
changed wbdf in zoom mode - see other post). So, I'm looking for a way
to call my function(s) after Matlab has finished the zooming. Is that
possible?

TIA.

Regards,
-Alex.
--
email address is valid but messages will be deleted (due to spam)
for serious mail, please replace 'nospam' with 'usenet'
Titus Edelhofer

2006-09-29, 4:13 am

Hi Alex,
yes indeed, one of my new favourites (the reason I once
overloaded zoom myself...), but unfortunately available
only in R2006b, perhaps you can upgrade?
Look into the doc (e.g. on MathWorks homepage) for
zoom for the property 'ActionPostCallback'.

Titus

"Alex V." <alex.nospam@arcor.de> schrieb im Newsbeitrag
news:451bf40b$0$5147$9b4e6d93@newsspool1
.arcor-online.net...
> Hi,
>
> Titus Edelhofer wrote:
>
> There's still a problem. After zooming, I'd like some axis properties
> (i.e. labels) to get changed. For that, I've written my own functions
> (which in previous versions has been called by the already mentioned
> changed wbdf in zoom mode - see other post). So, I'm looking for a way
> to call my function(s) after Matlab has finished the zooming. Is that
> possible?
>
> TIA.
>
> Regards,
> -Alex.
> --
> email address is valid but messages will be deleted (due to spam)
> for serious mail, please replace 'nospam' with 'usenet'



Alex V.

2006-09-29, 4:13 am

Hi Titus,

Titus Edelhofer wrote:
> Hi Alex,
> yes indeed, one of my new favourites (the reason I once
> overloaded zoom myself...), but unfortunately available
> only in R2006b, perhaps you can upgrade?


I hope that I'll be able to upgrade quite soon.

> Look into the doc (e.g. on MathWorks homepage) for
> zoom for the property 'ActionPostCallback'.


Thanks for your hint. This property will be very useful.

> Titus


Regards,
-Alex.
--
email address is valid but messages will be deleted (due to spam)
for serious mail, please replace 'nospam' with 'usenet'
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com