[octave] Tipe dan tebal garis


ini uji coba saya membuat tipe dan ketebalan garis di Octave

y1 = [6, 2, 3];
y2 = [1, 7, 3];
y3 = [1, 9, 2];
y4 = [4, 7, 2];
x = [1 2 3];
h=plot(x,y1,'-.+');
#ketebalan 2
set(h,'LineWidth',2)
hold on
h=plot(x,y2,'--d');
set(h,'LineWidth',3)
hold on
h=plot(x,y3,'-o');
set(h,'LineWidth',1)
hold on
h=plot(x,y4,'-s');
set(h,'LineWidth',3)
legend('f1','f2','f3','f4');
hold off
#resolusi 800dpi
print("gambar",'-dpng','-r800');

hasil dari kode diatas :

gambar

  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s