histastro.plot module
Plot-related functions for HistAstro.
- histastro.plot.mag2size(Mlim, mag, scale=1)[source]
Convert magnitudes (mag) to disc area (‘size’) for plotting with pyplot.scatter(), given a magnitude limit Mlim.
- Parameters:
Mlim (float) – Magnitude limit.
mag (float) – Magnitude (Numpy array).
scale (float) – Scale factor (default value = 1).
- Returns:
Area sizes for the stellar discs (Numpy array)
- Return type:
float