fix histogram2D
This commit is contained in:
parent
ab820a5b76
commit
2b4cd34377
@ -72,8 +72,8 @@ function surface_to_vecs(x::AVec, y::AVec, s::Union{AMat,Surface})
|
|||||||
yn = Vector{eltype(y)}(undef, length(a))
|
yn = Vector{eltype(y)}(undef, length(a))
|
||||||
zn = Vector{eltype(s)}(undef, length(a))
|
zn = Vector{eltype(s)}(undef, length(a))
|
||||||
for (n, (i, j)) in enumerate(Tuple.(CartesianIndices(a)))
|
for (n, (i, j)) in enumerate(Tuple.(CartesianIndices(a)))
|
||||||
xn[n] = x[j]
|
xn[n] = x[i]
|
||||||
yn[n] = y[i]
|
yn[n] = y[j]
|
||||||
zn[n] = a[i, j]
|
zn[n] = a[i, j]
|
||||||
end
|
end
|
||||||
return xn, yn, zn
|
return xn, yn, zn
|
||||||
@ -505,6 +505,7 @@ end
|
|||||||
|
|
||||||
function pgfx_add_series!(::Val{:heatmap}, axis, series_opt, series, series_func, opt)
|
function pgfx_add_series!(::Val{:heatmap}, axis, series_opt, series, series_func, opt)
|
||||||
push!(axis.options, "view" => "{0}{90}")
|
push!(axis.options, "view" => "{0}{90}")
|
||||||
|
@show length(opt[:x]), length(opt[:y]), size(opt[:z])
|
||||||
push!(
|
push!(
|
||||||
series_opt,
|
series_opt,
|
||||||
"matrix plot*" => nothing,
|
"matrix plot*" => nothing,
|
||||||
|
|||||||
@ -1053,14 +1053,12 @@ _backend_skips = Dict(
|
|||||||
:pgfplotsx => [
|
:pgfplotsx => [
|
||||||
2, # animation
|
2, # animation
|
||||||
6, # images
|
6, # images
|
||||||
10, # histogram2d
|
|
||||||
16, # pgfplots thinks the upper panel is too small
|
16, # pgfplots thinks the upper panel is too small
|
||||||
25, # @df
|
25, # @df
|
||||||
30, # @df
|
30, # @df
|
||||||
31, # animation
|
31, # animation
|
||||||
32, # spy
|
32, # spy
|
||||||
38, # histogram2d
|
47, # mesh3
|
||||||
47, # mesh3d
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user