-
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a16cc5
commit be2087a
Showing
2 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,12 +25,14 @@ function _show_pdfbackends(io::IO, ::MIME"image/png", plt::Plot) | |
write(io, read(open(pngfn), String)) | ||
end | ||
|
||
for be in ( | ||
Plots.PGFPlotsBackend, # NOTE: I guess this can be removed in [email protected] | ||
) | ||
showable(MIME"image/png"(), Plot{be}) && continue | ||
@eval Plots._show(io::IO, mime::MIME"image/png", plt::Plot{$be}) = | ||
_show_pdfbackends(io, mime, plt) | ||
end | ||
# Possibly need to create another extension that has both pgfplotsx and showio | ||
# delete for now, as testing for pgfplotsx is hard; TODO restore later at @2.0 | ||
# for be in ( | ||
# Plots.PGFPlotsBackend, # NOTE: I guess this can be removed in [email protected] | ||
# ) | ||
# showable(MIME"image/png"(), Plot{be}) && continue | ||
# @eval Plots._show(io::IO, mime::MIME"image/png", plt::Plot{$be}) = | ||
# _show_pdfbackends(io, mime, plt) | ||
# end | ||
|
||
end # module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters