A PDF PSA, or Never gonna set_xscale again - guilty feats with logarithms

arXiv:2003.14327 First posted 2020-03-31 v1 To be submitted to the Astro-pedantic Journal on April 1, 2020
Cite this paper ×
BibTeX
@misc{forbes2020a,
  title = {A PDF PSA, or Never gonna set_xscale again - guilty feats with logarithms},
  author = {John C. Forbes},
  year = {2020},
  eprint = {2003.14327},
  archivePrefix = {arXiv},
  primaryClass = {astro-ph.CO},
  url = {https://arxiv.org/abs/2003.14327}
}
APA 7
Forbes, J. C. (2020). A PDF PSA, or Never gonna set_xscale again - guilty feats with logarithms [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2003.14327
GB/T 7714
FORBES JC. A PDF PSA, or Never gonna set_xscale again - guilty feats with logarithms[EB/OL]. (2020-03-31)[2026-11-30]. https://arxiv.org/abs/2003.14327.

Abstract

In the course of doing astronomy, one often encounters plots of densities, for example probability densities, flux densities, and mass functions. Quite frequently the ordinate of these diagrams is plotted logarithmically to accommodate a large dynamic range. In this situation, I argue that it is critical to adjust the density appropriately, rather than simply setting the x-scale to `log' in your favorite plotting code. I will demonstrate the basic issue with a pedagogical example, then mention a few common plots where this may arise, and finally some possible exceptions to the rule.

Post #1 · the paper

Discussion

No comments yet. Start the discussion!