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

Jan Åge Langeland j-lan at online.no
Wed Feb 10 10:52:13 CET 2016



On 10.02.2016 09:19, Antoine Monmayrant wrote:
> f = gcf();
> imageWidth = 181;
> imageHeight = 144;
> f.axes_size=[imageWidth,imageHeight];
>
> //here image parent can be set to something else than the figure f (like a frame, ...)
> h = uicontrol("Parent", f, ..
> "Style", "image", ..
> "Position", [0 0 imageWidth imageHeight], ..
> "String", SCI + "/modules/demo_tools/images/logo_scilab.png");
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+"}}$");

Jan Å



More information about the users mailing list