Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Copying zoom parameters across different figures
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matt J  
View profile  
 More options Feb 5 2010, 11:58 am
Newsgroups: comp.soft-sys.matlab
From: "Matt J " <mattjacREM...@THISieee.spam>
Date: Fri, 5 Feb 2010 16:58:02 +0000 (UTC)
Local: Fri, Feb 5 2010 11:58 am
Subject: Copying zoom parameters across different figures
I have two image figures.

figure(1); imagesc(...)
figure(2); imagesc(...)

I use the zoom tool to magnify a portion of one of figure(1). I would then like to apply the same zoom parameters to figure(2). Is there an easy way to programmatically extract the zoom parameters of one and copy them to the second?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Luong  
View profile  
 More options Feb 5 2010, 12:46 pm
Newsgroups: comp.soft-sys.matlab
From: "Bruno Luong" <b.lu...@fogale.findmycountry>
Date: Fri, 5 Feb 2010 17:46:02 +0000 (UTC)
Local: Fri, Feb 5 2010 12:46 pm
Subject: Re: Copying zoom parameters across different figures
"Matt J " <mattjacREM...@THISieee.spam> wrote in message <hkhimq$55...@fred.mathworks.com>...

> I have two image figures.

> figure(1); imagesc(...)
> figure(2); imagesc(...)

> I use the zoom tool to magnify a portion of one of figure(1). I would then like to apply the same zoom parameters to figure(2). Is there an easy way to programmatically extract the zoom parameters of one and copy them to the second?

Use LINKAXES

Bruno


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt J  
View profile  
 More options Feb 5 2010, 1:30 pm
Newsgroups: comp.soft-sys.matlab
From: "Matt J " <mattjacREM...@THISieee.spam>
Date: Fri, 5 Feb 2010 18:30:22 +0000 (UTC)
Local: Fri, Feb 5 2010 1:30 pm
Subject: Re: Copying zoom parameters across different figures

"Bruno Luong" <b.lu...@fogale.findmycountry> wrote in message <hkhlgq$g...@fred.mathworks.com>...
> Use LINKAXES

===============

Thanks. That actually put me on the trail of linkprops, which is even better for what I need.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt J  
View profile  
 More options Feb 5 2010, 4:39 pm
Newsgroups: comp.soft-sys.matlab
From: "Matt J " <mattjacREM...@THISieee.spam>
Date: Fri, 5 Feb 2010 21:39:20 +0000 (UTC)
Local: Fri, Feb 5 2010 4:39 pm
Subject: Re: Copying zoom parameters across different figures
A follow-up question. I would like to synchronize all figure properties, including, for example, the data tip. I.e., if I turn the data tip on in one figure, I'd like it to be turned on in the other automatically. I tried using linkprop(), but it doesn't seem to accept the WindowButton* properties as linkable. Is there a way to do this?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
C Vasco  
View profile  
 More options Nov 15 2012, 2:54 pm
Newsgroups: comp.soft-sys.matlab
From: "C Vasco" <cva...@gmail.com>
Date: Thu, 15 Nov 2012 19:54:21 +0000 (UTC)
Local: Thurs, Nov 15 2012 2:54 pm
Subject: Re: Copying zoom parameters across different figures

"Matt J" wrote in message <hkhimq$55...@fred.mathworks.com>...
> I have two image figures.

> figure(1); imagesc(...)
> figure(2); imagesc(...)

> I use the zoom tool to magnify a portion of one of figure(1). I would then like to apply the same zoom parameters to figure(2). Is there an easy way to programmatically extract the zoom parameters of one and copy them to the second?

It has been a while since this was posted, but I found a solution that will work for a one-time "copy" of zoom parameters from one figure to another.

First, have the figure with desired zoom parameters selected or in focus.
Then, use

>> myaxes = axis

to get the current axis scaling and appearance.

Finally, select the target axis that will be updated and use

>> axis(gca, myaxes)

to apply the saved axis limits.

- C


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt J  
View profile  
 More options Nov 20 2012, 2:16 pm
Newsgroups: comp.soft-sys.matlab
From: "Matt J " <mattjacREM...@THISieee.spam>
Date: Tue, 20 Nov 2012 19:16:08 +0000 (UTC)
Local: Tues, Nov 20 2012 2:16 pm
Subject: Re: Copying zoom parameters across different figures
"C Vasco" wrote in message <k83h9c$o6...@newscl01ah.mathworks.com>...

> First, have the figure with desired zoom parameters selected or in focus.
> Then, use
> >> myaxes = axis
> to get the current axis scaling and appearance.

> Finally, select the target axis that will be updated and use
> >> axis(gca, myaxes)
> to apply the saved axis limits.

===============

Good!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »