From c74adc652117087beb0151242cc69de796a94d85 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Wed, 28 Feb 2018 23:00:46 +0100 Subject: [PATCH] check if a vector of the color black is passed to gr contour --- src/backends/gr.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/gr.jl b/src/backends/gr.jl index e320e8dd..7ff6f606 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -1066,7 +1066,7 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas) else GR.setlinetype(gr_linetype[series[:linestyle]]) GR.setlinewidth(max(0, series[:linewidth] / (sum(gr_plot_size) * 0.001))) - if plot_color(series[:linecolor]) == plot_color(:black) + if plot_color(series[:linecolor]) == [plot_color(:black)] GR.contour(x, y, h, z, 0 + (series[:contour_labels] == true ? 1 : 0)) else GR.contour(x, y, h, z, 1000 + (series[:contour_labels] == true ? 1 : 0))