description of the graphics figure entity properties
The figure entity is the top level of the graphics entities hierarchy. This entity contain a number of properties designed to control many aspects of displaying Scilab graphics objects. These properties fall into two categories. Properties that contain information about figure itself and others related to set default values for the children creation.
Figure properties: | |||
---|---|---|---|
: :viewport: Postion of the visible part of graphics in the panner. : :figure_name: This field contains the name of the figure. This name
: |
:
Children’s default values: | |||
---|---|---|---|
: |
:
:
`lines`_(0) // disables vertical paging
//Example 1
f=`get`_("current_figure") //get the handle of the current figure :
//if none exists, create a figure and return the corresponding handle
f.figure_position
f.figure_size=[200,200]
f.background=2
f.children // man can see that an Axes entity already exists
`delete`_(f);
f=`gcf`_(); // macro shortcut <=> f=get("current_figure")
f.pixmap = "on" // set pixmap status to on
`plot2d`_() // nothing happens on the screen...
`show_pixmap`_() // ...display the pixmap on screen
//Example 2 : default_figure settings
df=`get`_("default_figure") // get the default values (shortcut is gdf() )
// Let's change the defaults...
df.color_map=`hotcolormap`_(128)
df.background= 110 // set background toa kind of yellow (Note that we
// are using a color index inside the color_map previously redefined)
`scf`_(122); // creates new figure number 122 with the new default
`plot2d`_()
`scf`_(214);
t=-%pi:0.3:%pi;
`plot3d`_(t,t,`sin`_(t)'*`cos`_(t),35,45,'X@Y@Z',[15,2,4]);
Version Description 5.4.0 New resizefcn & closerequestfcn properties introduced. .. _set: set.html .. _lines: lines.html .. _get: get.html .. _pixel drawing mode reference page: pixel_drawing_mode.html .. _axes_properties: axes_properties.html .. _gdf: gdf.html .. _hotcolormap: hotcolormap.html .. _event handler functions: eventhandlerfunctions.html .. _clear_pixmap: clear_pixmap.html .. _scf: scf.html .. _show_pixmap: show_pixmap.html .. _gda: gda.html .. _gca: gca.html .. _gcf: gcf.html