Mercurial > hg > octave-terminal
changeset 14848:4563d9935853
maint: Allow scatter demo to be run under Octave or Matlab for plot comparisons
* __scatter__.m: Use columns() rather than size(c,2) for readability.
* scatter.m: Use single quotes in demo code so that it will run under Matlab.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 08 Jul 2012 11:43:30 -0700 |
parents | bcf86cc2f1ee |
children | f6d3d5b0bd42 |
files | scripts/plot/private/__scatter__.m scripts/plot/scatter.m |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/private/__scatter__.m +++ b/scripts/plot/private/__scatter__.m @@ -268,7 +268,7 @@ ## Does gnuplot only support triangles with different vertex colors ? ## TODO - Verify gnuplot can only support one color. If RGB triplets ## can be assigned to each vertex, then fix __go_draw_axe__.m - gnuplot_hack = (numel (x) > 1 && size(c, 2) == 3 + gnuplot_hack = (numel (x) > 1 && columns (c) == 3 && strcmp (toolkit, "gnuplot")); if (ischar (c) || ! isflat || gnuplot_hack) if (filled)