Thread Subject: how to plot a callout within a plot

Subject: how to plot a callout within a plot

From: nan

Date: 18 Sep, 2009 09:32:03

Message: 1 of 3

hello,
i want to plot a callout (or zoom out) wiondow within a plot, so i can show a small part of the plot. (it just like we using the zoom out tool to see a plot, but instead, the zoom out is ploted within the plot, and we can still see the orignal plot).

how can i do that?
many thanks
nan

Subject: how to plot a callout within a plot

From: Sebastiaan

Date: 18 Sep, 2009 09:54:03

Message: 2 of 3

"nan " <njyan2005@yahoo.co.uk> wrote in message <h8vk2j$2br$1@fred.mathworks.com>...
> hello,
> i want to plot a callout (or zoom out) wiondow within a plot, so i can show a small part of the plot. (it just like we using the zoom out tool to see a plot, but instead, the zoom out is ploted within the plot, and we can still see the orignal plot).
>
> how can i do that?
> many thanks
> nan

So, basically you want to have a figure with 2 axes in it.

Search the Matlab Help for 'multiple axes' and read the 'Using Multiple X- and Y-Axes':
http://www.mathworks.nl/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/creating_plots/f1-11215.html

Second thing to do is to use the Position properties of the axes to place it in the right position (ah2 is the handle to your second axes):
set(ah2, 'Units', 'normalized', 'Position', [0.4 0.4 0.2 0.2])

plot(ah1, 1:10, 10:-1:1) % plot in normal axes
plot(ah2, 4:6, 6:-1:4) % plot in zoom axes

Subject: how to plot a callout within a plot

From: arich82

Date: 18 Sep, 2009 20:27:04

Message: 3 of 3

Check out 'magnify' from the FEX. I've never used it, but recall that it was a Pick-o'-the-Week a (long) while back:
http://blogs.mathworks.com/pick/2006/03/02/1868/

--


"nan " <njyan2005@yahoo.co.uk> wrote in message <h8vk2j$2br$1@fred.mathworks.com>...
> hello,
> i want to plot a callout (or zoom out) wiondow within a plot, so i can show a small part of the plot. (it just like we using the zoom out tool to see a plot, but instead, the zoom out is ploted within the plot, and we can still see the orignal plot).
>
> how can i do that?
> many thanks
> nan

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
plot in plot Sprinceana 18 Sep, 2009 16:12:03
plot callout Sprinceana 18 Sep, 2009 16:11:44
zoom Sprinceana 18 Sep, 2009 16:11:44
zoom out Sprinceana 18 Sep, 2009 16:11:44
rssFeed for this Thread

Contact us at files@mathworks.com