Commit 5d842ad750c065f95f3b01d2446ba9a71c7acb2c

Authored by Jean-Philippe Bernard
1 parent 7d4ec2d6
Exists in master

fixed for a behaviour difference between idl and gdl involving _extra on cgplot

src/idl/dustem_plot_fit_sed.pro
... ... @@ -157,7 +157,9 @@ norm = sed * 0. + 1
157 157 ;stop
158 158 ;===== waring: _extra not well taken by cgplot for unknown keywords ...
159 159 ;cgplot,(*!dustem_data.sed).wav,(*!dustem_data.sed).values/norm,/nodata,_extra=extra,yr=yr,/ys,ylog=ylog,/xlog
160   -cgplot,(*!dustem_data.sed).wav,(*!dustem_data.sed).values/norm,/nodata,yr=yr,/ys,ylog=ylog,/xlog,_extra=_extra
  160 +;cgplot,(*!dustem_data.sed).wav,(*!dustem_data.sed).values/norm,/nodata,yr=yr,/ys,ylog=ylog,/xlog,_extra=_extra
  161 +cgplot,(*!dustem_data.sed).wav,(*!dustem_data.sed).values/norm,/nodata,_extra=_extra
  162 +;stop
161 163 ind_filt=where((*!dustem_data.sed).filt_names NE 'SPECTRUM',count_filt)
162 164 ind_spec=where((*!dustem_data.sed).filt_names EQ 'SPECTRUM',count_spec)
163 165 ;=== Plot the data
... ...
src/idl/dustem_sed_plot.pro
1   -PRO dustem_sed_plot,p_min,_EXTRA=extra,function_name=function_name,pol=pol,legend_xpos=legend_xpos,legend_ypos=legend_ypos
  1 +PRO dustem_sed_plot,p_min,_extra=_extra,function_name=function_name,pol=pol,legend_xpos=legend_xpos,legend_ypos=legend_ypos
2 2  
3 3 IF not keyword_set(function_name) THEN BEGIN
4 4 ;Run dustem with as an interface to mpfitfun
... ... @@ -7,7 +7,7 @@ IF not keyword_set(function_name) THEN BEGIN
7 7 ;even when not set. Had to replavce by out_st ...
8 8 dustem_sed=dustem_compute_sed(p_min,st=st,cont=cont,freefree=freefree,synchrotron=synchrotron,out_st=out_st)
9 9 st=out_st
10   - dustem_plot_fit_sed,st,dustem_sed,cont,freefree,synchrotron,_extra=extra,legend_xpos=legend_xpos,legend_ypos=legend_ypos
  10 + dustem_plot_fit_sed,st,dustem_sed,cont,freefree,synchrotron,_extra=_extra,legend_xpos=legend_xpos,legend_ypos=legend_ypos
11 11 IF keyword_set(pol) THEN BEGIN
12 12 stop
13 13 ;dustem_polsed=dustem_compute_polsed(p_min,st=pst,cont=cont,freefree=freefree,synchrotron=synchrotron,out_st=out_st)
... ...