Skip to content

Commit

Permalink
dep: increase minimal matplotlib version to 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed May 18, 2024
1 parent 26f300a commit a1c6b0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dependencies = [
[project.optional-dependencies]
doc = [
"m2r2>=0.2.8",
"matplotlib>=3",
"matplotlib>=3.7",
"meshzoo>=0.7",
"numpydoc>=1.1",
"pykrige>=1.5,<2",
Expand All @@ -68,7 +68,7 @@ doc = [
"sphinxcontrib-youtube>=1.1",
]
plotting = [
"matplotlib>=3",
"matplotlib>=3.7",
"pyvista>=0.40",
]
rust = ["gstools_core>=0.2.0,<1"]
Expand Down
7 changes: 0 additions & 7 deletions src/gstools/field/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,6 @@ def plot_nd(
)
rax.set_title(" Plane", loc="left")
radio = RadioButtons(rax, plane_names, activecolor="grey")
# make radio buttons circular
rpos = rax.get_position().get_points()
fh, fw = fig.get_figheight(), fig.get_figwidth()
rscale = (rpos[:, 1].ptp() / rpos[:, 0].ptp()) * (fh / fw)
for circ in radio.circles:
circ.set_radius(0.06)
circ.height /= rscale
elif mesh_type == "unstructured" and convex_hull:
# show convex hull in 2D
hull = ConvexHull(pos.T)
Expand Down

0 comments on commit a1c6b0f

Please sign in to comment.