Mercurial > hg > octave-nkf
changeset 15974:53a2fb7b2557 stable
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 | d31a39a0ac77 |
children | a0b313c17a6b bbef6907d766 |
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)