Plot (sitelle.plot)

Introduction

This modules contains wrappers around matplotlib methods to ease the plot of typical quantities like maps and spectra. They all return a tuple (Figure, Axes), just like matplotlib.pyplot.subplots(), to keep control over the axes.

Reference/API

sitelle.plot Module

Functions

customize_axes(axes, **kwargs) Wrapper meant to help the customization of Axes.
make_wavenumber_axes(ax, **kwargs) Create an axes suitable to plot spectra in wavenumber.
make_wavelength_axes(ax, **kwargs) Create an axes suitable to plot spectra in wavelength.
lines_pos(lines_name, v[, wavenumber]) From a list of emission line names and a velocity, compute the position (in cm-1 or Angstroms) of their position.
add_lines_label(ax, filter, velocity[, …]) Decorates an axis with lines labels.
add_colorbar(im, ax, fig[, aspect, pad_fraction]) DEPRECATED Add a vertical color bar to an image plot.
plot_map(data[, ax, region, projection, …]) Helper function to plot 2D maps
plot_hist(map[, ax, log, pmin, pmax, step]) Helper function to plot an histogram.
plot_scatter(x, y[, ax]) Helper function to plot scattered data
plot_density_scatter(xdat, ydat[, xlims, …]) Helper to plot a density scatter plot.
plot_sources(sources, ax, **kwargs) DEPRECATED Helper function to plot sources nicely over a map WARNING : sources should respect astropy convention : x and y reversed
plot_spectra(axis, spectrum[, ax, wavenumber]) Helper function to plot a spectrum.

Classes

Interactive1DPlotter(axes, cube_axis, cube, …) An interactive 1D Plotter.
SpectraPlotter(axis, original_cube, …[, …]) An interactive Spectra Plotter.

Class Inheritance Diagram

Inheritance diagram of sitelle.plot.Interactive1DPlotter, sitelle.plot.SpectraPlotter