[Scilab-users] Understanding the graphic hierarchy. Copy a figure
Philipp Mühlmann
p.muehlmann at gmail.com
Mon Nov 21 15:30:18 CET 2016
beside of not beeing sure if you want to have:
ca2_ = gca();
instead of
ca2=gca();
ca2_.visible = "on" or "off"; // shows or hides the plot in figure1
ca2_.parent.figure_id // = 1;
however:
ca2_.parent.figure_id = 2; // changes both figure ID's.
Why is that?
I mean: Why does "ca1" also get's the figure_id from "ca2" ?
2016-11-21 14:32 GMT+01:00 Jens Simon Strom <j.s.strom at hslmg.de>:
> 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 childrenca2_=ca1//axes with one compound childca2_c=ca2_.children//compound with one polyline childca2_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
>
>
--
In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.
There we have the salad.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20161121/3f209523/attachment.htm>
More information about the users
mailing list