moshi4 / pyCirclize

Circular visualization in Python (Circos Plot, Chord Diagram, Radar Chart)
https://moshi4.github.io/pyCirclize/
MIT License
758 stars 47 forks source link

Feature request: Change colorbar label size #71

Closed hotsoupisgood closed 5 months ago

hotsoupisgood commented 5 months ago

Hi, I would like to be able to change the color bar label size but do not see the option in the kws. See below, bolded.

    circos.colorbar(
        bounds=(0.4, loc, 0.2, 0.005),
        vmin=vmin[i],
        vmax=vmax[i],
        cmap=cmaps[i],
        orientation="horizontal",
        tick_kws=dict(labelsize=6, colors="black"),
        colorbar_kws=dict(label="I would like to be able to change this label size"),
    )
moshi4 commented 5 months ago

Hi @hotsoupisgood,

Fixed to be able to change the text property of colorbar in v1.6.0 release.

    circos.colorbar(
        bounds=(0.4, loc, 0.2, 0.005),
        vmin=vmin[i],
        vmax=vmax[i],
        cmap=cmaps[i],
        orientation="horizontal",
        tick_kws=dict(labelsize=6, colors="black"),
-       colorbar_kws=dict(label="I would like to be able to change this label size"),
+       label="You can change this label size",
+       label_kws=dict(size=12, color="black"),
    )