allesclass plots

The allesclass plot function let’s you create individual plots in your desired formats. The returned figure and axes object gives you control to change the plots afterwards, e.g.:

#------------------------------------------------------------------------------
# Photometry
#------------------------------------------------------------------------------
#::: iterate over all plot styles
for style in ['full', 'phase', 'phasezoom', 'phasezoom_occ', 'phase_variations']:

    #::: set up the figure
    fig, axes = plt.subplots(2, 1, figsize=(6,6), gridspec_kw={'height_ratios': [3,1]}, sharex=True)
    fig.subplots_adjust(hspace=0)

    #::: alles.plot(...) data and model
    alles.plot('Leonardo','b',style,ax=axes[0])
    axes[0].set_title('Leonardo, '+style)

    #::: alles.plot(...) residuals
    alles.plot('Leonardo','b',style+'_residuals',ax=axes[1])
    axes[1].set_title('')

    fig.savefig('Leonardo_'+style+'.pdf', bbox_inches='tight')
#------------------------------------------------------------------------------
# RV
#------------------------------------------------------------------------------
#::: iterate over all plot styles
for style in ['full', 'phase']:

    #::: set up the figure
    fig, axes = plt.subplots(2, 1, figsize=(6,6), gridspec_kw={'height_ratios': [3,1]}, sharex=True)
    fig.subplots_adjust(hspace=0)

    #::: alles.plot(...) data and model
    alles.plot('Donatello','b',style,ax=axes[0])
    axes[0].set_title('Donatello, '+style)

    #::: alles.plot(...) residuals
    alles.plot('Donatello','b',style+'_residuals',ax=axes[1])
    axes[1].set_title('')

    fig.savefig('Donatello_'+style+'.pdf', bbox_inches='tight')