Skip to content

Commit

Permalink
Plot: set contour_plot=True by default for 2D plots
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Mar 14, 2021
1 parent 07c2e67 commit 638f2bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/01_random_field/04_srf_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
y2 = rng.randint(20, 80, size=10000)

field2 = srf((x2, y2))
ax = srf.plot(contour_plot=True)
ax = srf.plot()
ax.tricontourf(x, y, field1.T, levels=256)
ax.set_aspect("equal")

Expand Down
4 changes: 2 additions & 2 deletions gstools/field/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def plot_nd(
aspect="quad",
show_colorbar=True,
convex_hull=False,
contour_plot=False,
contour_plot=True,
): # pragma: no cover
"""
Plot field in arbitrary dimensions.
Expand Down Expand Up @@ -147,7 +147,7 @@ def plot_nd(
Whether to show the convex hull in 2D with unstructured data.
The default is False.
contour_plot : :class:`bool`, optional
Whether to use a contour-plot in 2D. The default is False.
Whether to use a contour-plot in 2D. The default is True.
Returns
-------
Expand Down

0 comments on commit 638f2bc

Please sign in to comment.