Plotting

All plotting functions use PyPlot (Matplotlib). Import ROTIR to get access to these functions.

2D projections

FunctionDescription
plot2d(tmap, star; kwargs...)Plot temperature map in observer's sky plane for one epoch
plot2d_wireframe(star)Overlay projected pixel edges (no color fill)
plot2d_allepochs(tmap, stars; kwargs...)Multi-epoch subplot grid with shared color scale

plot2d keywords

KeywordDefaultDescription
intensityfalseMultiply map by limb-darkening weights
plotmeshfalseShow pixel edges
colormap"gist_heat"Matplotlib colormap name
figtitle""Figure title
flipxfalseFlip East-West
pad0.5Padding around star (mas)
background"black"Background color
xlim, ylim[]Axis limits (auto if empty)

plot2d_allepochs keywords

KeywordDefaultDescription
plotmeshfalseShow pixel edges
tepochs[]Epoch labels
colormap"gist_heat"Matplotlib colormap name
arr_boxautoSubplot layout (e.g., 23 = 2 rows, 3 columns)

Decorations

KeywordDefaultDescription
compassfalseDraw N/E compass arrows
graticulesfalseDraw latitude/longitude grid lines on the surface
rotation_axisfalseDraw the rotation axis (dashed line through poles)
rotation_arrowfalseDraw spin direction arrow at the north pole
star_paramsnothingStar parameters NamedTuple for exact graticule geometry (sphere, triaxial ellipsoid, rapid rotator)
graticule_kwargs(;)Style overrides passed to draw_graticules (see below)

Graticule style (graticule_kwargs)

KeyDefaultDescription
nlat5Number of latitude circles
nlon8Number of longitude lines
color"black"Line color
linewidth0.8Line width
alpha0.5Opacity
npoints200Points per curve (resolution)

Binary sky-plane

FunctionDescription
plot2d_binary(tmap1, tmap2, star1, star2, bparams, tepoch; kwargs...)Plot binary system with correct occlusion and orbital offset

plot2d_binary accepts the same decoration keywords as plot2d plus:

KeywordDefaultDescription
inclination1, position_angle1NaNOverride star 1 orientation for decorations
inclination2, position_angle2NaNOverride star 2 orientation for decorations
star_params1, star_params2nothingStar parameters for exact graticule geometry on each component
graticule_kwargs(;)Graticule style overrides (shared by both components)

Radial velocity

FunctionDescription
plot_rv(bparams; K1, K2, γ=0.0, rv_data1=nothing, rv_data2=nothing, figtitle="Radial Velocities")Plot RV model curves vs orbital phase

rv_data1 / rv_data2 should be Nx3 matrices with columns [JD, RV_km/s, error_km/s]. If only Nx2, data points are plotted without error bars.

3D surface

FunctionDescription
plot3d(tmap, star)3D colored surface (Poly3DCollection)
plot3d_vertices(star)Debug: show quad vertices (blue) and centers (red)

Mollweide projection

FunctionDescription
plot_mollweide(tmap, star; kwargs...)Full-surface Mollweide projection (auto-selects HEALPix or lon/lat)

plot_mollweide keywords

KeywordDefaultDescription
visible_pixels[]Highlight visible pixel subset
vmin-InfColor scale minimum (auto if -Inf)
vmaxInfColor scale maximum (auto if Inf)
colormap"gist_heat"Matplotlib colormap name
incl90.0Draw inclination line at this angle
figtitle"Mollweide"Figure title