Interact with Scilab in the Notebook. All commands are interpreted by Scilab. Since this is a MetaKernel, a standard set of magics are available. Help on commands is available using the %help
magic or using ?
with a command.
t = linspace(0,6*%pi,100);
plot(sin(t))
plot(cos(t), 'r')
b = 10*cos(t)+30; plot(b);
a = [1,2,3]
a = 1. 2. 3.
b = a + 3;
disp(b)
4. 5. 6.
%lsmagic
Available line magics: %activity %cd %connect_info %conversation %dot %download %edit %get %help %html %include %install %install_magic %javascript %jigsaw %kernel %kx %latex %load %ls %lsmagic %macro %magic %matplotlib %parallel %plot %pmap %px %python %reload_magics %restart %run %scheme %set Available cell magics: %%activity %%brain %%conversation %%debug %%dot %%file %%help %%html %%javascript %%kx %%latex %%macro %%pipe %%processing %%px %%python %%scheme %%show %%time %%tutor
You can configure specific plot settings using the %plot
magic. For example, to enable or disable the antialiasing.
%plot --help
Usage: %plot [options] backend - configure plotting for the session. This line magic will configure the plot settings for this language. Examples: %plot qt --format=png %plot inline -w 640 Note: not all languages may support the %plot magic, and not all options may be supported. Options: ------- -a --antialiasing To disable antialiasing set it to False -h --height Plot height in pixels -w --width Plot width in pixels -r --resolution Resolution in pixels per inch -b --backend Backend selection [default: inline] -f --format Plot format (png, svg or jpg). -s --size Pixel size of plots, "width,height" Options: --help show this help message and exit -a ANTIALIASING, --antialiasing=ANTIALIASING To disable antialiasing set it to False -h HEIGHT, --height=HEIGHT Plot height in pixels -w WIDTH, --width=WIDTH Plot width in pixels -r RESOLUTION, --resolution=RESOLUTION Resolution in pixels per inch -b BACKEND, --backend=BACKEND Backend selection -f FORMAT, --format=FORMAT Plot format (png, svg or jpg). -s SIZE, --size=SIZE Pixel size of plots, "width,height"