Mercurial > hg > octave-nkf
diff scripts/plot/private/__errplot__.m @ 10575:3eba2cc7cbda
Allow matlab style linestyles in errorbar plots
author | David Bateman <dbateman@free.fr> |
---|---|
date | Mon, 26 Apr 2010 22:26:17 +0200 |
parents | d8894a2d0a03 |
children | 384c514bbae2 |
line wrap: on
line diff
--- a/scripts/plot/private/__errplot__.m +++ b/scripts/plot/private/__errplot__.m @@ -53,7 +53,7 @@ elseif (strcmp (fmt.linestyle, "#~>")) ifmt = "boxxy"; else - print_usage (); + ifmt = "matlab"; endif hg = hggroup ("parent", p); @@ -67,6 +67,13 @@ hl = __line__ (hg, "color", fmt.color); endif + if (index (ifmt, "matlab")) + ifmt = "yerr"; + if (! strcmp (fmt.linestyle, "none")) + set (hl, "linestyle", fmt.linestyle); + endif + endif + ## FIXME -- note the code below adds the errorbar data directly as ## ldata, etc properties of the line objects, as gnuplot can handle ## this. Matlab has the errorbar part of the plot as a special line