Mercurial > hg > octave-lyh
changeset 6843:9adfed86501f
[project @ 2007-08-29 20:39:12 by jwe]
author | jwe |
---|---|
date | Wed, 29 Aug 2007 20:39:12 +0000 |
parents | 8d3426c59a88 |
children | 9ac351b05b51 |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m scripts/plot/drawnow.m |
diffstat | 3 files changed, 21 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2007-08-29 Peter A. Gustafson <petegus@umich.edu> + + * plot/__go_draw_axes__.m: Disable linetype in do_linestyle_command. + 2007-08-24 David Bateman <dbateman@free.fr> * plot/__go_draw_axes__.m: Treat text color property.
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -904,10 +904,21 @@ otherwise lt = ""; endswitch - if (! isempty (lt)) - fprintf (plot_stream, " linetype %s", lt); - found_style = true; - endif + + ## FIXME -- linetype is currently broken, since it disables the + ## gnuplot default dashed and solid linestyles with the only + ## benefit of being able to specify '--' and get a single sized + ## dashed line of identical dash pattern for all called this way. + ## All dash patterns are a subset of "with lines" and none of the + ## lt specifications will correctly propagate into the x11 terminal + ## or the print command. Therefore, it is currently disabled in + ## order to allow print (..., "-dashed") etc. to work correctly. + + ## if (! isempty (lt)) + ## fprintf (plot_stream, " linetype %s", lt); + ## found_style = true; + ## endif + else lt = ""; endif
--- a/scripts/plot/drawnow.m +++ b/scripts/plot/drawnow.m @@ -103,8 +103,8 @@ endif if (nargin == 3) - fprintf (plot_stream, "set terminal %s\n;", term); - fprintf (plot_stream, "set output \"%s\"\n;", file); + fprintf (plot_stream, "set terminal %s;\n", term); + fprintf (plot_stream, "set output \"%s\";\n", file); else ## Guess the terminal type.