Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shiro46mt/plot-highlight
https://github.com/shiro46mt/plot-highlight
matplotlib python-package seaborn
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/shiro46mt/plot-highlight
- Owner: shiro46mt
- License: mit
- Created: 2023-09-30T13:07:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-30T13:08:13.000Z (over 1 year ago)
- Last Synced: 2024-11-21T19:53:00.729Z (about 2 months ago)
- Topics: matplotlib, python-package, seaborn
- Language: Jupyter Notebook
- Homepage: https://pypi.org/project/plot-highlight/
- Size: 364 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Plot Highlight
plot_highlight is a Python visualization library based on [seaborn](https://seaborn.pydata.org).This liblary is inspired by [gghighlight](https://yutannihilation.github.io/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
```python
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](https://raw.githubusercontent.com/shiro46mt/plot-highlight/main/example/highlight-scatterplot-01.png)## 📊 Line plot with highlight
```python
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](https://raw.githubusercontent.com/shiro46mt/plot-highlight/main/example/highlight-lineplot-01.png)## 📊 Histgram with highlight
```python
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](https://raw.githubusercontent.com/shiro46mt/plot-highlight/main/example/highlight-histplot-01.png)# License
This software is released under the MIT License, see LICENSE.