Skip to main content

Automatically determine the best scaling for your scatterplot's colorbar.

Project description

ScatterScale

Automate the normalizing scale for your scatterplot's colorbar. Scaling options are Log, SymLog, Asinh, or no normalization, as defined by matplotlib.

To Install

pip install scatterscale

Quick Start

Scatterscale's get_scatterscale() function can be used to generate the matplotlib.color.Norm used for matplotlib plotting.

optimal_norm = get_scatterscale(data_for_colorbar)
plt.scatter(x_data, y_data, c=data_for_colorbar, norm=optimal_norm)
plt.show()

If you'd like to remove outliers from your data first, you can do so with handle_outliers() before running get_scatterscale().

optimal_norm_no_outliers = get_scatterscale(data_for_colorbar)
plt.scatter(x_data, y_data, c=data_for_colorbar_no_outliers, norm=optimal_norm_no_outliers)
plt.show()

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

scatterscale-1.0.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scatterscale-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file scatterscale-1.0.0.tar.gz.

File metadata

  • Download URL: scatterscale-1.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for scatterscale-1.0.0.tar.gz
Algorithm Hash digest
SHA256 96b43a073de82736c04c41f12654a7951d553e5964e63665b032cce00ad33504
MD5 8cf56b34897f825d835e3f725bec73d6
BLAKE2b-256 2ed3687e21149474442c419db70db83ea4a79bea0b348a2ad4ea3e8775e16ca2

See more details on using hashes here.

File details

Details for the file scatterscale-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: scatterscale-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for scatterscale-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d067db4611e5d74febe136f4fd7d030b844a9d5b87e129558673ff839df1cde2
MD5 83b909b4d6b3f1ff9bc4cd013cf2c2e1
BLAKE2b-256 3e4cae7ab56203fa1b747c4c282f935b9bdf46f8ab6c246a0d936b4e7d93d5b5

See more details on using hashes here.

Supported by

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