working on unicodeplots

This commit is contained in:
Thomas Breloff 2015-09-12 16:49:02 -04:00
parent f4573f7e87
commit 475b46f516

View File

@ -116,8 +116,11 @@ end
function savepng(::UnicodePlotsPackage, plt::PlottingObject, fn::String, args...) # = error("currently unsupported") function savepng(::UnicodePlotsPackage, plt::PlottingObject, fn::String, args...) # = error("currently unsupported")
display(plt) display(plt)
@osx_only begin try
run(`screencapture -w $fn`) # run(`screencapture -w $fn`)
using PyCall
@pyimport pyscreenshot as pss
# todo: grab screen to $fn
return return
end end
error("Can only savepng on osx with UnicodePlots.") error("Can only savepng on osx with UnicodePlots.")