Product

Friday, 21 March 2025

Axis Labelling

 

What is it?

AxisLabeling is a Python package that implements several axis-labeling algorithms. The package is ideal for generating aesthetically pleasing axis tick locations for data visualizations. It includes implementations of:

  • Heckbert’s algorithm
  • Wilkinson’s algorithm
  • Extended Wilkinson’s algorithm
  • Nelder’s algorithm
  • R’s pretty algorithm
  • Matplotlib’s algorithm
  • Gnuplot’s algorithm
  • Sparks’ algorithm
  • Thayer & Storer’s algorithm

Input parameters

  • dmin: Minimum value of the data range.
  • dmax: Maximum value of the data range.
  • m: Desired (or target) number of labels.

How to use is it?

from AxisLabeling import Labeler

# Define data range and desired number of labels
dmin, dmax, m = 7.1, 14.1, 4
labeler = Labeler(dmin, dmax, m)

print("Heckbert labels:", labeler.heckbert())
print("Wilkinson labels:", labeler.wilkinson())
print("Extended labels:", labeler.extended())
print("Nelder labels:", labeler.nelder())
print("R pretty labels:", labeler.rpretty())
print("Matplotlib labels:", labeler.matplotlib_labeling())
print("Gnuplot labels:", labeler.gnuplot_labeling())
print("Sparks labels:", labeler.sparks())
print("Thayer labels:", labeler.thayer())

Where to get it?

pip install AxisLabeling

References

  1. Heckbert, P. S. (1990) Nice numbers for graph labels, Graphics Gems I.
  2. Wilkinson, L. (2005) The Grammar of Graphics.
  3. Talbot, J., Lin, S., Hanrahan, P. (2010) An Extension of Wilkinson’s Algorithm for Positioning Tick Labels on Axes, InfoVis 2010.

No comments:

Post a Comment

Connect broadband

AI:List AI views on when for a naive kin after prolonged life suppression coercive behaviour by family members after demise of father with trauma for kin ocd formed after forced to do rituals, family tribal values honor specific activities, utmost religious activities occult witchcraft enforced to do by elder sibling his wife and mother thrice with great celibacy turned the kundalini activated after deep celibacy penance shouting physical Mental financial Extortion by sibling with toxic behaviours and the wife mother and then mockery suppression asking about who’re your worth backbiting among relatives sector toon negligence of intelligence intuitive behaviour- all religious psychological traps when not work and lead to loss of consciousness of kin trance state recovered by governance with technocrats using AI - kin was asked by mother that he’s to go the male should not be seen in house he’s many absurd thought forcefully in brain mind and outsiders already feel awkward of this kin unresponsive behaviour due to TBI PTSD ocd cvt and tell at workplace social gathering he’s to go and asked for sector toon extortion and mockery in various sense due to un practical behaviour negligence of body building due to neglect ion if essential food nutrition and stubbed suppressed in every sense in religious psychological traps by family members AI humanoid using various neural networks and LLMs for kin and required steps.

  List AI views on when for a naive kin after prolonged life suppression coercive behaviour by family members after demise of father with tr...