Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.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.
However, this page did not exist in the previous stable version.

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

relocate_handle

Move handles inside the graphic hierarchy. This function is obsolete.

Calling Sequence

relocate_handle( movedHandles, parent )

Arguments

movedHandles

Vector of relocated handles.

parent

New parent of the handles.

Description

The relocate_handle function allows to move handles from their current locations in the graphical hierarchy to another. All the moved entities are relocated under the same parent handle specified with the parent parameter.

Since not every handles are compatible with each others, some restrictions exist when relocationg handles. For examples, it is not allowed to move an axes handle under a polyline. More information about compatibility can be found in the graphics_entities page.

This routine is particularly useful to move an object from an axes entity to an other or to move axes from figures handles.

Examples

x = 0:10 ;

// plot a first polyline
plot(x,x^2) ;
axes1 = gca() ;
poly1 = gce() ;

// plot a second in an other window
scf() ;
plot( x,x )  ;
axes2 = gca() ;
poly2 = gce()  ;
poly2bis = copy( poly2 ) ; // make a copy of the polyline

// put both polyline in the same window
relocate_handle( poly2bis, axes1 ) ;

See Also

  • graphics_entities — описание структур данных графических объектов
  • copy — copy a graphics entity.
  • delete — delete a graphic entity and its children.
  • swap_handles — Permute two handles in the graphic Hierarchy.

History

ВерсияОписание
5.5.0 Function tagged as obsolete. Will be removed in 5.5.1.
Report an issue
<< is_handle_valid handle swap_handles >>

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:
Fri Apr 11 14:19:40 CEST 2014