JuliaPlots / JuliaPlots/PlotlyJS.jl

example code error for `heatmaps` in doc

Open
#432 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
444
Forks
86
PR merge metrics
No merged PRs in 30d

Description

@PlotlyJS v0.18.8

Original doc (wrong):
```julia
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:

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.