[scilab-Users] Adding data points to plot
Yann Collette
yann.collette at scilab.org
Wed Oct 14 11:46:41 CEST 2009
Andrea Sosso a écrit :
> I wasn't able to find a way to add new data point to an already
> generated plot.
> Direct modification of the matrix in the polyline child "data" seem
> to have the cancellation of the plot as only effect.
An example:
X = 1:100;
plot(X,X);
h = gce();
h.children.data = [h.children.data; 101 50];
a = gca();
a.data_bounds = [1 1; 101 100];
YC
--
-----------------------------
Yann COLLETTE
Software Development Engineer
-----------------------------
The Scilab Consortium
Digiteo Foundation
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay France
Phone: +33.1.39.63.57.82
More information about the users
mailing list