Skip to main content

plot_highlight is a Python visualization library based on seaborn.

Project description

Plot Highlight

plot_highlight is a Python visualization library based on seaborn.

This liblary is inspired by gghighlight package in R.

Installation

Use pip

pip install plot-highlight

Usage

Draw seaborn charts, highlighting the specific items.

The following seaborn functions are supported.

  • sns.scatterplot
  • sns.lineplot
  • sns.histplot

📊 Scatter plot with highlight

import seaborn as sns
df = sns.load_dataset('tips')

import plot_highlight as phl
phl.scatterplot(data=df, x='total_bill', y='tip', hue='day', highlights=['Sat', 'Sun'])

highlight-scatterplot-01

📊 Line plot with highlight

import seaborn as sns
df = sns.load_dataset('healthexp')

import plot_highlight as phl
phl.lineplot(data=df, x='Year', y='Life_Expectancy', hue='Country', highlights=['Japan', 'USA'])

highlight-lineplot-01

📊 Histgram with highlight

import seaborn as sns
df = sns.load_dataset('penguins')

import plot_highlight as phl
phl.histplot(data=df, x='flipper_length_mm', hue='species', highlights='Adelie')

highlight-histplot-01

License

This software is released under the MIT License, see LICENSE.

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

plot_highlight-0.1.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.

plot_highlight-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file plot_highlight-0.1.0.tar.gz.

File metadata

  • Download URL: plot_highlight-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for plot_highlight-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d771e7793d76f1b6e13a139aab060b73e745899d637b834a982183dfe127182b
MD5 8c09e21935769716d84736662bb96ee2
BLAKE2b-256 c11ec39974c880853f287ccf33dbf324c85bf29315fd136c307cd308346fe619

See more details on using hashes here.

File details

Details for the file plot_highlight-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: plot_highlight-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for plot_highlight-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1cfeda3c55f615a73046e82803c034e96671ca5b45d619ec42991504be0ebd7a
MD5 bbdf6980dc8fb2db781add28d49191cb
BLAKE2b-256 582de14343142293c351d3c23e2f51579f6abc234bbc533f6ff8bd9260232aef

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