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

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

[Octave-bug-tracker] [bug #34523] surf() with gnuplot does not handle Fa


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #34523] surf() with gnuplot does not handle FaceColor correctly
Date: Sun, 14 Jun 2015 20:59:39 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15

Follow-up Comment #4, bug #34523 (project octave):

I've attached a changeset fixing the surface color setting.  It also adds
linestyle control for the lines of the surface.  Please give it a try.  Keep
in mind there are some limitations with hidden 3d behavior.  The line in your
example is not going to be properly segmented and displayed.  You may need to
do that manually.  Here is some sample script for you to experiment with:


graphics_toolkit("gnuplot");
figure();

[x, y] = meshgrid (-2:.2:2); 
t = linspace (-2, 2, 10); 
z = (1+x.*y).*(x+y); 
h = surf (x, y, z, "FaceColor", [.3 .5 .3], "EdgeColor", [0 0 0]);
hold on 
plot3 (t, t, t)

set(h, 'edgecolor', 'r')
set(h, 'linewidth', 3)
set(h, 'linestyle', ':')
set(h, 'facecolor', 'y')


(file #34218)
    _______________________________________________________

Additional Item Attachment:

File name: octave-gnuplot_surf_facecolor-djs2015jun14.patch Size:10 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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