[Python] How to rotate a single label in a treemap?

Discussão em 'Python' iniciado por Stack, Julho 16, 2025.

  1. Stack

    Stack Membro Participativo

    Suppose we have a treemap like this:

    import plotly.graph_objects as go
    fig = go.Figure(go.Treemap(
    parents=['', '', 'A', 'A', 'B'],
    labels=['A', 'B', 'a1', 'a2', 'b1']
    ))
    fig.show()


    And we need to rotate the b1 label to 90 degrees. Is it possible to do in pyplot?

    Continue reading...

Compartilhe esta Página