Search code examples
pythonmatplotlibaxis-labels

Matplotlib , dimensione grafico impostata ... label "tagliati"


as from the topic .. sometimes happen that given a figure size for print a plot inside the label are partially cut .. as in the example reported enter image description here

there is some trick in order to fit the box and the label/title all inside the figure ?


Solution

  • Try:

    plt.savefig('fig.png',  bbox_inches='tight')