Cześć, muszę zaznaczyć na wykresie strzałką energię dla długości fali 400 nm i dodać adnotację (λ = 400 nm). Problem w tym ze wyskakuje taki błąd, wie ktoś jak to zapisać żeby działało?
Image size of 456x-498727418 pixels is too large. It must be less than 2^16 in each direction.
import matplotlib.pyplot as plt
hc = 299792458*6.62607004*10**-34
λ = [10**-12,10**-11,10**-10,10**-9,10**-8,10**-7,10**-6,10**-5,10**-4,10**-3,10**-2,10**-1,10**1,10**2,10**3]
E = [hc/i for i in λ]
print(E)
P = [ui*ii for ui,ii in zip (E,λ)]
for u,i in zip(E,λ):
fig, ax = plt.subplots()
ax.plot(λ,E,"C2*", mec = 'red', markersize = 20, label = 'E(λ)')
ax.set_xlabel('λ, nm')
ax.set_ylabel('E, J*s/m')
ax.set_xscale('log')
ax.set_title('Wykres zależnosci E(λ)', fontsize = 15)
ax.xaxis.label.set_size(15)
ax.yaxis.label.set_size(15)
ax.legend(loc = 'upper center')
ax.grid(True)
ax.grid(True, which = 'major', axis = 'both', color='black', linestyle=':', linewidth=1)
ax.annotate('λ = 400 nm', (400, 0.25),(0,1), size = 15, arrowprops={"arrowstyle" : "simple"})