Mercurial > octave
changeset 21368:e789571034bc
Allow linestyle "none" for fill and patch objects (bug #38584)
* __gnuplot_draw_axes__.m:
If tmpwith is empty, only generate "with" clause if style is not empty.
In all similar sprintf constructs, style is non-empty.
author | Lachlan Andrew <lachlanbis@gmail.com> |
---|---|
date | Sat, 27 Feb 2016 15:27:52 +1100 |
parents | 0035733e4b3a |
children | 105224df2330 |
files | scripts/plot/util/private/__gnuplot_draw_axes__.m |
diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m Fri Feb 26 21:30:51 2016 -0800 +++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m Sat Feb 27 15:27:52 2016 +1100 @@ -1042,12 +1042,16 @@ endif endif - if (isempty (tmpwith)) - withclause{data_idx} = sprintf ("with %s %s %s %s %s", - style, lw, pt, lt, - colorspec); + if (! isempty (tmpwith)) + withclause{data_idx} = tmpwith{1}; else - withclause{data_idx} = tmpwith{1}; + if (! isempty (style)) + withclause{data_idx} = sprintf ("with %s %s %s %s %s", + style, lw, pt, lt, + colorspec); + else + withclause{data_idx} = ""; + endif endif if (nd == 3) if (ischar (color))