Mercurial > hg > octave-nkf
changeset 16161:b672afbb7c3c
Increase gnuplot linestyle dash lengths.
The "aqua" and "postscript" terminals have short dash lengths which make the
"--" and "_." line types difficult to distinguish.
* scripts/plot/__gnuplot_drawnow__.m: Set the "aqua" dashlength to 1 and the
"postscript" dashlength to 2.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 28 Feb 2013 12:01:29 -0500 |
parents | f279fd604c7e |
children | 23af74103b2c |
files | scripts/plot/__gnuplot_drawnow__.m |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/__gnuplot_drawnow__.m +++ b/scripts/plot/__gnuplot_drawnow__.m @@ -296,13 +296,18 @@ if (! __gnuplot_has_feature__ ("has_termoption_dashed")) ## If "set termoption dashed" isn't available add "dashed" option ## to the "set terminal ..." command, if it is supported. - if (any (strcmpi (term, {"aqua", "cgm", "eepic", "emf", "epslatex", \ - "fig", "pcl5", "mp", "next", "openstep", "pdf", \ - "pdfcairo", "pngcairo", "postscript", \ - "pslatex", "pstext", "svg", "tgif", "x11"}))) + if (any (strcmp (term, {"aqua", "cgm", "eepic", "emf", "epslatex", \ + "fig", "pcl5", "mp", "next", "openstep", "pdf", \ + "pdfcairo", "pngcairo", "postscript", \ + "pslatex", "pstext", "svg", "tgif", "x11"}))) term_str = [term_str " dashed"]; endif end + if (any (strcmp (term, {"aqua", "wxt"}))) + term_str = [term_str, " ", "dashlength 1"]; + elseif (any (strcmp (term, {"epslatex", "postscript", "pslatex"}))) + term_str = [term_str, " ", "dashlength 2"]; + endif ## Work around the gnuplot feature of growing the x11 window and ## flickering window (x11, windows, & wxt) when the mouse and