-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed757b6
commit 20013f4
Showing
4 changed files
with
196 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
.venv/ | ||
__pycache__/ | ||
.ruff_cache | ||
.idea/ | ||
*.csv | ||
*.sqlite3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Plot settings: Normal font or LaTeX font.""" | ||
from matplotlib import pyplot as plt | ||
|
||
def global_plot_settings_font_latex() -> None: | ||
""" | ||
Set the plot fonts to LaTeX-font. | ||
:return: None | ||
:rtype: None | ||
""" | ||
plt.rcParams.update({ | ||
"text.usetex": True, | ||
"font.family": "serif", | ||
"font.serif": ["Palatino"], | ||
}) | ||
|
||
|
||
def global_plot_settings_font_sansserif() -> None: | ||
""" | ||
Set the plot fonts to Sans-Serif-Font. | ||
:return: None | ||
:rtype: None | ||
""" | ||
plt.rcParams.update({ | ||
"text.usetex": True, | ||
"font.family": "sans-serif", | ||
"font.sans-serif": ["Helvetica"]}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters