Skip to content

Commit

Permalink
Merge pull request #907 from tauu/pull-request/82fe1e13
Browse files Browse the repository at this point in the history
fixed show methods using Cairo for julia v0.5
  • Loading branch information
tlnagy committed Oct 6, 2016
2 parents 8dda492 + 6e49114 commit 3464059
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 @@ -986,6 +986,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 @@ -994,9 +995,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 3464059

Please sign in to comment.