movie

dot.plots.movie(results_dir, model, trace, xsize=250, fps=10, artifical_photometry=False, posterior_samples=10, dpi=250, u1=0.4, u2=0.2)[source] [edit on github]

Plot an animation of the light curve and the rotating stellar surface.

Parameters
results_dirstr

Save movie to this directory

modelModel

Model object

traceMultiTrace

Trace from SMC/NUTS

xsizeint

Number of pixels on a side in the pixelated stellar image

fpsint

Frames per second in the finished movie

artifical_photometrybool

Plot a curve in red showing the sum of the pixel intensities from the pixelated stellar image (useful to sanity check the animation)

posterior_samplesint

Number of posterior samples to draw and plot on the movie in blue

dpiint

Dots per inch (increase this for higher resolution movies)

u1float

Artistic limb-darkening parameter one

u2float

Artistic limb-darkening parameter two

Returns
figFigure

Final static frame of movie

mndarray

Pixelated stellar image with shape (xsize, xsize, len(times))