diff --git a/src/scientific_plots/__init__.py b/src/scientific_plots/__init__.py index 2e149d1c2d9d96e664c16cfede7ab00b12fc7735..169c5e1dca4d94a9a34bc701c5de6abc63c1aa7d 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 5153bb1a9ceecd811919fc1ec73717e523c9ac3e..17c4d22dde99f4a5d65e0e4a6fd970f1b83d9fdd 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