Hi eveyone, i am new user for envi "user function".I am stuck with a stupid problem. please help me. I have a loop in my code and i am updating the progress status and plotting of result (score in code below) within loop i mean after each iteration. I want the same figure of plot generated by envi_plot_data ll be updated for each iteration. I am using OPLT. The problem is that it draws different figure for each iteration if i do not use OPLOT. If i remove status update from iteration the OPLOT works perfect.code. But i want status progress also. I am writing my code also please guide me what i am doing wrong.Thanks in advance. The code looks like this
result.numit=1000
ostr = ' Memory'
ENVI_REPORT_INC, report_base, result.numit
envi_report_init, ostr, title='USGS Munsell', base=report_base
ENVI_PLOT_DATA, findgen(ns#nl),score
for j = 1,result.numit do begin
envi_report_stat, report_base, j, result.numit
.
.
.
score[un]=score[un]+1
;ENVI_PLOT_DATA, findgen(ns#nl),score
OPLOT, score
endfor
|