diff --git a/star_chart_spherical_projection/position_of_stars.py b/star_chart_spherical_projection/position_of_stars.py index 6b78f57..b9f6358 100644 --- a/star_chart_spherical_projection/position_of_stars.py +++ b/star_chart_spherical_projection/position_of_stars.py @@ -197,12 +197,12 @@ def plot_position(star=None, while y_increment > 20: y_increment = 20 - if year_lst[0] >= -2000: startYear_bce_ce = f"{year_lst[0]} C.E" # positive years for C.E - if year_lst[0] < -2000: startYear_bce_ce = f"{abs(year_lst[0])} B.C.E" # negative years for B.C.E + if year_lst[0] >= -2000: start_year_bce_ce = f"{year_lst[0]} C.E" # positive years for C.E + if year_lst[0] < -2000: start_year_bce_ce = f"{abs(year_lst[0])} B.C.E" # negative years for B.C.E if year_lst[-1] >= -2000: endYear_bce_ce = f"{year_lst[-1]} C.E" # positive years for C.E if year_lst[-1] < -2000: endYear_bce_ce = f"{abs(year_lst[-1])} B.C.E" # negative years for B.C.E - plt.title(f"{star_name}'s {title} {precession_label} from {startYear_bce_ce} to {endYear_bce_ce}, Every {increment} Years") + plt.title(f"{star_name}'s {title} {precession_label} from {start_year_bce_ce} to {endYear_bce_ce}, Every {increment} Years") plt.plot(year_lst, plot_y) plt.xlabel("Year") plt.ylabel(y_label)