diff --git a/README.md b/README.md index eaf87549..8d36a1fd 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,9 @@ All notable changes to this project will be documented in this file. The format ## [Unreleased] +### Added +- Add `xscale` and `yscale` arguments to `CharacteristicCurve.plot()`. + ## [5.1.0] - 2022-09-09 ### Changed diff --git a/felupe/__about__.py b/felupe/__about__.py index 0d72820f..6c235c59 100644 --- a/felupe/__about__.py +++ b/felupe/__about__.py @@ -1 +1 @@ -__version__ = "5.1.0" +__version__ = "5.2.0" diff --git a/felupe/mechanics/_curve.py b/felupe/mechanics/_curve.py index d3831be7..56fda933 100644 --- a/felupe/mechanics/_curve.py +++ b/felupe/mechanics/_curve.py @@ -53,6 +53,8 @@ def plot( yaxis=0, xlabel="x", ylabel="y", + xscale=1, + yscale=1, fig=None, ax=None, linestyle=".-", @@ -70,7 +72,7 @@ def plot( if fig is None or ax is None: fig, ax = plt.subplots() - ax.plot(x[:, xaxis], y[:, yaxis], linestyle) + ax.plot(x[:, xaxis] * xscale, y[:, yaxis] * yscale, linestyle) ax.set_xlabel(xlabel) ax.set_ylabel(ylabel) diff --git a/pyproject.toml b/pyproject.toml index 72f91b70..e3d6da76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "felupe" -version = "5.1.0" +version = "5.2.0" description = "Finite Element Analysis" readme = "README.md" requires-python = ">=3.6" diff --git a/setup.cfg b/setup.cfg index fdaa993c..7b63690f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = felupe -version = 5.1.0 +version = 5.2.0 author = Andreas Dutzler author_email = a.dutzler@gmail.com description = Finite Element Analysis