Add helper functionality to plot quantities against temperature with axes labeled in both K and eV #2639
Labels
effort: medium
Requiring perhaps ∼1–3 days
feature request
Issues requesting a new feature or enhancement
Plasma Lv1 | Beginner
Issues appropriate for someone who has some knowledge of physics
Python Lv2 | Intermediate
Issues that require a medium amount of knowledge of Python
visualization
Feature description
It would be helpful to have a plotting helper function that would let us have one x-axis or y-axis show temperature in kelvin and another showing$k_BT$ in eV on the opposite axis.
Motivation
Different fields in and adjacent to plasma science have different conventions for representing temperature. Fields like solar physics and astronomy often use K or MK, while laboratory plasma scientists tend to represent temperature (times an invisible Boltzmann constant) in eV or keV. In a cross-disciplinary meeting, it can take mental bandwidth (brainwidth? 🧠) for some folks to convert temperatures in K to eV, or from eV to K. Having an easy way to plot quantities against temperature with labels in both eV and K would help make plots that can be better understood across communities.
Implementation strategy
plasmapy.utils
, or we might want to includeastropy.visualization.quantity_support
context manager, as well as theastropy.units.temperature_energy
equivalency.particle
keyword argument so that the symbol of the particle can be included in the labels (i.e.,Particle
.The text was updated successfully, but these errors were encountered: