From f778fefdecd7a6ce275ae017ad354d55c4031442 Mon Sep 17 00:00:00 2001 From: Felix Fischer <f.fischer@ifas.rwth-aachen.de> Date: Thu, 2 Nov 2023 15:02:15 +0100 Subject: [PATCH] remove all unnecasary files --- src/scientific_plots/__init__.py | 2 +- src/scientific_plots/default_plots.py | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/scientific_plots/__init__.py b/src/scientific_plots/__init__.py index 2e149d1..169c5e1 100644 --- a/src/scientific_plots/__init__.py +++ b/src/scientific_plots/__init__.py @@ -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.7.18" +__version__ = "1.8.0" diff --git a/src/scientific_plots/default_plots.py b/src/scientific_plots/default_plots.py index 5153bb1..17c4d22 100644 --- a/src/scientific_plots/default_plots.py +++ b/src/scientific_plots/default_plots.py @@ -24,7 +24,7 @@ mpl.use("Agg") In = TypeVar("In", List[float], Tuple[float], Vector) -In2D = TypeVar("In2D", List[list[float]], List[Vector], Tuple[Vector], +In2D = TypeVar("In2D", List[List[float]], List[Vector], Tuple[Vector], Matrix) @@ -229,7 +229,7 @@ def plot_surface(X: In2D, Y: In2D, Z: In2D, log_scale: bool = False, set_z_lim: bool = True, colorscheme: str = "rwth_gradient_simple", - figsize: tuple[float, float] = (4.33, 3.5), + figsize: Tuple[float, float] = (4.33, 3.5), labelpad: Optional[float] = None, nbins: Optional[int] = None, xlim: Optional[Tuple[float, float]] = None, @@ -501,9 +501,9 @@ def two_axis_plots(x1: In, y1: In, label1: str, xlabel: str, ylabel: str, ylabel2: str, filename: Union[Path, str], *, - ticks: Optional[tuple[list[float], list[str]]] = None, - xlim: Optional[tuple[float, float]] = None, - color: tuple[int, int] = (0, 1))\ + ticks: Optional[Tuple[List[float], List[str]]] = None, + xlim: Optional[Tuple[float, float]] = None, + color: Tuple[int, int] = (0, 1))\ -> None: """Create a simple 1D plot with two different graphs inside of a single plot with two y-axis. @@ -588,9 +588,9 @@ def three_axis_plots(x1: In, y1: In, label1: str, xlabel: str, ylabel: str, ylabel2: str, ylabel3: str, filename: Union[Path, str], *, - ticks: Optional[tuple[list[float], list[str]]] = None, - xlim: Optional[tuple[float, float]] = None, - color: tuple[int, int, int] = (0, 1, 2), + ticks: Optional[Tuple[List[float], List[str]]] = None, + xlim: Optional[Tuple[float, float]] = None, + color: Tuple[int, int, int] = (0, 1, 2), legend: bool = True)\ -> None: """Create a simple 1D plot with two different graphs inside of a single -- GitLab