ASCL.net

Astrophysics Source Code Library

Making codes discoverable since 1999

ASCL Code Record

[ascl:2410.002] pysymlog: Symmetric (signed) logarithm scale for Python plots

pysymlog provides utilities for binning, normalizing colors, wrangling tick marks, and other tasks, in symmetric logarithm space. For numbers spanning positive and negative values, the code works in log scale with a transition through zero, down to some threshold. This is useful for representing data that span many scales such as standard log-space that include values of zero or even negative values. pysymlog provides convenient functions for creating 1D and 2D histograms and symmetric log bins, generating logspace-like arrays through zero and managing matplotlib major and minor ticks in symlog space, as well as bringing symmetric log scaling functionality to plotly.

Code site:
https://github.com/pjcigan/pysymlog https://pypi.org/project/pysymlog/
Used in:
https://ui.adsabs.harvard.edu/abs/2024ApJS..274...28C
Bibcode:
2024ascl.soft10002C

Views: 1089

ascl:2410.002
Add this shield to your page
Copy the above HTML to add this shield to your code's website.