Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to plot spheres with Julia?

Tags:

julia

plots.jl

Simple Problem, I have a data set with x-,y-,z-coordinates and the volume of each sphere. Should be enough data to plot these spheres? Isn't it?

I'm new to Julia and I actually have no clue how to do this. Couldn't find any similar and helpful answer...

Thank you, Tom

Should look like that

like image 907
Tom Avatar asked Nov 14 '25 22:11

Tom


1 Answers

I think Makie would be a good option. The documentation for meshscatter gives an example that can be adapted to better fit what you'd like to achieve:

using Makie

x = 100*rand(10)
y = 100*rand(10)
z = 100*rand(10)
scene = meshscatter(x, y, z, markersize = 10, color = :white)
Makie.save("plot.png", scene)

enter image description here

like image 111
François Févotte Avatar answered Nov 17 '25 20:11

François Févotte



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!