Plot Style
You can style the plot very easily
Styling Parameters
Setting Background Color
face_color
(str): Background color of the 3D plot.
This method allows you to set the background color of the plot. You can specify a color name (e.g., "white") or use a hexadecimal color code (e.g., "#F3EEEA") to customize the background.
Setting Axis Plane Color
pane_color
(str): Color of the axes planes.
Use this method to change the color of the planes representing the X, Y, and Z axes. It helps differentiate the axes from the background.
Setting Grid Color
grid_color
(str): Color of grid lines.
You can specify the color of the grid lines in the 3D plot using this method. Grid lines provide reference points in the plot.
Setting Orbit Transparency
orbit_transparency
(float): Transparency of orbit lines (0.0 to 1.0).
This parameter controls the transparency of the plotted orbit lines. A value of 0.0 means fully transparent, while 1.0 means fully opaque.
Setting Label Color
label_color
(str): Color of axis labels.
You can customize the color of the axis labels using this method. It allows you to make the labels more visible or match the overall style of your plot.
Setting Tick Color
tick_color
(str): Color of axis ticks.
Use this parameter to specify the color of the ticks on the X, Y, and Z axes. It helps in aligning the ticks with the overall color scheme of the plot.
Example Usage
In this example, we've demonstrated how to use the styling parameters of the datasetOrbit
class to create a visually appealing 3D orbital plot. Each styling parameter allows you to fine-tune the appearance of the plot to suit your preferences and design aesthetics.
Feel free to experiment with different color choices and transparency levels to achieve the desired visual effect for your celestial object orbit plots.
Last updated