JuliaPlots / PlotlyJS.jl

Julia library for plotting with plotly.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example code error for `heatmaps` in doc

touchft opened this issue · comments

@PlotlyJS v0.18.8

Original doc (wrong):

function heatmap2()
    trace = heatmap(
        x=["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
        y=["Morning", "Afternoon", "Evening"],
        z=rand(1:30, 5, 3) #  <---- Here error is!
    )
    plot(trace)
end
heatmap2()

Correct code:

function heatmap2()
    trace = heatmap(
        x=["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
        y=["Morning", "Afternoon", "Evening"],
        z=rand(1:30, 3,5)
    )
    plot(trace)
end
heatmap2()