added better error for Winston output_surface

This commit is contained in:
Thomas Breloff 2015-10-04 09:41:42 -05:00
parent 623ca1effc
commit 3fc5f87388
2 changed files with 38 additions and 93 deletions

File diff suppressed because one or more lines are too long

View File

@ -286,6 +286,9 @@ function Base.display(::PlotsDisplay, plt::Plot{WinstonPackage})
window, canvas, wplt = getWinstonItems(plt)
if window == nothing
if Winston.output_surface != :gtk
error("Gtk is the only supported display for Winston in Plots. Set `output_surface = gtk` in src/Winston.ini")
end
# initialize window
w,h = plt.initargs[:size]
canvas = Gtk.GtkCanvasLeaf()