Move images to assets
14
Makefile
@ -17,10 +17,10 @@ all:
|
||||
|
||||
# Make catwalks
|
||||
python scripts/create_example_plots.py
|
||||
catwalk examples/latte/plot.png examples/frappe/plot.png examples/macchiato/plot.png examples/mocha/plot.png -o examples/catwalks/plot.png
|
||||
catwalk examples/latte/scatter.png examples/frappe/scatter.png examples/macchiato/scatter.png examples/mocha/scatter.png -o examples/catwalks/scatter.png
|
||||
catwalk examples/latte/bar.png examples/frappe/bar.png examples/macchiato/bar.png examples/mocha/bar.png -o examples/catwalks/bar.png
|
||||
catwalk examples/latte/patches.png examples/frappe/patches.png examples/macchiato/patches.png examples/mocha/patches.png -o examples/catwalks/patches.png
|
||||
catwalk examples/latte/boxplot.png examples/frappe/boxplot.png examples/macchiato/boxplot.png examples/mocha/boxplot.png -o examples/catwalks/boxplot.png
|
||||
catwalk examples/latte/palette.png examples/frappe/palette.png examples/macchiato/palette.png examples/mocha/palette.png -o examples/catwalks/palette.png
|
||||
catwalk examples/latte/imshow.png examples/frappe/imshow.png examples/macchiato/imshow.png examples/mocha/imshow.png -o examples/catwalks/imshow.png
|
||||
catwalk assets/latte/plot.png assets/frappe/plot.png assets/macchiato/plot.png assets/mocha/plot.png -o assets/catwalks/plot.png
|
||||
catwalk assets/latte/scatter.png assets/frappe/scatter.png assets/macchiato/scatter.png assets/mocha/scatter.png -o assets/catwalks/scatter.png
|
||||
catwalk assets/latte/bar.png assets/frappe/bar.png assets/macchiato/bar.png assets/mocha/bar.png -o assets/catwalks/bar.png
|
||||
catwalk assets/latte/patches.png assets/frappe/patches.png assets/macchiato/patches.png assets/mocha/patches.png -o assets/catwalks/patches.png
|
||||
catwalk assets/latte/boxplot.png assets/frappe/boxplot.png assets/macchiato/boxplot.png assets/mocha/boxplot.png -o assets/catwalks/boxplot.png
|
||||
catwalk assets/latte/palette.png assets/frappe/palette.png assets/macchiato/palette.png assets/mocha/palette.png -o assets/catwalks/palette.png
|
||||
catwalk assets/latte/imshow.png assets/frappe/imshow.png assets/macchiato/imshow.png assets/mocha/imshow.png -o assets/catwalks/imshow.png
|
||||
|
||||
14
README.md
@ -12,39 +12,39 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/examples/catwalks/plot.png"/>
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/assets/catwalks/plot.png"/>
|
||||
</p>
|
||||
|
||||
## Previews
|
||||
|
||||
<details>
|
||||
<summary>Line plot</summary>
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/examples/catwalks/plot.png"/>
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/assets/catwalks/plot.png"/>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Bar plot</summary>
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/examples/catwalks/bar.png"/>
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/assets/catwalks/bar.png"/>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Box plot</summary>
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/examples/catwalks/boxplot.png"/>
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/assets/catwalks/boxplot.png"/>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Scatter plot</summary>
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/examples/catwalks/scatter.png"/>
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/assets/catwalks/scatter.png"/>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Patches</summary>
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/examples/catwalks/patches.png"/>
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/assets/catwalks/patches.png"/>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Colormap</summary>
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/examples/catwalks/imshow.png"/>
|
||||
<img src="https://raw.githubusercontent.com/brambozz/matplotlib-catppuccin/main/assets/catwalks/imshow.png"/>
|
||||
</details>
|
||||
|
||||
## Usage
|
||||
|
||||
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
BIN
assets/catwalks/imshow.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 183 KiB After Width: | Height: | Size: 183 KiB |
|
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 176 KiB After Width: | Height: | Size: 176 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
BIN
assets/frappe/imshow.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 158 KiB |
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 161 KiB After Width: | Height: | Size: 161 KiB |
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
BIN
assets/latte/imshow.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 153 KiB |
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 159 KiB After Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
BIN
assets/macchiato/imshow.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 158 KiB |
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 163 KiB After Width: | Height: | Size: 163 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
BIN
assets/mocha/imshow.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 154 KiB After Width: | Height: | Size: 154 KiB |
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 164 KiB After Width: | Height: | Size: 164 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 15 KiB |
@ -10,7 +10,7 @@ from pathlib import Path
|
||||
dpi = 200
|
||||
for palette_name in palettes:
|
||||
mpl.style.use(palette_name)
|
||||
palette_path = Path("examples") / palette_name
|
||||
palette_path = Path("assets") / palette_name
|
||||
|
||||
# Plot palette separately
|
||||
fig = plot_palette(palette_name)
|
||||
|
||||