Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在绘制x,y和之间的地图density。x并且y是距离。scatterplot除了绘制它还有其他方法吗?我希望密度显示在颜色栏中。我一直在做以下事情:
x
y
density
scatterplot
scatter(x(1:end-1), y(1:end-1), 5, g); colorbar('eastoutside'); caxis([12 max(g)]);
使用surf(x,y,z),其中 x 和 y 是您的距离,z 是密度。
surf(x,y,z)