Mercurial > octave
changeset 21811:25c8d554af32
maint: Periodic merge of stable to default.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 02 Jun 2016 14:59:13 -0700 |
parents | b2f1f4cf1389 (current diff) 1b5285c20e0e (diff) |
children | 9c3a3d252e80 |
files | scripts/plot/util/private/__gnuplot_draw_axes__.m |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m Mon May 30 02:42:43 2016 -0500 +++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m Thu Jun 02 14:59:13 2016 -0700 @@ -1590,6 +1590,10 @@ cmap = [cmap; addedcmap]; cmap_sz += rows (addedcmap); + if (cmap_sz == 1) # bug #48083, illegal one-element colormap + cmap = [cmap; cmap]; + cmap_sz = 2; + endif if (length (cmap) > 0) fprintf (plot_stream, "set palette positive color model RGB maxcolors %i;\n",