Octave graphic add-on, Octplot



česky

1.11 More than 1 graph in one figure - function subplot



Function file: h = subplot(M,N,P)


If we want to place to one figure more than one drawings, we can use function subplot. This function hand out figure according to matrix MxN. Parameter P is place, where the next drawings will be ploted. It returns handle to variable h.

Example:
x=-2.9:0.2:2.9;
subplot(1,2,1)
bar(x,exp(-x.*x))
subplot(1,2,2)
stem(x,exp(-x.*x),"fill")



<<< 1.10 Addition in graphs - functions colorbar, grid, title 1.12 Set and get >>>

© 2008 David Prokop