Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Русский

Change language to:
English - Français - 日本語 - Português -

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Справка Scilab >> Графики > handle > copy

copy

copy a graphics entity.

Syntax

copy(h)
copy(h,h_axes)
h_copy=copy(h)

Arguments

h

a handle, the handle of the entity to copy.

h_axes

a handle, the handle of the parent entity for the destination. It should be an axes entity.

h_copy

a handle, the handle on the entity copied.

Description

This routine can be used to make a copy of a graphics entity with all its properties' values, it returns the handle on this new entity. If h_axes omitted, graphics entity is cloned and it's copied in the same parent axes entity.

Examples

subplot(211);a1=gca();
plot2d()
e=gce();
p1=e.children(1);
p2=copy(p1);p2.data(:,2)=p2.data(:,2)-0.5;
subplot(212);a2=gca();
a2.data_bounds=a1.data_bounds;
copy(p1,a2);

See also

  • get — Retrieve a property value from a graphics entity or an User Interface object.
  • set — set properties of some graphic objects or uimenus or uicontrol interactive components
  • delete — delete a graphic entity and its children.
  • move — move, translate, a graphic entity and its children.
  • graphics_entities — описание структур данных графических объектов
Report an issue
<< handle handle delete >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 25 08:54:58 CET 2020