-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[ENH]: Allow list of padding values for bar_label #29647
Copy link
Copy link
Closed
Labels
Good first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!New feature
Milestone
Description
Problem
Sometimes when adding labels to bar plots the labels will overlap another item and need padding. In this example the label "300" (column D) is too low and overlaps other text. Ideally I could just provide padding as a list to bar_label so that I can target this specific label (instead of the current all-or-nothing float value):

With manually added labels I can add padding to just the desired label, but it would be nice as a built-in option:

Proposed solution
Add logic to check if the padding parameter of bar_label is an appropriate-length iterable and apply padding accordingly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Good first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!New feature