File: rtest_plotoptions.mac

package info (click to toggle)
maxima 5.47.0-9
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 193,104 kB
  • sloc: lisp: 434,678; fortran: 14,665; tcl: 10,990; sh: 4,577; makefile: 2,763; ansic: 447; java: 328; python: 262; perl: 201; xml: 60; awk: 28; sed: 15; javascript: 2
file content (23 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* mailing list 2016-01-08: "set_plot_option question" */

(set_plot_option([style,[points,3],[lines,2]]),get_plot_option(style));
[style, [points, 3], [lines, 2]]$

/*
 * Bug #3186, get_plot_option cannot get the last pair of *plot-options*
 *
 * Also, make sure get_plot_option returns a copy of *plot-options* so
 * changes to the result of get_plot_option don't change
 * *plot-options* unexpecgedly.
 */
get_plot_option('gnuplot_term);
[gnuplot_term, default];

c:get_plot_option('color);
[color, blue, red, green, magenta, black, cyan];

c[2]:'purple;
purple;

get_plot_option('color);
[color, blue, red, green, magenta, black, cyan];