Skip to content

series_annotations in bar plots in unusual positions for gr and pyplot backends #761

@JobJob

Description

@JobJob

Making a bar plot and trying to get labels on the top of each bar using series_annotations:

using Plots
gr()
# pyplot()
# plotly()
data = 1:3
labels = string.(data)
bar(data; series_annotations=labels, ylims=(0,5)) 

This works well with the Plotly backend, the labels go at the middle of the top of each bar.

With the GR and PyPlot backends the labels go in funny places

Plotly:
plotly bar

PyPlot:
pyplot bar

GR:
gr bar

Anyway clearly this package rocks in that I can just try another backend with a one line change and it works or looks better or is faster etc.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions