[Python] matplotlib: how to change spacing between the tick marks (lines) and the main figure...

Discussão em 'Python' iniciado por Stack, Junho 30, 2025.

  1. Stack

    Stack Membro Participativo

    How to change the spacing between the tick marks (green) and the main figure content (red)? Not the pad parameter in tick_params

    fig, ax = plt.subplots(figsize=(5, 5))
    sns.histplot(
    data=tips,
    x="size", hue="day",
    multiple="fill", stat="proportion",
    discrete=True, shrink=.9, palette='Set2',
    legend=False,
    ax=ax
    )


    spacing between the green part and the red part

    Continue reading...

Compartilhe esta Página