[scilab-Users] Problem with figure.user_data

Paul Czienskowski paul_c at gmx.de
Wed May 19 13:52:00 CEST 2010


Dear all,

I solved the problem. Instead of assigning

     f.user_data = struct();

I'm now doing it like this

     user_data = struct();
     //assign fields
     set(f, "Userdata", user_data);

Works fine for me.

Cheers, Paul


On 19.05.2010 12:24, Paul Czienskowski wrote:
> 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
>


-- 
Paul Czienskowski
Björnsonstr. 25
12163 Berlin

Tel.: (+49)(0)30/221609359
Handy: (+49)(0)1788378772




More information about the users mailing list