How to obtain coloured circles/spheres with and without a colour gradient in plots?
5 views (last 30 days)
Hi to everyone, I need to insert colored circles and a sphere (only for the Sun) with and without color gradient in plots that represent the Sun and the Earth/Moon system, indicated as "Sun" and "Earth+Moon" in the following figures . The following ones are my current figures:
I want to replace the Sun and Earth+Moon(three objects that I simply plotted with a marker and its properties in matlab), with the following ones:
Can you help me to get the latter ones?
Vishesh on 4 Oct 2022
You can use the following MATLAB code for replacing the sun.
%position of sun
color_code=[linspace(dark_yel(1),yel(1),length)', linspace(dark_yel(2),yel(2),length)', linspace(dark_yel(3),yel(3),length)'];
For Earth and moon , you can use the following MATLAB code.
%position of moon and earth