Mercurial > octave
comparison scripts/plot/util/private/__gnuplot_draw_axes__.m @ 22239:f7b70f3a8fc1
For gnuplot toolkit patch case, broadcast single color values (bug #48626).
* __gnuplot_draw_axes__.m: For the case of a "patch" object, if the color
value is only one-dimensional, broadcast its value to the same dimension
as the z-coordinate vector rather than use the z values.
author | Daniel J Sebald <daniel.sebald@ieee.org> |
---|---|
date | Sat, 30 Jul 2016 10:38:09 -0500 |
parents | 7a70004cae61 |
children | 1ddb53b6ad30 |
comparison
equal
deleted
inserted
replaced
22238:dfb49a84c0e4 | 22239:f7b70f3a8fc1 |
---|---|
801 | 801 |
802 if (nd == 3 && numel (xcol) == 3) | 802 if (nd == 3 && numel (xcol) == 3) |
803 if (isnan (ccdat)) | 803 if (isnan (ccdat)) |
804 ccdat = (rows (cmap) + rows (addedcmap) + 1) * ones(3, 1); | 804 ccdat = (rows (cmap) + rows (addedcmap) + 1) * ones(3, 1); |
805 addedcmap = [addedcmap; reshape(color, 1, 3)]; | 805 addedcmap = [addedcmap; reshape(color, 1, 3)]; |
806 elseif (numel (ccdat) <= 1) | 806 elseif (numel (ccdat) == 1) |
807 ccdat = ccdat * ones (size (zcol)); | |
808 elseif (numel (ccdat) < 1) | |
807 ccdat = zcol; | 809 ccdat = zcol; |
808 endif | 810 endif |
809 data{data_3d_idx} = [data{data_3d_idx}, ... | 811 data{data_3d_idx} = [data{data_3d_idx}, ... |
810 [[xcol; xcol(end)], [ycol; ycol(end)], ... | 812 [[xcol; xcol(end)], [ycol; ycol(end)], ... |
811 [zcol; zcol(end)], [ccdat; ccdat(end)]]']; | 813 [zcol; zcol(end)], [ccdat; ccdat(end)]]']; |