Plotstar

Plot some nearby stars
import matplotlib.pyplot as plt types = ['Sol', 'A Centauri', 'Epsilon Eridani', '61 Cygni', 'Procyon', 'Epsilon Indi', 'Tau Ceti', '40 Eridani'] x_coords = [0,-1.6,6.2,6.4,-4.8,5.7,10.3,7.2] y_coords = [0,-1.4,8.2,-6.1,10.3,-3.2,5.0,14.6] for i,type in enumerate(types): x = x_coords[i] y = y_coords[i] plt.scatter(x, y, marker='x', color='red') plt.text(x+0.3, y+0.3, type, fontsize=9) plt.show
 * 1) !/usr/bin/python3