waqasbhatti / astrobase

Python modules for light curve work and variable star astronomy
MIT License
55 stars 12 forks source link

checkplot: add a user configurable zoomed-in phased LC plot view #11

Closed waqasbhatti closed 7 years ago

waqasbhatti commented 7 years ago

This will be a keyword option to checkplot_png and checkplot_pickle, useful for zooming in to show transits, etc.

waqasbhatti commented 7 years ago

Now fixed. The new behavior is achieved using the xliminsetmode kwarg, like so:

x = checkplot.checkplot_pickle(
    [lsp,pdm], 
    lcd['rjd'], lcd['atf_000'], lcd['aie_000'], objectinfo=lcd['objectinfo'], 
    xliminsetmode=True, plotxlim=[-0.2,0.2], sigclip=[10.0,4.0]
)

This works for checkplot_pickle, checkplot_png, and twolsp_checkplot_png, and makes something like:

screen shot 2017-03-01 at 14 48 34-fullpage