I'm trying to make a 3Dplot fill a display window since matplotlib leaves a lot of blank space within the window by default and I need the plot to be big since it has a lot of small details. I've tried a number of recipes like
px = 1/plt.rcParams['figure.dpi']fig = plt.figure(figsize=(1800*px, 1200*px))
plt.rcParams["figure.figsize"] = [32,24]
or even matplotlib how to set plot size (with dpi), not figure size
but they just make the window size bigger (and the plot accordingly) leaving a lot of blank space within. I'd rather like to fill the inner space of the window with the plot.
Adding
fig, ax = plt.subplots(subplot_kw={'projection':'3d'}, facecolor='lightgray')fig.subplots_adjust(bottom=0, left=-0.15, top=1, right=0.56)ax.get_proj = lambda: np.dot(Axes3D.get_proj(ax), np.diag([2.0, 2.0, 1.0, 1]))
I get a large image, right what I was looking for, but cutoff in the middle by a grey blank space