How to shift pcolor plot upwards on a 3d scatter plot?

I have created a 3D scatter plot and I want my pcolor plot at a location at some height for the z axis. But I can only see it on the XY plane with no shift in Z axis possible. Could anyone suggest a method to shift the pcolor plot to any location along the z axis?

 채택된 답변

Walter Roberson
Walter Roberson 2017년 2월 7일
In R2014b and later,
h = pcolor(....);
h.ZData = TheConstantZ + h.ZData; %it starts out all 0 of the right size so adding gets a constant of the right size

추가 답변 (1개)

Anuj Rekhy
Anuj Rekhy 2017년 2월 8일
편집: Anuj Rekhy 2017년 3월 3일

0 개 추천

Thank you,
There is another method but your approach is much efficient compared to the one I am sharing.
The other method. https://www.mathworks.com/matlabcentral/newsreader/view_thread/132877

카테고리

도움말 센터File Exchange에서 Scatter Plots에 대해 자세히 알아보기

질문:

2017년 2월 7일

편집:

2017년 3월 3일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by