octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45593] Color problem with patch ()


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #45593] Color problem with patch ()
Date: Tue, 21 Jul 2015 06:34:40 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15

Follow-up Comment #2, bug #45593 (project octave):

The following code is what complains and the pm3d style of gnuplot is used:


               if (numel (xcol) > 3)
                 error ("__go_draw_axes__: gnuplot (as of v4.2) only supports
3-D filled triangular patches");
               else
                 if (isnan (data_3d_idx))
                   data_idx++;
                   data_3d_idx = data_idx;
                   is_image_data(data_idx) = false;
                   parametric(data_idx) = false;
                   have_cdata(data_idx) = true;
                   have_3d_patch(data_idx) = true;
                   withclause{data_3d_idx} = sprintf ("with pm3d");
                   usingclause{data_3d_idx} =  "using 1:2:3:4";
                   data{data_3d_idx} = [];
                 endif
                 local_idx = data_3d_idx;
                 ccdat = NaN;
               endif
 

If one were to write the above to use triangulation of polygons, it would be
possible to use pm3d.  However, a more straightforward approach might be to
use gnuplot's polygon object.  As an example:


set object 1 polygon from 2,2 to 3,2 to 3,3 to 2,3 to 2,2
set object 1 fc rgb "cyan" fillstyle solid 1.0 border lt -2
set xrange [0:10]
set yrange [0:10]
set zrange [0:10]
splot 1/0



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45593>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]