Skip to content

Inset colorbar's title is out of the frame with refaspect #592

@yoichi-kazama

Description

@yoichi-kazama

I am new to UltraPlot and am not sure if this is a bug or an intended behavior.

The inset colorbar's title is not included with the frame if refaspect is set for the figure.

import numpy as np
import ultraplot as uplt

# fig, axs = uplt.subplots(refwidth=4)  # ok
fig, axs = uplt.subplots(refaspect=2)  # fail

axs.pcolormesh(
    np.random.rand(20, 30), vmin=0, vmax=1,
    colorbar='ul',    
    colorbar_kw=dict(
        label='title',
    ),
)
Image

UltraPlot version: '2.0.1'
JupyterLab version: 4.5.4 on MS Edge 145.0.3800.70, Windows11
Jupyter server on Ubuntu 24.04.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions