|
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)
|