Skip to content

Colorbar size not scaled with figsize with newest MPL #3183

@emdupre

Description

@emdupre

This recent NeuroStars post suggests that we are not properly supporting colorbars with the newest matplotlib release (3.5.1). Please see the post for an example rendering.

Nilearn version: 0.9.0

Expected behavior

The colorbar size would be appropriately linked to the figsize.

Actual behavior

The colorbar size does not scale with the figure.

Steps and code to reproduce bug

plotting.plot_stat_map(img, cut_coords=[20, -50, -8], colorbar = True, draw_cross = False, cmap =cyan_copper’, vmax = 7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugfor bug reportsPlottingThe issue is related to plotting functionalities.Priority: highThe task is urgent and needs to be addressed as soon as possible.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions