Octave graphic add-on, Octplot



česky

1.12 Set and get



Function file: set(H,P,V,[P,V],...)


This function set to a graphics objects H(handle), property P, value V. It can be also mutiple couples P,V.

Examples:
x=1:10;
plot(x,"b-.s")
set(gcf,"Color","g")
set(gca,"XLim",[0 11])
set(gca,"YLim",[0 11])



Příklad s rozdělením figure:
x = -2.9:0.2:2.9;
subplot(2,2,1);
bar(x,exp(-x.*x),[0.2 0.2 1]);
set(gca,'XLim',[-2.5 2.5]);
subplot(2,2,2);
stem(x,exp(-x.*x),"fill",'m');
set(gca,'XLim',[-2.5 2.5]);
subplot(2,2,3);
plot(x,exp(-x.*x),"r-");
set(gca,'XLim',[-2.5 2.5]);
subplot(2,2,4);
x = 1:5;
pie(x);
set(gcf,'Color','w');






Function file: V = get(H,P)


This function returns to variable V value of property P, graphuics objects H. If this function called without parameter P, so it returns all properties graphics object H.




<<< 1.11 More than 1 graph in one figure - function subplot 2. New function for Octplot >>>

© 2008 David Prokop