Python Pandas Plot Command Produces Small Images On High Resolution Display
I am using the following line of code in my python application. df['Close'].plot() The figure produced by this code is very small on my high resolution display (Microsoft Surfac
Solution 1:
I would guess that you want to leave the figure size constant but change the dpi (dots per inch).
Somewhere on top of your script or notebook add
import matplotlib.pyplot as plt
plt.rcParams["figure.dpi"] = 144
Change 144 to your liking. (Note that multiples of 72 usually give nice lines).
Solution 2:
The figsize parameter is what you're after.
df['Close'].plot(figsize=(20,10))
If you are in a Jupyter Notebook, there may be an issue where the notebook shrinks figures to fit in the cell output as .plot(figsize=x,y) increases the size. You will notice the text getting smaller but the plot seems to stay the same size, as you increase the figsize parameters.
Post a Comment for "Python Pandas Plot Command Produces Small Images On High Resolution Display"