Skip to content

Commit

Permalink
added also test_plot_region_inversion
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-schmitt committed Dec 13, 2022
1 parent 8c8b2c0 commit c7d9045
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions oggm/tests/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,12 @@ def test_plot_region_inversion():
sm.set_topography(get_demo_file('srtm_oetztal.tif'))

# Give this to the plot function
fig, ax = plt.subplots()
graphics.plot_inversion(gdirs, smap=sm, ax=ax, linewidth=1.5, vmax=250)
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(15, 5))
graphics.plot_inversion(gdirs, smap=sm, ax=ax1, linewidth=1.5, vmax=250)

# test automatic definition of larger plotting grid with extend_plot_limit
graphics.plot_inversion(gdirs, ax=ax2, linewidth=1.5, vmax=250,
extend_plot_limit=True)

fig.tight_layout()
return fig
Expand Down

0 comments on commit c7d9045

Please sign in to comment.