Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Misaligned cbar... #44

Description

@zwep

Hi,

here is a short note/message... When using the Corrplot class and adding a colorbar, the ticks were a bit misaligned.
I modified the plot function to return the cbar object and then re-define the ticks by so

scalarmap = cm.ScalarMappable(norm=mcolors.Normalize(*[-1, 1]), cmap='seismic_r') cb_obj.update_normal(scalarmap) cb_obj.set_ticks([-1, -0.5, 0, 0.5, 1]) cb_obj.ax.tick_params(size=0)
This, somehow, did make a proper alignment of the ticks

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions