matplotlib legend is half plot code example Example: matplotlib savefig legend cut off fig.savefig('figure.png', bbox_inches='tight')