Skip to main content

A package to easily build ACMetric branded plots

Project description

Acmetric-Social-3

Introducing ACMetric package! :tada:

Current version: 1.2.2

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

Installing on a local machine :computer:

Run this command in your local machine's terminal:

python3 -m pip install git+https://github.com/ACMetric/acmetric_package.git

Press here to copy :point_up_2:  

:heavy_exclamation_mark:If it doesn't work, run:

python3 -m pip install git+https://username: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@github.com/ACMetric/acmetric_package.git

:heavy_exclamation_mark:If the package is installed, but can't be imported, delete it (pip unistall acmetric) and run:

python3 -m pip install --upgrade pip setuptools wheel

and then repeat the installation procedure.

To update, run:

python3 -m pip install git+https://github.com/ACMetric/acmetric_package.git --upgrade

Installing on Google Colab :orange_book:

Setting up in Google Colab is described here.

Importing :rocket:

I 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! :sunglasses:

:mag_right: You can find code examples here: Jupyter | Google Colab


Some things you need to know :teacher:

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.

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-1.2.2.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

acmetric-1.2.2-py3-none-any.whl (43.1 kB view details)

Uploaded Python 3

File details

Details for the file acmetric-1.2.2.tar.gz.

File metadata

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

File hashes

Hashes for acmetric-1.2.2.tar.gz
Algorithm Hash digest
SHA256 ae813709c1f3dfc615a4db46cf77a2235fbc2bcdead5e800d364e819cf5f252a
MD5 726138db9ab07358d54628a8c9393c4c
BLAKE2b-256 4664ab826338be866bbb3b36ee0b0c61d1fa4845a65a1ccc624c2024a7092f1c

See more details on using hashes here.

File details

Details for the file acmetric-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: acmetric-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 43.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.5

File hashes

Hashes for acmetric-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 690e8d75979835ef9c7dceca4e3c110357a7b2035a605facc92303bf178f1ff6
MD5 e95d01c6559ddc1a7d9716184c01fb96
BLAKE2b-256 19563dbeccad43eaa92ff157a5c36b25bf5d6f5ffc0175fa933f5e16e2d916dc

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