You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I just ran your code on Google Colab using Matplotlib 3.8.4, and the plot, including the grid lines and labels, looks perfectly sharp and readable.
This makes me think the issue might be specific to your environment, possibly due to:
A rendering backend (e.g., inline/Jupyter vs TkAgg)
A lower screen resolution or scaling setting
You can try:
Increasing dpi in plt.subplots(), e.g., dpi=200
Saving the plot with plt.savefig("plot.png", dpi=300) to confirm sharpness
The problem seems to go beyond resolution/sharpness, as features are repeated (e.g "Hour of day" appears three times along the bottom). @PonySubway how are you running your code and showing the figure? If in an IDE the problem may be with the IDE rather than Matplotlib. I agree with @Amit9785 that saving directly to png or switching backend may provide some clues.
Bug summary
I run into issues in using mayplotlib and only yields pixeled dotted lines with no readability.
Anyone knows how to fix it?
Code for reproduction
Actual outcome
Expected outcome
readable figures
Additional information
No response
Operating system
No response
Matplotlib Version
3.8.4
Matplotlib Backend
No response
Python version
3.9
Jupyter version
No response
Installation
pip
The text was updated successfully, but these errors were encountered: