Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Setting plot data on a colormapped axes

조회 수: 1 (최근 30일)
Tim
Tim 2017년 5월 29일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi all. I usually find what I'm looking for here, but this problem was too specific I guess. I am using MATLAB R2014a. When plotting (or scattering) data, one can use the plot handle to apply: "set(h,'XData',x,'YData',y,'ZData',z)". But, when I use scatter3 with a colormap argument (i.e. h=scatter3(x,y,z,markerSize,colorMapping)), then the handle h gets it's 'Children' field become an array with more handles, each relates to a point on the graph and is made of a whole new structure ('patch' Type). In this case, when one uses the "set" command mentioned before, it turns the 'Children' into an empty array and all the points disappear from the graph. My question is: is there a way to set the x,y,z data of a plot that had been colormapped, without having all the points disappear? Thanks in advance, Tim

답변 (0개)

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by