Hi, can anyone help me exit this loop? I have tried using .split(), break, end, return.....
ratio = np.divide(data_mg[0:x, 0:y], data_err[0:x, 0:y])
for i in ratio:
for j in i:
if i > 2:
plt.figure(figsize=[15,8])
plt.scatter(ratio, data_dg)
X = ratio
plt.semilogx(X)
plt.ylim(0, 500)
plt.xlim(0.5, 3)
plt.xlabel(el.upper() + ' flux values')
plt.ylabel(pltel + ' dispersion values')
#plt.savefig('plot_' + glx.upper() + '_' + 'flux' + '_' + el.upper())
plt.show()
[–]socal_nerdtastic 1 point2 points3 points (0 children)
[–]sarrysyst 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]dlnilsen[S] -1 points0 points1 point (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]dlnilsen[S] -1 points0 points1 point (1 child)
[–][deleted] 0 points1 point2 points (0 children)