Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy-edit the standalone colorbar tutorial #27253

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Nov 2, 2023

  • The tutorial is mostly about making standalone colorbars, so use that as title.
  • Most users will still want the colorbar next to an existing axes, so explain how to do that.
  • "Extended colorbar with continuous colorscale" is first about discrete colorbars (extensions are a second point), so adjust the title; also it already needs to introduce BoundaryNorm. Adjust the next example's text accordingly as well, as it now only needs to introduce ListedColormap.
  • In that next example, describe the additional kwargs to colorbar() in a bullet list.
  • More consistently use fully qualified names the first time a new class is introduced, and unqualified names thereafter.
  • Use constrained layout instead of manually adjusting figure geometries.
  • Minor additional tweaks.

PR summary

PR checklist

- The tutorial is mostly about making standalone colorbars, so use that
  as title.
- Most users will still want the colorbar next to an existing axes, so
  explain how to do that.
- "Extended colorbar with continuous colorscale" is first about discrete
  colorbars (extensions are a second point), so adjust the title; also
  it already needs to introduce BoundaryNorm.  Adjust the next example's
  text accordingly as well, as it now only needs to introduce
  ListedColormap.
- In that next example, describe the additional kwargs to colorbar() in
  a bullet list.
- More consistently use fully qualified names the first time a new class
  is introduced, and unqualified names thereafter.
- Use constrained layout instead of manually adjusting figure
  geometries.
- Minor additional tweaks.
@tacaswell tacaswell added this to the v3.8.2 milestone Nov 2, 2023
@tacaswell tacaswell merged commit bff9593 into matplotlib:main Nov 2, 2023
19 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 2, 2023
tacaswell added a commit that referenced this pull request Nov 2, 2023
…253-on-v3.8.x

Backport PR #27253 on branch v3.8.x (Copy-edit the standalone colorbar tutorial)
@anntzer anntzer deleted the cd branch November 2, 2023 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants