expand axes extrema for heatmap edges
This commit is contained in:
parent
892d68e792
commit
ea976d5f08
@ -380,6 +380,15 @@ function expand_extrema!(sp::Subplot, d::KW)
|
|||||||
expand_extrema!(axis, ignorenan_minimum(data) - 0.5minimum(bw))
|
expand_extrema!(axis, ignorenan_minimum(data) - 0.5minimum(bw))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# expand for heatmaps
|
||||||
|
if d[:seriestype] == :heatmap
|
||||||
|
for letter in (:x, :y)
|
||||||
|
data = d[letter]
|
||||||
|
axis = sp[Symbol(letter, "axis")]
|
||||||
|
scale = get(d, Symbol(letter, "scale"), :identity)
|
||||||
|
expand_extrema!(axis, heatmap_edges(data, scale))
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function expand_extrema!(sp::Subplot, xmin, xmax, ymin, ymax)
|
function expand_extrema!(sp::Subplot, xmin, xmax, ymin, ymax)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user