plot_dem#
- demregpy.plotting.plot_dem(
- logt,
- dem,
- *,
- elogt=None,
- edem=None,
- ax=None,
- label=None,
- color=None,
- ecolor=None,
- fmt='o',
- capsize=0,
- elinewidth=2,
- xlabel='$\\log_{10} T$',
- ylabel='DEM [$\\mathrm{cm}^{-5}\\,\\mathrm{K}^{-1}$]',
- yscale='log',
- **kwargs,
Plot a one-dimensional DEM with optional horizontal and vertical error bars.
- Parameters:
logt (array_like) – Temperature-bin centres in log10(T).
dem (array_like) – DEM values for each temperature bin.
elogt (array_like, optional) – Horizontal uncertainty in log10(T).
edem (array_like, optional) – Vertical uncertainty on the DEM.
ax (
matplotlib.axes.Axes, optional) – Axes to draw on. If not given, a new figure and axes are created.label (str, optional) – Label for the plotted series.
color (str, optional) – Matplotlib colour for markers and line.
ecolor (str, optional) – Matplotlib colour for the error bars. Defaults to
colorif given.fmt (str, optional) – Errorbar marker and line format.
capsize (float, optional) – Errorbar cap size.
elinewidth (float, optional) – Errorbar line width.
xlabel (str, optional) – X-axis label.
ylabel (str, optional) – Y-axis label.
yscale (str or None, optional) – Y-axis scale. Defaults to
"log".**kwargs – Additional keyword arguments passed to
Axes.errorbar.
- Returns:
ax (
matplotlib.axes.Axes) – Axes used for the plot.container (
matplotlib.container.ErrorbarContainer) – Matplotlib container returned byAxes.errorbar.