diff --git a/src/backends/gr.jl b/src/backends/gr.jl index eae244a9..6c913183 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -719,7 +719,10 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas) if st == :heatmap outside_ticks = true for ax in (sp[:xaxis], sp[:yaxis]) - ax[:scale] != :identity && warn("GR: heatmap with $(ax[:scale]) scale not supported.") + v = series[ax[:letter]] + if diff(collect(extrema(diff(v)))) > 1e-6*std(v) + warn("GR: heatmap only supported with equally spaced data.") + end end x, y = heatmap_edges(series[:x], sp[:xaxis][:scale]), heatmap_edges(series[:y], sp[:yaxis][:scale]) xy_lims = x[1], x[end], y[1], y[end]