Skip to content

benkrichman/datascale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datascale

Functions for automatic scaling of matplotlib line width, marker width, fontsize, and resolution to data


Downloads
PyPI version

Installation

pip install datascale

or

pip install git+https://github.com/benkrichman/datascale.git@main

Main Functions

plotdatasize()

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)

plotdatasize() example

To reproduce this image view test() in datascale.py or use

datascale.test()

plotdatadpi()

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)

plotdatadpi() example

To reproduce this image view test() in datascale.py or use

datascale.test()

About

Functions for automatic scaling of matplotlib line width, marker width, fontsize, and resolution to data

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages