i'm trying change perspective of 3d scatter plot. (julia language)
this code, example, changes perspective, points plotted individually each change, rather together.
for i=1:10 x=i; y=i+2; z = i+3 fig = figure() ax = gca(projection="3d") plot3d([x],[y],[z], ".") ax[:view_init](30, 180) end
how can write see points in changed perspective? format in julia adapted matplotlib, should similar how accomplished in julia.
just take figure creation out of loop. creating new figure in each iteration.
using pyplot fig = figure() ax = gca(projection="3d") i=1:10 x=i; y=i+2; z = i+3 plot3d([x],[y],[z], ".") ax[:view_init](30, 180) end
does want?
Comments
Post a Comment