Just wondering, can metaprogramming be used to shorten code such as this 
one:







*for i = 1:2    axes[1][:scatter](kx, real([OnePump.λ1(0., momx, np) for 
momx in kx]), s=15, alpha=0.4, color="orange")    axes[1][:scatter](kx, 
real([OnePump.λ2(0., momx, np) for momx in kx]), s=15, alpha=0.2)    
axes[2][:scatter](kx, imag([OnePump.λ1(0., momx, np) for momx in kx]), 
s=15, alpha=0.4, color="orange")    axes[2][:scatter](kx, 
imag([OnePump.λ2(0., momx, np) for momx in kx]), s=15, alpha=0.2)end*

Reply via email to