I am using matplotlib as follows:
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
# Graph Size
plt.figure(figsize=(20, 12))
# Axis X
plt.xlabel('name 1', fontsize=font_size_graph)
# Axis Y
plt.ylabel('name 2', fontsize=font_size_graph)
# Colors
colors=pltcolor(name)
# Text
plt.text(80, 3.1, 'name 3', color='#F6B002', fontsize=font_size_graph)
plt.text(80, 1.8, 'name 4', color='#FF4431', fontsize=font_size_graph)
# Grid
axes = plt.gca()
axes.spines['right'].set_visible(False)
axes.spines['top'].set_visible(False)
plt.grid(color='#DCDCDC', linestyle='-', linewidth=1)
################################
## SAVE ##
################################
#Save plot as PNG & copy it to DataLake Store
plt.savefig('path' + '.png', bbox_inches = 'tight')
and I got the following error:
matpotlib Image size of 1092843x1004 pixels is too large. It must be less than 2^16 in each direction Any idea which setting to change to fix this error