![]() |
|
Navigation |
Synopsis Markup of code that generates a figure.
Syntax
Description With figure markup it is possible to execute visualizations and to include their output in the text.
FileName is the name of the file to which the visualization will be saved.
It can later be inserted as Image.
Optionally, Width and Height can be given that define the size of the resulting figure.
By default, the minimal size of the figue is used.
Before executing the Rascal code, the following two imports are added automatically: import vis::Figure; import vis::Render;
Examples The input:
<figure fig1.png> render(box(fillColor("red"))); </figure>
will save a red box in file fig1.png and also produce the listing:
render(box(fillColor("red")));Later this file can be included as image using:  with as result:
![]()
Pitfalls
![]() |