1
在圖的列表中的scilab中不顯示設置背景圖像的選項。我會很感激一個已經這樣做的人,請指導我這樣做。如何在使用SCILAB的圖形中放置背景圖像?
在圖的列表中的scilab中不顯示設置背景圖像的選項。我會很感激一個已經這樣做的人,請指導我這樣做。如何在使用SCILAB的圖形中放置背景圖像?
我不知道「內置」的方式來做到這一點,但您可以安裝圖像處理工具箱。之後,您可以閱讀,處理和顯示圖像。如果你在圖像上繪製了一些東西,它就變成了背景圖像:)
global IPD_PATH;
RGB=ReadImage(IPD_PATH+"demos\teaset.png");
//you can also call it with absolute path e.g.: "d:\pics\mypic.jpg"
scf(0);
ShowColorImage(RGB,"Color Image in the background");
//to see these axes set them visible (turned off by default in ShowColorImage)
//c=gca(); c.axes_visible=["on","on","off"];
a=newaxes(); //to use new axes, otherwise your axes go from 0 to the picture size in pixels
a.filled="off"; //to make it transparent
X=1:0.1:10; //some arbitrary data to plot
plot2d(X,sin(X));
//since you dont know the index of the red colour in the current RGB color map, it's easier to do like this:
e=gce(); e.children.foreground=color("red");
plot2d(X,cos(X));
e=gce(); e.children.foreground=color("blue");