// Edit ticks & marks (labels):
//--------------------------------------
a.x_ticks = tlist(['ticks','locations','labels'],...
[-1.1,-.825,-.55,-.275,0,.275,.55,.827,1.1],...
['-1.1','-.825','-.55','-.275','0','.275','.55',...
'.825','1.1']);
a.y_ticks = tlist(['ticks','locations','labels'],...
[-1.1,-.825,-.55,-.275,0,.275,.55,.827,1.1],...
['-1.1','-.825','-.55','-.275','0','.275','.55',...
'.825','1.1']);
a.labels_font_color=13; // Change label color
a.labels_font_size=2; // Increase label size
// Add & edit legend:
//---------------------------
legend(['sin(x), cos(3x)'; 'sin(1.5x), 0.5*cos(1.5x)'], 4);
leg=a.children(1); // Get legend handle
leg.font_style=2; // Font: Times
leg.font_size=2; // Increase legend font size
leg.font_color=1; // Font color black
leg.background=7; // Yellow legend box fill
Ex 3-6: Lissajous Ex 3-6: Lissajous
figures, script 2 (3/4)figures, script 2 (3/4)
x- and y-axis ticks & marks x- and y-axis ticks & marks
(legends) are added(legends) are added
Axes label font color & size Axes label font color & size
are redefinedare redefined
Note that Ticks and Note that Ticks and
Legends (marks) are Legends (marks) are
children to Axes, similar to children to Axes, similar to
LabelsLabels
A legend is added & editedA legend is added & edited