Thread Subject: Link data to an "imshow"

Subject: Link data to an "imshow"

From: David Doria

Date: 28 May, 2008 23:13:02

Message: 1 of 2

I would like to do this

a=ones(100,100);
imshow(a);
%click the "link" button on the figure
%modify a
%the image is automatically updated because it is linked to a

Is this possible? Also, how do you programmatically link
plots with regular data (replacing the "click link" step in
the above example)?

Thanks,

Dave

Subject: Link data to an "imshow"

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 28 May, 2008 23:54:02

Message: 2 of 2

In article <g1kotu$om5$1@fred.mathworks.com>,
David Doria <daviddoria@gmail.com> wrote:
>I would like to do this

>a=ones(100,100);
>imshow(a);
>%click the "link" button on the figure
>%modify a
>%the image is automatically updated because it is linked to a

>Is this possible? Also, how do you programmatically link
>plots with regular data (replacing the "click link" step in
>the above example)?

It does not appear to be possible for images.

It also does not appear to be possible for line() objects
or patch() objects. It is, though, possible for lineseries
objects such as are created by plot().

newy = rand(1,17);
bar = plot(rand(1,17),newy);
set(bar,'YDataSource','newy');
newy = sind(0:pi:21);
refreshdata(bar,'caller');

It is allowed to use quoted expressions for the YDataSource, such as

set(bar,'YDataSource','newy(5,:)')
--
  "When we all think alike no one is thinking very much."
                                              -- Walter Lippmann

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com