Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Setting plot data on a colormapped axes

1 Ansicht (letzte 30 Tage)
Tim
Tim am 29 Mai 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (0)

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by