make alternative plots_heatmap seriestype
This commit is contained in:
parent
7a702489d0
commit
af60d03060
@ -183,6 +183,7 @@ include("output.jl")
|
|||||||
@shorthands histogram2d
|
@shorthands histogram2d
|
||||||
@shorthands density
|
@shorthands density
|
||||||
@shorthands heatmap
|
@shorthands heatmap
|
||||||
|
@shorthands plots_heatmap
|
||||||
@shorthands hexbin
|
@shorthands hexbin
|
||||||
@shorthands sticks
|
@shorthands sticks
|
||||||
@shorthands hline
|
@shorthands hline
|
||||||
|
|||||||
@ -390,8 +390,8 @@ end
|
|||||||
@deps bar shape
|
@deps bar shape
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Heatmap
|
# Plots Heatmap
|
||||||
@recipe function f(::Type{Val{:heatmapr}}, x, y, z)
|
@recipe function f(::Type{Val{:plots_heatmap}}, x, y, z)
|
||||||
xe, ye = heatmap_edges(x), heatmap_edges(y)
|
xe, ye = heatmap_edges(x), heatmap_edges(y)
|
||||||
m, n = size(z.surf)
|
m, n = size(z.surf)
|
||||||
x_pts, y_pts = fill(NaN, 6 * m * n), fill(NaN, 6 * m * n)
|
x_pts, y_pts = fill(NaN, 6 * m * n), fill(NaN, 6 * m * n)
|
||||||
@ -415,7 +415,7 @@ end
|
|||||||
label := ""
|
label := ""
|
||||||
()
|
()
|
||||||
end
|
end
|
||||||
@deps heatmapr shape
|
@deps plots_heatmap shape
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Histograms
|
# Histograms
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
const FuncOrFuncs{F} = Union{F, Vector{F}, Matrix{F}}
|
const FuncOrFuncs{F} = Union{F, Vector{F}, Matrix{F}}
|
||||||
|
|
||||||
all3D(d::KW) = trueOrAllTrue(st -> st in (:contour, :contourf, :heatmap, :surface, :wireframe, :contour3d, :image, :heatmapr), get(d, :seriestype, :none))
|
all3D(d::KW) = trueOrAllTrue(st -> st in (:contour, :contourf, :heatmap, :surface, :wireframe, :contour3d, :image, :plots_heatmap), get(d, :seriestype, :none))
|
||||||
|
|
||||||
# unknown
|
# unknown
|
||||||
convertToAnyVector(x, d::KW) = error("No user recipe defined for $(typeof(x))")
|
convertToAnyVector(x, d::KW) = error("No user recipe defined for $(typeof(x))")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user