[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to smooth and fill 2dfunctions in a 3d plot
From: |
Angelica |
Subject: |
How to smooth and fill 2dfunctions in a 3d plot |
Date: |
Tue, 2 May 2017 13:52:56 -0700 (PDT) |
Hi everyone!
I'm new in Octave! I've already tried with different plots and languages but
I still cannot smooth the curves or "fill" them with a trasparent colour, so
that it could be clearer.
Please HELP if you can!
I've attached the plot I've got,
<http://octave.1599824.n4.nabble.com/file/n4683145/Schermata_2017-05-02_alle_22.png>
and here is the script:
load pos_epscost_senzalam_indecr
load pos_epscost_senzalam_indecr_E1
E1=pos_epscost_senzalam_indecr_E1(1:7,1)
zero=pos_epscost_senzalam_indecr_E1(1:7,2)
%// Define the x values
x = (0:1/6:1).'
xMat = repmat(x, 1, 7) %// For plot3
%// Define y values
y = 0.1:0.1:0.7
yMat = repmat(y, numel(x), 1) %//For plot3
%// Define z values
z1 = pos_epscost_senzalam_indecr(1 : 7,3)
z2 = pos_epscost_senzalam_indecr(8 : 14,3)
z3 = pos_epscost_senzalam_indecr(15 : 21,3)
z4 = pos_epscost_senzalam_indecr(22 : 28,3)
z5 = pos_epscost_senzalam_indecr(29 : 35,3)
z6 = pos_epscost_senzalam_indecr(36 : 42,3)
z7 = pos_epscost_senzalam_indecr(43 : 49,3)
zMat = [z1 z2 z3 z4 z5 z6 z7] %// For plot3
plot3(xMat, yMat, zMat)
hold on
plot3(E1',y,zero, '-*')
title('POSITIVE LEADERS, EpsCost, no lambda CIdecreasing')
legend('t1')
grid
xlabel('u')
ylabel('time')
zlabel('f(u)')
view(40,40) %// Adjust viewing angle so you can clearly see data
--
View this message in context:
http://octave.1599824.n4.nabble.com/How-to-smooth-and-fill-2dfunctions-in-a-3d-plot-tp4683145.html
Sent from the Octave - General mailing list archive at Nabble.com.