diff options
author | Adrian Kummerlaender | 2020-01-11 22:54:01 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2020-01-11 22:54:01 +0100 |
commit | 1e5eba2da524e258345eb9796819200ee7052f8e (patch) | |
tree | 5b79b2695ec600647ae5781f35b712e2bd1437e5 /fancy_local_sunrise.py | |
parent | 071bc3e6439d7775e9684dfeeb27d423d47167a9 (diff) | |
download | firmament-1e5eba2da524e258345eb9796819200ee7052f8e.tar firmament-1e5eba2da524e258345eb9796819200ee7052f8e.tar.gz firmament-1e5eba2da524e258345eb9796819200ee7052f8e.tar.bz2 firmament-1e5eba2da524e258345eb9796819200ee7052f8e.tar.lz firmament-1e5eba2da524e258345eb9796819200ee7052f8e.tar.xz firmament-1e5eba2da524e258345eb9796819200ee7052f8e.tar.zst firmament-1e5eba2da524e258345eb9796819200ee7052f8e.zip |
Fix west / east order
Diffstat (limited to 'fancy_local_sunrise.py')
-rw-r--r-- | fancy_local_sunrise.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |