I encountered this error in matplotlib.pyplot.
When I tried to save the plotted graph in matplotlib, the y-axis label was not displayed in the saved file (.eps, .pdf, etc files).
Just add this line (as a previous line) before saving the graph as a file using savefig command.
plt.tight_layout()
When I tried to save the plotted graph in matplotlib, the y-axis label was not displayed in the saved file (.eps, .pdf, etc files).
Just add this line (as a previous line) before saving the graph as a file using savefig command.
plt.tight_layout()
The problem will be solved and the saved file will contain y-axis label.
No comments:
Post a Comment