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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com