Skip to main content

Functions for automatic scaling of matplotlib plot axes/resolution to data

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datascale-1.1.1.tar.gz (83.6 kB view hashes)

Uploaded Source

Built Distribution

datascale-1.1.1-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page