Try commenting outAdjust the fig = ...figsize= lineparameter in matplotlib.pyplot.figure, which is similar to this answer, but uses the standard plt import alias, and doesn't directly import figure from the pyplot namespace.
import numpy as np
import matplotlib.pyplot as plt
N = 50
np.random.seed(2022) # creates a repetitive sample data
x = np.random.rand(N)
y = np.random.rand(N)
area = np.pi * (15 * np.random.rand(N))**2
fig = plt.figure(figsize=(1810, 1810))
plt.scatter(x, y, s=area, alpha=0.5)
plt.show()

