Mercurial > hg > octave-nkf
comparison scripts/plot/__gnuplot_drawnow__.m @ 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 (2013-02-28) |
parents | 3cce6b4e0f7c |
children | c3c1ebfaa7dc |
comparison
equal
deleted
inserted
replaced
16160:f279fd604c7e | 16161:b672afbb7c3c |
---|---|
294 endif | 294 endif |
295 endif | 295 endif |
296 if (! __gnuplot_has_feature__ ("has_termoption_dashed")) | 296 if (! __gnuplot_has_feature__ ("has_termoption_dashed")) |
297 ## If "set termoption dashed" isn't available add "dashed" option | 297 ## If "set termoption dashed" isn't available add "dashed" option |
298 ## to the "set terminal ..." command, if it is supported. | 298 ## to the "set terminal ..." command, if it is supported. |
299 if (any (strcmpi (term, {"aqua", "cgm", "eepic", "emf", "epslatex", \ | 299 if (any (strcmp (term, {"aqua", "cgm", "eepic", "emf", "epslatex", \ |
300 "fig", "pcl5", "mp", "next", "openstep", "pdf", \ | 300 "fig", "pcl5", "mp", "next", "openstep", "pdf", \ |
301 "pdfcairo", "pngcairo", "postscript", \ | 301 "pdfcairo", "pngcairo", "postscript", \ |
302 "pslatex", "pstext", "svg", "tgif", "x11"}))) | 302 "pslatex", "pstext", "svg", "tgif", "x11"}))) |
303 term_str = [term_str " dashed"]; | 303 term_str = [term_str " dashed"]; |
304 endif | 304 endif |
305 end | 305 end |
306 if (any (strcmp (term, {"aqua", "wxt"}))) | |
307 term_str = [term_str, " ", "dashlength 1"]; | |
308 elseif (any (strcmp (term, {"epslatex", "postscript", "pslatex"}))) | |
309 term_str = [term_str, " ", "dashlength 2"]; | |
310 endif | |
306 | 311 |
307 ## Work around the gnuplot feature of growing the x11 window and | 312 ## Work around the gnuplot feature of growing the x11 window and |
308 ## flickering window (x11, windows, & wxt) when the mouse and | 313 ## flickering window (x11, windows, & wxt) when the mouse and |
309 ## multiplot are set in gnuplot. | 314 ## multiplot are set in gnuplot. |
310 fputs (plot_stream, "unset multiplot;\n"); | 315 fputs (plot_stream, "unset multiplot;\n"); |