Thread Subject: can linkdata be used with CDataSource?

Subject: can linkdata be used with CDataSource?

From: Naor Movshovitz

Date: 20 Jun, 2009 00:35:19

Message: 1 of 2

linking+brushing fails when I use it on a scatter plot with color and size data. Try the following:
>> x=1:10; y=1:10; s=1:10; c=1:10;
>> sg=scatter(x,y,s,c);
>> set(sg,'xdatasource','x')
>> set(sg,'ydatasource','y')
>> set(sg,'cdatasource','c')
>> set(sg,'sizedatasource','s')
>> linkdata
Try "brushing out" a point. The plot disappears because only 'x' and 'y' were linked to the workspace variables and their dimensions now don't match the color and size vectors. Indeed, the documentation for linkdata explains that it matches X/Y/Z data sources to variables but doesn't mention CData or SizeData one way or the other. Are these really not supported by linkdata? This seems really strange because it severely limits the usefulness of data brushing and linking for no reason - after all color and size data sources CAN be defined and refreshdata CAN be called manually when their associated variables change.
 
Does anyone know if there is a workaround or if a future release will address this?
Thanks,
-naor (R2008a xp64)

Subject: can linkdata be used with CDataSource?

From: Naor Movshovitz

Date: 20 Jun, 2009 22:13:01

Message: 2 of 2

Follow up question. Is it possible, without too much hacking, to replicate a linkdata-like behavior? This means: listen somehow for a change in a known variable, and when it changes call refreshdata?
Thanks,
-naor (r2008a64 xp64)

"Naor Movshovitz" <nmovshov@gmail.com> wrote in message <h1has6$irt$1@fred.mathworks.com>...
> linking+brushing fails when I use it on a scatter plot with color and size data. Try the following:
> >> x=1:10; y=1:10; s=1:10; c=1:10;
> >> sg=scatter(x,y,s,c);
> >> set(sg,'xdatasource','x')
> >> set(sg,'ydatasource','y')
> >> set(sg,'cdatasource','c')
> >> set(sg,'sizedatasource','s')
> >> linkdata
> Try "brushing out" a point. The plot disappears because only 'x' and 'y' were linked to the workspace variables and their dimensions now don't match the color and size vectors. Indeed, the documentation for linkdata explains that it matches X/Y/Z data sources to variables but doesn't mention CData or SizeData one way or the other. Are these really not supported by linkdata? This seems really strange because it severely limits the usefulness of data brushing and linking for no reason - after all color and size data sources CAN be defined and refreshdata CAN be called manually when their associated variables change.
>
> Does anyone know if there is a workaround or if a future release will address this?
> Thanks,
> -naor (R2008a xp64)

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
linkdata Naor Movshovitz 19 Jun, 2009 20:39:04
data linking Naor Movshovitz 19 Jun, 2009 20:39:04
data brushing Naor Movshovitz 19 Jun, 2009 20:39:04
rssFeed for this Thread

Contact us at files@mathworks.com