diff --git a/src/backends/gr.jl b/src/backends/gr.jl index c3573614..99782ea1 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -732,10 +732,10 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas) # recompute data if typeof(z) <: Surface - if st == :heatmap - expand_extrema!(sp[:xaxis], (x[1]-0.5*(x[2]-x[1]), x[end]+0.5*(x[end]-x[end-1]))) - expand_extrema!(sp[:yaxis], (y[1]-0.5*(y[2]-y[1]), y[end]+0.5*(y[end]-y[end-1]))) - end + # if st == :heatmap + # expand_extrema!(sp[:xaxis], (x[1]-0.5*(x[2]-x[1]), x[end]+0.5*(x[end]-x[end-1]))) + # expand_extrema!(sp[:yaxis], (y[1]-0.5*(y[2]-y[1]), y[end]+0.5*(y[end]-y[end-1]))) + # end z = vec(transpose_z(series, z.surf, false)) elseif ispolar(sp) if frng != nothing diff --git a/src/themes.jl b/src/themes.jl index 5bdf6fe6..3429585a 100644 --- a/src/themes.jl +++ b/src/themes.jl @@ -23,7 +23,7 @@ function theme(s::Symbol; kw...) # update the default gradient and other defaults thm = PlotThemes._themes[s] if thm.gradient != nothing - PlotUtils._default_gradient[] = s + PlotUtils._default_gradient[] = PlotThemes.gradient_name(s) end default(; bg = thm.bg_secondary,