Mercurial > octave
comparison scripts/plot/util/private/__gnuplot_draw_axes__.m @ 21426:0ad3fe00d6f9
Consistent linestyles for gnuplot terminals (Bug # 46886).
__gnuplot_draw_axes__.m (gnuplot_linetype): When supported use the gnuplot
dashtype feature to specify Octave's linestyles.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Tue, 08 Mar 2016 21:31:53 -0500 |
parents | 21c3641422e0 |
children | 067662ac6bfe |
comparison
equal
deleted
inserted
replaced
21425:d6c6cf748fc9 | 21426:0ad3fe00d6f9 |
---|---|
1941 if (isfield (obj, "linestyle")) | 1941 if (isfield (obj, "linestyle")) |
1942 if (__gnuplot_has_feature__ ("dashtype")) | 1942 if (__gnuplot_has_feature__ ("dashtype")) |
1943 opt = "dashtype"; | 1943 opt = "dashtype"; |
1944 switch (obj.linestyle) | 1944 switch (obj.linestyle) |
1945 case "-" | 1945 case "-" |
1946 lt = "1"; | 1946 lt = "solid"; |
1947 case "--" | 1947 case "--" |
1948 lt = "2"; | 1948 lt = "'_ '"; |
1949 case ":" | 1949 case ":" |
1950 lt = "3"; | 1950 lt = "'. '"; |
1951 case "-." | 1951 case "-." |
1952 lt = "4"; | 1952 lt = "'-. '"; |
1953 case "none" | 1953 case "none" |
1954 lt = ""; | 1954 lt = ""; |
1955 otherwise | 1955 otherwise |
1956 lt = ""; | 1956 lt = ""; |
1957 endswitch | 1957 endswitch |