really fix saving

This commit is contained in:
Anshul Singhvi 2020-05-13 18:59:45 +05:30 committed by GitHub
parent d337c4edae
commit 61b5568e5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1942,7 +1942,7 @@ for (mime, fmt) in (
filepath = tempname() * "." * $fmt filepath = tempname() * "." * $fmt
withenv( withenv(
"GKS_ENCODING" => "utf8", "GKS_ENCODING" => "utf8",
"GKSwstype" => fmt, "GKSwstype" => $fmt,
"GKS_FILEPATH" => filepath "GKS_FILEPATH" => filepath
) do ) do
gr_display(plt, $fmt) gr_display(plt, $fmt)
@ -1966,8 +1966,9 @@ function _display(plt::Plot{GRBackend})
rm(filepath) rm(filepath)
end end
else else
ENV["GKS_DOUBLE_BUF"] = true withenv("GKS_DOUBLE_BUF" => true) do
gr_display(plt) gr_display(plt)
end
end end
end end