I would like to add a point to a graph, like a heatmap.
It works fine if I do
but if use
where a is a variable Int64, I get the error unexpected ]. Removing ] does not change anything
Your issue is not really a plotting issue but a parsing issue. For legal numbers, the parser interprets a dot as shorthand for
.0, but this doesn’t work for variables, where it is interpreted as field access (as in
julia> a = 1
ERROR: syntax: unexpected "]"
So try removing the dot in your code. For plotting points also consider using
scatter instead of
Very clear, it works now. Thanks.