At least in Spyder, the PyPlot plots can be low resolution, e.g., from:
import numpy as np
import matplotlib.pyplot as plt
# import seaborn as sns
rng = np.random.default_rng(1)
scat = plt.scatter( *rng.integers( 10, size=(2,10) ) )
My web surfing has brought me to a suggested solution: Increase the dots-per-inch.
plt.rcParams['figure.dpi']=300
Surfing indicates that the default is 100.
After much experimentation, is there a way to “get” the DPI from the plotted object, e.g., scat
above? There doesn’t seem to be a scat.dpi
, scat.getdpi
, or scat.get_dpi
.