Skip to content
Snippets Groups Projects
Commit fcb68aa8 authored by Felix Fischer's avatar Felix Fischer :shrimp:
Browse files

Added png for 2D surfaces

parent ceaa8e9f
No related branches found
No related tags found
1 merge request!59Added png for 2D surfaces
Pipeline #1642111 passed with warnings
......@@ -5,4 +5,4 @@ useful across several different projects and repositories. It also contains
stub-files with several data-type annotations for scipy and matplot-lib
functions."""
__version__ = "1.8.7"
__version__ = "1.8.8"
......@@ -553,8 +553,8 @@ def apply_styles(plot_function: Optional[Callable[Params, None]] = None, *,
Arguments
--------
three_d: Create a use this option for 3D-plots
fallback: switch directly to the fallback-style (for debug)
three_d: Use this option for 3D-plots.
fallback: Switch directly to the fallback-style (for debug).
"""
# pylint: disable=too-many-statements
......@@ -614,11 +614,14 @@ def apply_styles(plot_function: Optional[Callable[Params, None]] = None, *,
plt.set_cmap("Greys")
new_kwargs = copy(kwargs)
new_kwargs["colorscheme"] = "Greys"
plt.savefig = new_save_simple("grayscale", png=True,
small=False,
slim=True)
else:
new_kwargs = kwargs
plt.savefig = new_save_simple("grayscale", png=False,
small=not three_d,
slim=not three_d)
small=True,
slim=True)
_plot_function(*args, **new_kwargs)
plt.close("all")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment