File: rtest_plotoptions.mac

package info (click to toggle)
maxima 5.49.0%2Bdsfg-1
  • links: PTS
  • area: main
  • in suites:
  • size: 128,932 kB
  • sloc: lisp: 437,845; fortran: 14,665; tcl: 10,143; sh: 4,598; makefile: 2,206; ansic: 447; java: 374; 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 (11)
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];