[Scilab-users] Understanding the graphic hierarchy. Copy a figure

sgougeon at free.fr sgougeon at free.fr
Mon Nov 21 15:21:55 CET 2016


Hello Jens,

The proper way to copy graphics is to use copy(). Example:

f = scf();
plot2d()
f.tag = "plot2d() example";
fc = copy(f); // Creates (and render) the copy
fc.tag=="plot2d() example"

HTH
Samuel Gougeon

----- Mail original -----
De: "Jens Simon Strom"
À: users at lists.scilab.org
Envoyé: Lundi 21 Novembre 2016 14:32:42
Objet: [Scilab-users] Understanding the graphic hierarchy. Copy a figure


Hallo,
The script below is to make f2 a copy of f1. However f2 is empty although its axes, compound, and polyline data look as expected. 
(Version 5.5.2) xdel ( ) ; xdel ( ) ; f1 = figure ( 1 ) ; plot ( 1 : 3 , 1 : 3 ) ca1 = gca ( ) //axes with one compound child
// f2 = figure ( 2 ) ; ca2 = gca ( ) //axes without children ca2_ = ca1 //axes with one compound child ca2_c = ca2_ . children //compound with one polyline child ca2_cc = ca2_c . children //polyline, same as in ca1 How can the polyline be made visible? 

Regards 
Jens 










_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



More information about the users mailing list