heliosdrm / GRUtils.jl

Tools for using the GR framework in Julia
Other
31 stars 6 forks source link

adding annotations removes tick labels #88

Closed ericphanson closed 3 years ago

ericphanson commented 3 years ago

E.g.

using GRUtils
labels = string.('a':'f')
vals = rand(6)*10
barplot(labels, vals)

testplt

Looks fine, but if we add annotations:

annotations(1:6, vals .+1, string.(round.(vals; digits=2)), halign="center")

testplt_annotations

we lose every other tick label. We can fix it by xticks(1) though:

xticks(1)

testplt_annotations_fixed

heliosdrm commented 3 years ago

Thanks for reporting. It should be fixed by #89, I hope.