Commit 656e331031d4c67a8d061a1f8b406648975aa89b

Authored by Ilyes Choubani
1 parent 3b2e1c40
Exists in master

To Annie: added some comments for OOP plotting and Noobj plotting

Showing 1 changed file with 17 additions and 3 deletions   Show diff stats
src/idl/dustem_fit_intensity_example.pro
... ... @@ -331,6 +331,15 @@ if keyword_set(wait) then begin
331 331 wait,wait
332 332 end
333 333  
  334 +
  335 +
  336 +;IC: -
  337 +;The final plot is automatically plotted for OOP plotting
  338 +;and a (Final run) string is automatically added
  339 +;to modify this go to dustemwrap_plot
  340 +
  341 +;It is not for noobj plotting so I'm commenting the ELSE condition.
  342 +
334 343 ;=== MAKE THE FINAL PLOT
335 344 IF keyword_set(postscript) THEN BEGIN
336 345 dir_ps='./'
... ... @@ -340,9 +349,9 @@ IF keyword_set(postscript) THEN BEGIN
340 349 ENDIF
341 350 IF !dustem_noobj THEN BEGIN
342 351 dustemwrap_plot_noobj,*(*!dustem_fit).CURRENT_PARAM_VALUES,dummy,xr=xr,/xstyle,yr=yr,/ysty,/ylog,/xlog,title=tit+' (Final fit)'
343   -ENDIF ELSE BEGIN
344   - dustemwrap_plot,*(*!dustem_fit).CURRENT_PARAM_VALUES,dummy,xr=xr,/xstyle,yr=yr,/ysty,/ylog,/xlog,title=tit+' (Final fit)'
345   -ENDELSE
  352 + ENDIF ;ELSE BEGIN
  353 +; dustemwrap_plot,*(*!dustem_fit).CURRENT_PARAM_VALUES,dummy,xr=xr,/xstyle,yr=yr,/ysty,/ylog,/xlog,title=tit+' (Final fit)'
  354 +; ENDELSE
346 355  
347 356 IF keyword_set(postscript) THEN BEGIN
348 357 set_plot,'X'
... ... @@ -355,6 +364,11 @@ if keyword_set(wait) then begin
355 364 wait,wait
356 365 end
357 366  
  367 +;IC: Last iteration for Object plotting is automatically plotted.
  368 +;I think modifications will have to be applied to dustemwrap_plot...
  369 +;idea: create a system variable that signals if the fits file has been successfully saved and use it in the dustemwrap_plot routine
  370 +;to add the '(From saved FITS file)' string to the tite
  371 +;again this is only needed for OOP plotting. No object plotting (dustemwrap_plot_noobj) doesn't seem to have the need to be modfied
358 372 IF keyword_set(fits_save_and_restore) THEN BEGIN
359 373 message,'Writing out results structure: '+fits_save_and_restore,/info
360 374 dustem_write_fits_table,filename=fits_save_and_restore,help=help
... ...