Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrew Strong
galplot
Commits
3a6f2d05
Commit
3a6f2d05
authored
Jun 23, 2020
by
Andrew Strong
Browse files
SourcePopulation.cc gen_source_population.cc: all points in one idl plot
parent
dd32bdab
Changes
2
Hide whitespace changes
Inline
Side-by-side
source/SourcePopulation.cc
View file @
3a6f2d05
...
...
@@ -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
...
...
source/gen_source_population.cc
View file @
3a6f2d05
...
...
@@ -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 o
plot
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 o
plot
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 o
plot
sourcepop5
.
IDL_plot_control
=
2
;
//AWS20200623
oplot on first
plot
sourcepop5
.
IDL_psym
=
0
;
//AWS2020623 just line
sourcepop5
.
analyse_sample
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment