;+ ;cutplot,x,y,xout,yout,_EXTRA=ex ;a little pro to cut out a section of a plot you like ; by Conor Laver 06/09/2006 ; written during World Cup '06! ;- PRO plotcut,x,y,xout,yout,_EXTRA=ex window,8 plot,x,y,_extra=ex print,'Click on the minimum x range' cursor,xmin,ydata,/data,/down ver,xmin,linestyle=1 mindex=min(where(x gt xmin)) print,'Click on the maximum x range' cursor,xmax,ydata,/data,/down ver,xmax,linestyle=1 madex=min(where(x gt xmax)) xout=x[mindex:madex] yout=y[mindex:madex] window,9,title='YouR nicely cut plot!!' plot,xout,yout end