Skip to content

Commit

Permalink
gera estilo para versão antiga python
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloneves committed Nov 9, 2021
1 parent a16a07b commit a7b7c74
Show file tree
Hide file tree
Showing 2 changed files with 774 additions and 1 deletion.
5 changes: 4 additions & 1 deletion charp.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.text import Text
from pathlib import Path

plt.style.use("./paulo.mplstyle")
default_style = Path(__file__).parent / "paulo.mplstyle"
assert default_style.exists(), "Arquivo de estilo padrão não encontrado: " + default_style
plt.style.use(default_style)

# default is orange
color_highlight = plt.rcParams["lines.color"] # type: ignore
Expand Down
Loading

0 comments on commit a7b7c74

Please sign in to comment.