Skip to content

Commit

Permalink
Merge 6e49114 into 22d4659
Browse files Browse the repository at this point in the history
  • Loading branch information
tauu committed Oct 4, 2016
2 parents 22d4659 + 6e49114 commit b7544d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Gadfly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ end

try
getfield(Compose, :Cairo) # throws if Cairo isn't being used
global show
@compat function show(io::IO, ::MIME"image/png", p::Plot)
draw(PNG(io, Compose.default_graphic_width,
Compose.default_graphic_height), p)
Expand All @@ -977,9 +978,10 @@ end

try
getfield(Compose, :Cairo) # throws if Cairo isn't being used
global show
@compat function show(io::IO, ::MIME"application/postscript", p::Plot)
draw(PS(io, Compose.default_graphic_width,
Compose.default_graphic_height), p)
Compose.default_graphic_height), p);
end
end

Expand Down

0 comments on commit b7544d2

Please sign in to comment.