aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-03-03 12:16:58 -0800
committerbnewbold <bnewbold@robocracy.org>2016-03-03 12:26:20 -0800
commitd5d207f0a13b883a408fa6a7a948cabf1754c9b3 (patch)
tree36b523240d5ae8be5a019078a0a0aa38f9da2fe9 /src
parente18d97868bd39cc762d37ecd696c2b234143938b (diff)
downloadPyX.jl-d5d207f0a13b883a408fa6a7a948cabf1754c9b3.tar.gz
PyX.jl-d5d207f0a13b883a408fa6a7a948cabf1754c9b3.zip
change pipeGS's 'device' from kwarg to arg
Diffstat (limited to 'src')
-rw-r--r--src/PyX.jl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PyX.jl b/src/PyX.jl
index 55bb610..41e6a9e 100644
--- a/src/PyX.jl
+++ b/src/PyX.jl
@@ -42,8 +42,8 @@ writemime(io::IO, ::MIME"application/pdf", c::PyxCanvas) = writePDFfile(c, io)
writemime(io::IO, ::MIME"application/eps", c::PyxCanvas) = writeEPSfile(c, io)
writemime(io::IO, ::MIME"image/eps", c::PyxCanvas) = writeEPSfile(c, io)
writemime(io::IO, ::MIME"application/postscript", c::PyxCanvas) = writePSfile(c, io)
-writemime(io::IO, ::MIME"image/png", c::PyxCanvas) = write(io, pipeGS(c; device="png16m"))
-writemime(io::IO, ::MIME"image/jpeg", c::PyxCanvas) = write(io, pipeGS(c; device="jpeg"))
+writemime(io::IO, ::MIME"image/png", c::PyxCanvas) = write(io, pipeGS(c, "png16m"))
+writemime(io::IO, ::MIME"image/jpeg", c::PyxCanvas) = write(io, pipeGS(c, "jpeg"))
####### Exports
export canvas, path, deco, deco_stroked, deco_filled
@@ -128,7 +128,7 @@ function __init__()
pytype_mapping(canvas.canvas, PyxCanvas)
end
-function pipeGS(g::PyxCanvas, args...; device="png16m", kwargs...)
+function pipeGS(g::PyxCanvas, device="png16m", args...; kwargs...)
f = g[:pipeGS](args...; device=device, kwargs...)
d = f[:read]()
f[:close]()