[Scilab-users] ?==?utf-8?q? Put an image as the background of an axis

Samuel Gougeon sgougeon at free.fr
Wed Feb 10 20:11:33 CET 2016


Le 10/02/2016 13:37, Antoine Monmayrant a écrit :
> Le 02/10/2016 10:52 AM, Jan Åge Langeland a écrit :
>> ..../...
>> Thank you, that works fine, but I find that I have more control over 
>> the image with:
>>
>> im2=SCI + "/modules/demo_tools/images/logo_scilab.png";
>> xstring(0.4,0.4,"$\scalebox{.5}{\includegraphics{"+im2+"}}$");
>
> Yes, you are right, it's more convenient.
> The only added bonus with the uicontrol is that you have access to a 
> callback function to react to the user's action.
Not even: as for the text style (http://bugzilla.scilab.org/7111), the 
callback is not implemented for the image style. After your example, add:
h.callback_type=0;
h.callback = "disp(""Hello"")"
// Then click on the image => "Hello" should be displayed in the console 
for each click, but nothing is displayed.
// You may change the instructions => nothing is never done.

Samuel




More information about the users mailing list