Here is my project for the Orion project! Any and all comments are welcome!
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Project: Visualizing the Orion Constellation\n",
"\n",
"In this project you are Dr. Jillian Bellovary, a real-life astronomer for the Hayden Planetarium at the American Museum of Natural History. As an astronomer, part of your job is to study the stars. You've recently become interested in the constellation Orion, a collection of stars that appear in our night sky and form the shape of [Orion](https://en.wikipedia.org/wiki/Orion_(constellation)), a warrior God from ancient Greek mythology. \n",
"\n",
"As a researcher on the Hayden Planetarium team, you are in charge of visualizing the Orion constellation in 3D using the Matplotlib function `.scatter()`. To learn more about the `.scatter()` you can see the Matplotlib documentation [here](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.scatter.html). \n",
"\n",
"You will create a rotate-able visualization of the position of the Orion's stars and get a better sense of their actual positions. To achieve this, you will be mapping real data from outer space that maps the position of the stars in the sky\n",
"\n",
"The goal of the project is to understand spatial perspective. Once you visualize Orion in both 2D and 3D, you will be able to see the difference in the constellation shape humans see from earth versus the actual position of the stars that make up this constellation. \n",
"\n",
"<img src=\"https://upload.wikimedia.org/wikipedia/commons/9/91/Orion_constellation_with_star_labels.jpg\" alt=\"Orion\" style=\"width: 400px;\"/>\n",
"\n"
]
},
This file has been truncated. show original
tgrtim
September 1, 2020, 9:48pm
2
Hi @pywhiz25055 ,
Congrats for finishing up, for a bit of feedback: It’d be best to get in the habit of adding labels to all your axes now. Without them it takes the viewer much longer to interpret your data.
Please also have a close look at the z-axis of your points. I believe they all sit at z=0.0
which is not correct. Using the standard matplotlib.pyplot.sctatter()
function only allows for 2D plotting.
You need to be using the .scatter()
method of your 3D axis object which supports z data…
ax3dobj = fig.add_subplot(1,1,1,projection="3d")
ax3dobj.scatter(x, y, z ...