Skip to content

bug: unexpected behavior of inset colorbar #336

Description

@syrte

Description

Unexpected behavior of inset colorbar with keywords tickloc and labelloc.

Steps to reproduce

The code below

import proplot as pplt
import numpy as np

fig, axes = pplt.subplots(None, 1, 2)
cm = axes[0].scatter(*np.random.rand(4, 10), vmin=0, vmax=1)

axes[0].colorbar(cm, loc='ll', length=10, width=0.8, label='abc', tickloc='top')
axes[1].colorbar(cm, loc='ll', length=10, width=0.8, label='abc', labelloc='top')

gives this

image

If I understand correctly,
left panel: we would expect the ticks shown at the top when tickloc='top' is set.
right panel: strange padding when placing the label on the top.

I tried to fix the padding in the right panel, it turns out not easy for me ...

Proplot version

Paste the results of import matplotlib; print(matplotlib.__version__); import proplot; print(proplot.version)here.

3.4.3
0.9.5.post284

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions