matlab - Copying axes position and camera properties -
this question has answer here:
- re-use view output matrix in matlab 2 answers
i have point cloud , tracks of cells display using following commands:
showpointcloud(rawcoors,repmat(pointvalues([1,3])); hold on jj=1:5 %... calculate x,y,z each 1 of 5 tracks surface([x;x],[y;y],[z;z],[colors(1:ii);colors(1:ii)],'facecol','no','edgecol','interp','linew',5,'edgealpha',1); end
this results in subpar rendering:
as quick workaround display point cloud , overlay tracks. need camera position , zoom properties form point cloud:
and apply tracks:
however have not been able set correct combination of these parameters , view()
this
c=ax1.cameraposition; ax2.cameraposition=c;
to correct view of tracks.
is there way copy of axes properties in order right sized tracks?
do have better way solve rendering problem?
the combination of following parameters @suever's comment plus view()
solved problem:
c=ax1.projection;ax2.projection=c; c=ax1.cameratarget;ax2.cameratarget=c; c=ax1.cameraposition;ax2.cameraposition=c; c=ax1.cameraviewangle;ax2.cameraviewangle=c; c=ax1.dataaspectratio;ax2.dataaspectratio=c; c=ax1.plotboxaspectratio;ax2.plotboxaspectratio=c;
Comments
Post a Comment