Skip to content

Commit 4f9b1a7

Browse files
Julian Wolfstevengj
authored andcommitted
add support for args and kws to plt.show() (#310)
* add support for args and kwargs to plt.show() now that block is a valid keyword * remove (non-keyword) varargs from plt.show to avoid ambiguity with Base.show(io::IO, args...)
1 parent ababb57 commit 4f9b1a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PyPlot.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ end
175175

176176
@doc LazyHelp(plt,"step") step(x, y; kws...) = pycall(plt["step"], PyAny, x, y; kws...)
177177

178-
Base.show() = begin pycall(plt["show"], PyObject); nothing; end
178+
Base.show(; kws...) = begin pycall(plt["show"], PyObject; kws...); nothing; end
179179

180180
close(f::Figure) = close(f[:number])
181181
function close(f::Integer)

0 commit comments

Comments
 (0)