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 >> Графики > 2d_plot > champ properties

champ properties

description of the 2D vector field entity properties

Description

The Champ entity is a leaf of the graphics entities hierarchy. This entity defines the parameters for a 2D vector field.

visible:

This properties contains the visible property value for the entity . It should be "on" or "off" . If "on" the vector field is drawn, If "off" the vector field is not displayed on the screen.

data:

This field defines a tlist data structure of type "champdata" composed of a row and column indices of each element : the x and y grid coordinates are contained respectively in data.xand data.y. The complementary fields named data.fx and data.fy are matrices which describe respectively the x and y component of the vector field at point (x(i),y(j)).

user_data:

This field can be use to store any scilab variable in the champ data structure, and to retrieve it.

line_style:

The line_style property value should be an integer in [1 8]. 1 stands for solid, the other value stands for a selection of dashes (see getlinestyle).

thickness:

This property is a positive real specifying the arrow width in pixels. The displayed width is actually determined by rounding the supplied width to the nearest integer. The only exception is vectorial export where the whole thickness value is considered.

colored:

If this this property value is "on", fields vectors are drawn using a color proportional to the intensity of the field.

arrow_size:

This property is a double specifying the size of the arrow. The value can be positive or negative:

  • arrow_size < 0: the arrow_size is proportional to the average norm of the vectors.

  • arrow_size > 0: the arrow_size is proportional to the windows dimensions.

clip_state:

This field contains the clip_state property value for the champ. It should be :

  • "off" this means that the vector field is not clipped

  • "clipgrf" this means that the vector field is clipped outside the Axes box.

  • "on" this means that the vector field is clipped outside the rectangle given by property clip_box.

clip_box:

This property contains the clip_box property. Its value should be an empty matrix if clip_state is "off" .Other cases the vector [x,y,w,h] (upper-left point width height) defines the portions of the vector field to display, however clip_state property value will be changed.

parent:

This property contains the handle of the parent. The parent of the 2D vector field entity should be of the type "Axes" or "Compound".

Examples

a=get("current_axes");//get the handle of the newly created axes
a.data_bounds=[-10,-10;10,10];
champ(-5:5,-5:5,rand(11,11),rand(11,11))

c=a.children

c.colored="on";
c.thickness=2;
c.arrow_size=-1;
c.data // display the tlist of type "scichampdata"
a.data_bounds=[-5,-5;5,5];

See also

  • set — set properties of some graphic objects or uimenus or uicontrol interactive components
  • get — Retrieve a property value from a graphics entity or an User Interface object.
  • delete — delete a graphic entity and its children.
  • champ — двумерный график векторного поля
  • graphics_entities — описание структур данных графических объектов

History

VersionDescription
5.4.0 line_style value 0 is obsolete, use 1 instead (both are equivalent for SOLID). Using value 0 will produce an error in Scilab 5.4.1.
Report an issue
<< champ1 2d_plot comet >>

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:57 CET 2020