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

2 ビュー (過去 30 日間)
Anuj Rekhy
Anuj Rekhy 2017 年 2 月 7 日
編集済み: Anuj Rekhy 2017 年 3 月 3 日
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 日
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

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by