utils
apply_high_quality(vectorial=False)
Sets the matplotlib output format to high quality or vectorial plots.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vectorial
|
bool
|
If True, sets the format to 'svg'. Otherwise, sets it to 'retina'. Defaults to False. |
False
|
Source code in study_da/plot/utils/maplotlib_utils.py
apply_nicer_style(remove_right_upper_spines=True)
Applies a nicer style to plots, using the whitegrid seaborn theme.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
remove_right_upper_spines
|
bool
|
If True, removes the right and upper spines from the plots. Defaults to True. |
True
|
Source code in study_da/plot/utils/maplotlib_utils.py
apply_standard_quality()
Sets the matplotlib output format to standard quality ("png" argument).
use_default_fonts()
Configures matplotlib to use the default DejaVu Sans fonts.
Source code in study_da/plot/utils/maplotlib_utils.py
use_latex_fonts(italic=False)
Configures matplotlib to use LaTeX fonts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
italic
|
bool
|
If True, sets the default mathtext to italic. Otherwise, sets it to regular. Defaults to False. |
False
|