We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f6e6e9 commit 198d7e3Copy full SHA for 198d7e3
2 files changed
ext/VortexStepMethodControlPlotsExt.jl
@@ -92,7 +92,7 @@ Display a plot at specified DPI.
92
# Keyword arguments
93
- `dpi`: Dots per inch for the figure (default: 130)
94
"""
95
-function VortexStepMethod.show_plot(fig; dpi=130)
+function VortexStepMethod.show_plot(fig::plt.Figure; dpi=130)
96
fig.set_dpi(dpi)
97
plt.display(fig)
98
end
test/plotting/test_plotting.jl
@@ -88,6 +88,11 @@ end
88
if backend == "Makie"
89
@test hasmethod(VortexStepMethod.show_plot, Tuple{Figure})
90
@test_throws MethodError VortexStepMethod.show_plot(nothing)
91
+ @test_nowarn VortexStepMethod.show_plot(fig)
+ else
+ FigType = plt.Figure
+ @test hasmethod(VortexStepMethod.show_plot, Tuple{FigType})
+ @test_throws MethodError VortexStepMethod.show_plot(nothing)
@test isfile(joinpath(save_dir,
0 commit comments