Orion Constellation project - Skill Path - Data Science

My first project upload of a project:

Project: Visualizing the Orion Constellation

1. Set-Up

%matplotlib notebook
from matplotlib import pyplot as plt

2. Get familiar with real data


x = [-0.41, 0.57, 0.07, 0.00, -0.29, -0.32,-0.50,-0.23, -0.23]
y = [4.12, 7.71, 2.36, 9.10, 13.35, 8.13, 7.19, 13.25,13.43]
z = [2.06, 0.84, 1.56, 2.07, 2.36, 1.72, 0.66, 1.25,1.38]

3. Create a 2D Visualization

#Criacao da figura e atribuida a uma variavel:
fig = plt.figure(figsize=(5, 5))
#Adicionamos um subplot a figura:
#Metodo scatter com dois argumentos:(lista de cordenadas ‘x’ e lista de cordenadas ‘y’):
#Um scatter e um grafico de dispersao:

4. Create a 3D Visualization

#Criaco da figura que vai alocar a renderizacao 3d:
fig_3d = plt.figure()
#Adicionar um sub_plot a figura e usar o comando projetion=3d para indicar que e uma renderizacao 3d:
#Declaracao da variavel qu contem o metodo scatter, ams com 3 dimensoes:
constellation3d = plt.scatter(x,y,z)


Thank You.

Welcome to the forums @pedroferreira2650843!! :grinning:

Well done :+1:

Everything looks good.

Just add a title and x,y, and z axis labels for clarity
plt.title(“Orion Constellation - 3D”) # add title
ax.set_xlabel(“Projected Right Ascension”) # add x label

marker=‘o’ may help with the size of the points in the 3D
constellation3d.scatter(x, y, z, marker=‘o’)