Info
此问题已关闭。 请重新打开它进行编辑或回答。
Setting plot data on a colormapped axes
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
此问题已关闭。
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!