matlab - Copying axes position and camera properties -


this question has answer here:

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:

showpointcloud(...) hold on surface(...)

as quick workaround display point cloud , overlay tracks. need camera position , zoom properties form point cloud:

just showpointcloud(...)

and apply tracks:

just surface(...)

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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -