[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34523] linestyle not always used for 3D plots
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #34523] linestyle not always used for 3D plots (gnuplot) |
Date: |
Mon, 29 Feb 2016 03:36:27 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Update of bug #34523 (project octave):
Summary: surf() with gnuplot does not handle FaceColor
correctly => linestyle not always used for 3D plots (gnuplot)
_______________________________________________________
Follow-up Comment #23:
I think this is a good start. I applied the patch here
(http://hg.savannah.gnu.org/hgweb/octave/rev/21c3641422e0).
The Summary of this bug, FaceColor for surf with gnuplot, has been fixed.
However, there are now some issues with linestyle for 3-D plots.
Using the test code:
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')
With gnuplot 5.0.1, the linestyles "--", "-." don't seem to work.
With gnuplot 4.6.6, all linestyles are rendered as "-" (solid). If I try to
turn off lines completely with "set (h, 'linestyle', 'none'" I get a bunch of
errors.
splot "-" binary format='%float64' record=21x21 using ($1):($2):($3):($4)
title "" with pm3d linecolor rgb variable , "-" binary format='%float64'
record=21x21 using ($1):($2):($3) title "" with linetype 9 , "-" binary
format='%float64' record=10 using ($1):($2):($3) title "" with lines linetype
11 ;
octave:15>
^
line 0: unrecognized plot type
Note that the linestyles work correctly for a 2D plot such as "plot (1:10,
'o:')"
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34523>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/