added better error for Winston output_surface
This commit is contained in:
parent
623ca1effc
commit
3fc5f87388
File diff suppressed because one or more lines are too long
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user