Make 2D markers look 3D
18 views (last 30 days)
Show older comments
sbean320 on 2 May 2017
Commented: sbean320 on 5 May 2017
I am interested in making data markers (circles, for example) in a 2D plot look like they have depth/3D curvature. Does anyone know of a way to either make circle markers look like spheres in a 2D plot, specify multiple colors within each marker, or assign a colormap to each marker?
Thank you in advance for your help!
Soumya Saxena on 5 May 2017
You may create small balls using a "sphere" as follows :
You may also use scatter3 to generate 3D markers using the "filled" option :
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!