from astroplan import Observer,FixedTarget
from astroplan.plots import plot_airmass,plot_altitude
from astropy.time import Time
import astropy.units as u
from astropy.coordinates import EarthLocation
from pytz import timezone
location = EarthLocation.from_geodetic('116.38 E', '40.002 N', 100* u.m)
naoc = Observer(name='NAOC', location=location,timezone=timezone('Asia/Shanghai'))
vega = FixedTarget.from_name('Vega')
observe_time = Time.now()
plot_airmass(vega, naoc, observe_time)
<AxesSubplot:xlabel='Time from 2020-12-08 [UTC]', ylabel='Airmass'>
plot_altitude(vega, naoc, observe_time)
<AxesSubplot:xlabel='Time from 2020-12-08 [UTC]', ylabel='Altitude'>