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


xcosPal

Instantiate a new Xcos palette on Scilab.

Syntax

pal = xcosPal();
pal = xcosPal(name);
pal = xcosPal(scs_m);
pal = xcosPal([], scs_m);
pal = xcosPal(name, scs_m);

Arguments

name:

string; the optional palette name

scs_m:

diagram mlist; the optional source diagram

pal:

palette tlist; the palette instance

Description

Instantiate a new palette diagram.

The optional name argument can be used to set a name to the palette. The optional scs_m argument can be used to import diagrams as palettes.

Examples

loadXcosLibs();

// from scratch
pal = xcosPal("My sum palette");
pal = xcosPalAddBlock(pal, "SUM_f");
pal = xcosPalAddBlock(pal, "BIGSOM_f");
xcosPalAdd(pal);

// from an old palette
exec(SCI + "/modules/scicos/palettes/Integer.cosf", -1);
pal = xcosPal(scs_m);
xcosPalAdd(pal);

See also

  • xcosPal — Instantiate a new Xcos palette on Scilab.
  • xcosPalAddBlock — Add a block to a Scilab/Xcos palette instance. Some optional properties can be added to customize the palette icon and the style of the block.
Report an issue
<< xcosDiagramToScilab Scilab Utilities Functions xcosPalAdd >>

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:
Mon Jun 17 17:55:12 CEST 2024