Commit 3a6f2d05 authored by Andrew Strong's avatar Andrew Strong

SourcePopulation.cc gen_source_population.cc: all points in one idl plot

parent dd32bdab
......@@ -1570,9 +1570,14 @@ int SourcePopulation::analyse_sample()
*txt_stream<<"; idl format";
*txt_stream<<endl;
*txt_stream<<"set_plot,'ps' ;idl"<<endl;
*txt_stream<<"device,file='"<<title<<".ps';idl"<<endl;
*txt_stream<<"!p.font=0 ;idl"<<endl;
*txt_stream<<"set_plot,'ps' ;idl"<<endl;
// *txt_stream<<"device,file='"<<title<<".ps' ;idl"<<endl;
if(IDL_plot_control==1) // start plot
*txt_stream<<"device,file='"<<"sourcepop_NS"<<".ps' ;idl"<<endl;
*txt_stream<<"!p.font=0 ;idl"<<endl;
// *txt_stream<<"start_plot =1 ; idl"<<endl;
......@@ -1580,14 +1585,14 @@ int SourcePopulation::analyse_sample()
// *txt_stream<<"if(start_plot eq 1) then plot,S,NS,/xlog,/ylog,xrange=[1e-13,1e-5],yrange=[0.1,1e4], xstyle=1,ystyle=1, psym=-6, xtitle='S, cm!e-2!n s!e-1!n',ytitle='N(S)', charsize=0.75,title='"<<title<<"' ; idl"<<endl;
if(IDL_plot_control==1)
if(IDL_plot_control==1) // start plot
*txt_stream<<"plot,S,NS,/xlog,/ylog,xrange=[1e-13,1e-5],yrange=[0.1,1e4], xstyle=1,ystyle=1, psym="<<IDL_psym<<", xtitle='S, cm!e-2!n s!e-1!n',ytitle='N(S)', charsize=0.75,title='"<<title<<"' ; idl"<<endl;
// *txt_stream<<"start_plot =0; idl";
if(IDL_plot_control==2)
*txt_stream<<"oplot,S,NS ; idl"<<endl;
if(IDL_plot_control==2) // overplot on start plot
*txt_stream<<"oplot,S,NS,psym="<<IDL_psym<<" ; idl"<<endl;
// python format
......
......@@ -216,7 +216,7 @@ int Galplot::gen_source_population()
sourcepop4.print();
sourcepop4.IDL_plot_control=1; //AWS20200623 first plot no oplot
sourcepop4.IDL_plot_control=1; //AWS20200623 first plot, no oplot
sourcepop4.IDL_psym =6; //AWS20200623 open squares no line
sourcepop4.analyse_sample();
......@@ -267,7 +267,7 @@ int Galplot::gen_source_population()
sourcepop6.print();
sourcepop6.IDL_plot_control=1; //AWS20200623 first plot no oplot
sourcepop6.IDL_plot_control=2; //AWS20200623 oplot on first plot
sourcepop6.IDL_psym =5; //AWS20200623 open triangles no line
sourcepop6.analyse_sample();
......@@ -318,7 +318,7 @@ int Galplot::gen_source_population()
sourcepop7.print();
sourcepop7.IDL_plot_control =1; //AWS20200623 first plot no oplot
sourcepop7.IDL_plot_control =2; //AWS20200623 oplot on first plot
sourcepop7.IDL_psym =4; //AWS20200623 open diamonds no line
sourcepop7.analyse_sample();
......@@ -358,7 +358,7 @@ int Galplot::gen_source_population()
sourcepop5.print();
sourcepop5.IDL_plot_control=1; //AWS20200623 first plot no oplot
sourcepop5.IDL_plot_control=2; //AWS20200623 oplot on first plot
sourcepop5.IDL_psym =0; //AWS2020623 just line
sourcepop5.analyse_sample();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment