From 1e5eba2da524e258345eb9796819200ee7052f8e Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 11 Jan 2020 22:54:01 +0100 Subject: Fix west / east order --- fancy_local_sunrise.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fancy_local_sunrise.py') diff --git a/fancy_local_sunrise.py b/fancy_local_sunrise.py index a206c25..49302bd 100644 --- a/fancy_local_sunrise.py +++ b/fancy_local_sunrise.py @@ -76,11 +76,12 @@ for time in np.arange(*time_range): ax_polar = fig.add_axes([0.0, 0.0, 1.0, 1.0], projection='polar', label='Overlay') ax_polar.patch.set_alpha(0) ax_polar.set_theta_zero_location('N') + ax_polar.set_theta_direction(-1) ax_polar.set_rlim(bottom=90, top=0) yticks = [0, 15, 30, 45, 60, 75, 90] ax_polar.set_yticks(yticks) ax_polar.set_yticklabels(['' if i == 90 else '%d°' % i for i in yticks], color='white', fontsize=6) - ax_polar.set_rlabel_position(-90/4) + ax_polar.set_rlabel_position(90/4) ax_polar.set_xticklabels(['N', 'NW', 'W', 'SW', 'S', 'SE', 'E', 'NE']) ax_polar.grid(True) -- cgit v1.2.3