matplotlib / matplotlib/matplotlib

Colorbar positioning improvements

Open
#18,752 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

topic: color/colorbar
Dominant language
Python
Stars
23.2k
Forks
8.5k
Avg merge
1d 6h
Merged PRs (30d)
66

Description

There are two todos, but I do wonder if they could just be follow up issues/PRs (to #18575)

1. documentation for `anchor`/`panchor` could be improved. If @QuLogic is not following the meaning I don't think most people will.
2. changing the gridspec upper and left pads to match non-gridspec. Obviously those are there to avoid decorators, and the real solution is to use `constrained_layout`.

I *personally* think these can be separate PRs but lets leave for a few hours for @QuLogic to weigh in.

_Originally posted by @jklymak in https://github.com/matplotlib/matplotlib/pull/18575#issuecomment-706568769_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading PR #18575 and the existing discussion around the `anchor` and `panchor` meanings. Then inspect how gridspec upper and left pads differ from non-gridspec behavior, including the stated relationship to `constrained_layout`. Done means the intended work is separated or scoped clearly, with documentation and positioning behavior updated as agreed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization, documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.