make alternative plots_heatmap seriestype

This commit is contained in:
Daniel Schwabeneder 2018-04-13 16:14:03 +02:00
parent 7a702489d0
commit af60d03060
3 changed files with 5 additions and 4 deletions

View File

@ -183,6 +183,7 @@ include("output.jl")
@shorthands histogram2d
@shorthands density
@shorthands heatmap
@shorthands plots_heatmap
@shorthands hexbin
@shorthands sticks
@shorthands hline

View File

@ -390,8 +390,8 @@ end
@deps bar shape
# ---------------------------------------------------------------------------
# Heatmap
@recipe function f(::Type{Val{:heatmapr}}, x, y, z)
# Plots Heatmap
@recipe function f(::Type{Val{:plots_heatmap}}, x, y, z)
xe, ye = heatmap_edges(x), heatmap_edges(y)
m, n = size(z.surf)
x_pts, y_pts = fill(NaN, 6 * m * n), fill(NaN, 6 * m * n)
@ -415,7 +415,7 @@ end
label := ""
()
end
@deps heatmapr shape
@deps plots_heatmap shape
# ---------------------------------------------------------------------------
# Histograms

View File

@ -8,7 +8,7 @@
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
convertToAnyVector(x, d::KW) = error("No user recipe defined for $(typeof(x))")