dj_a
dj_a

Reputation: 141

How to view in julia surf plot?

Using the command in julia surf(x,y,z), how to control the view? I am using PyPlot.

This example indicates I should try view_init(a,b), but that does not work.

I have a couple different versions of julia installed : 0.4.3 and 0.7. Suggestions for either are welcomed.

Upvotes: 0

Views: 325

Answers (1)

dj_a
dj_a

Reputation: 141

Ah hah. Here we go. The answer is:

figure();
ax = gca(projection="3d");
surf(x,y,z);
ax[:view_init](30,26);

Upvotes: 1

Related Questions