Skip to content

Commit cc633dd

Browse files
authored
fix close(::Figure), closes #21
1 parent 0077f89 commit cc633dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PythonPlot.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Base.close(f::Figure) = plotclose(f)
190190

191191
# rename to avoid type piracy:
192192
@doc LazyHelp(pyplot,"close") plotclose() = pyplot.close()
193-
plotclose(f::Figure) = pyconvert(Int, plotclose(f.number))
193+
plotclose(f::Figure) = pyconvert(Int, plotclose(pyconvert(Int, f.number)))
194194
function plotclose(f::Integer)
195195
pop!(withfig_fignums, f, f)
196196
pyplot.close(f)

0 commit comments

Comments
 (0)