Skip to main content

A package to easily build ACMetric branded plots

Project description

Acmetric-Social-3

Introducing ACMetric package!

Current version: 1.3.0

This package is created to help you use ACMetric's brand colors and build plots without hours of tuning. Enjoy!

Installing on Google Colab

Setting up in Google Colab is described here.

Importing

We recommend importing it along with matplotlib and seaborn.

%matplotlib inline # display plots in the notebook right away
%config InlineBackend.figure_format='retina' # high resolution
import matplotlib.pyplot as plt
import seaborn as sns
import acmetric as ac

And it is ready to go!

You can find code examples here: Jupyter | Google Colab


Some things you need to know

ac.display_colors() will show you a table with all the colors available and their names.

ac.colors module contains ACMetric colors, you can access them by writing ac.colors.coral, ac.colors.sky_60, etc.

ac.palette is a matplotlib color palette. You can call it and choose a color you like by index, e.g. ac.palette[3].

ac.cmap is a gradient colormap that can be used in seaborn heatmap and other plots.

Run ac.params.layout_color('black') to make axes and text black. Run ac.params.layout_color('default') to make them grey again.

Now 4 kinds of plots are available in the package: bar chart, pie chart, scatter plot and box plot. You can make them using ac.bar, ac.pie, ac.scatter and ac.box. All the possible parameters can be found in the docstring.

Note: it doesn't mean you can't build other kinds of plots. Just import matplotlib or seaborn, and all the plots you create will also be ACMetric branded!

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

acmetric_plotting-1.3.0.tar.gz (44.2 kB view details)

Uploaded Source

Built Distribution

acmetric_plotting-1.3.0-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

Details for the file acmetric_plotting-1.3.0.tar.gz.

File metadata

  • Download URL: acmetric_plotting-1.3.0.tar.gz
  • Upload date:
  • Size: 44.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.5

File hashes

Hashes for acmetric_plotting-1.3.0.tar.gz
Algorithm Hash digest
SHA256 3aa7cc83e662bee80a9b6e8195e3e607402a1dcc92028f488ca660ad021cd2d6
MD5 b30ee9c6cbd12842ebd8c1926f4cefb4
BLAKE2b-256 42a5ec8d6bdc7f018b6a6ad64a961a0d7495d6ffe3cd0ccabe0be29a2a357afc

See more details on using hashes here.

File details

Details for the file acmetric_plotting-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for acmetric_plotting-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2ed958e8bc0545e64a49873f5b6cbe74abb297a621f4a2613501195360abd87
MD5 9f408b02a3dbfa1cd7c5d52bae42e133
BLAKE2b-256 2fe3c198d29e9f00f988d18ab7664aee3d9ede226dbb7d16eb72cd89f5d4ba88

See more details on using hashes here.

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