Functions for automatic scaling of matplotlib line width, marker width, fontsize, and resolution to data
pip install datascale
or
pip install git+https://github.com/benkrichman/datascale.git@main
Scale line width, marker width, or fontsize for plots to correspond directly to the scale of data on either/both plot axes. For more detail see help output:
help(datascale.plotdatasize)
To reproduce this image view test() in datascale.py or use
datascale.test()
Scale dpi of output image to produce a certain number of points per data unit on either/both plot axis/axes. Useful for plots that need a certain amount of detail per axis unit (e.g. geographic projections). For more detail see help output:
help(datascale.plotdatadpi)
To reproduce this image view test() in datascale.py or use
datascale.test()