[scilab-Users] Problem with figure.user_data
Collette yann
yann.collette at scilab.org
Wed May 19 10:45:40 CEST 2010
Hello,
I have tried your example.
The problem is that f.user_data is no more a figure handle after the
struct creation:
f.user_data = struct();
disp(typeof(f)) --> st
I have tried to create a temporary struct and then put it into
f.user_data without success:
tmp = struct();
tmp.slice = 1;
f.user_data = tmp;
disp(typeof(f)) -> st
So, fill a bug report ....
YC
Le 19/05/2010 10:31, Paul Czienskowski a écrit :
> Dear all,
>
> I just started using Scilab to program an EEG toolbox for my diploma
> thesis. When trying to display some MRI-Data I encountered a problem:
> I saved data about the MRI volume and which part to render in the
> figure.user_data property in my Plot function like
>
> f.user_data = struct();
> f.user_data.slices = slices;
> f.user_data.vol = vol;
>
> Now I'm trying to use this data in the figures event-handler, calling
>
> fig = get_figure_handle(win);
>
> but fig.user_data is an empty cont now. What am I doing wrong? Ain't
> user_data supposed to be used for such reason?
>
> Thanks in advance,
>
> Paul Czienskowski
>
>
More information about the users
mailing list