Info
This question is closed. Reopen it to edit or answer.
Setting plot data on a colormapped axes
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
This question is closed.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!