@@ -2788,7 +2788,7 @@ bool CDustComponent::writeComponentPlot(string path_plot)
2788
2788
scat_writer << " set multiplot layout 2,1 rowsfirst" << endl;
2789
2789
2790
2790
if (nr_of_wavelength > 1 )
2791
- scat_writer << " set xrange[" << 0 << " :" << nr_of_scat_theta_tmp << " ]" << endl;
2791
+ scat_writer << " set xrange[" << 0 << " :" << 180 << " ]" << endl;
2792
2792
scat_writer << " set yrange[" << S11min << " :" << S11max << " ]" << endl;
2793
2793
scat_writer << " set format x \" %.1f\" " << endl;
2794
2794
scat_writer << " set format y \" %.1te%02T\" " << endl;
@@ -2810,12 +2810,12 @@ bool CDustComponent::writeComponentPlot(string path_plot)
2810
2810
uint wID = w - wavelength_offset;
2811
2811
2812
2812
for (uint sth = 0 ; sth < nr_of_scat_theta_tmp; sth++)
2813
- scat_writer << sth << " \t " << S11[wID][sth] << endl;
2813
+ scat_writer << 180 * sth / (nr_of_scat_theta_tmp - 1 ) << " \t " << S11[wID][sth] << endl;
2814
2814
scat_writer << " e" << endl;
2815
2815
}
2816
2816
2817
2817
if (nr_of_wavelength > 1 )
2818
- scat_writer << " set xrange[" << 0 << " :" << nr_of_scat_theta_tmp << " ]" << endl;
2818
+ scat_writer << " set xrange[" << 0 << " :" << 180 << " ]" << endl;
2819
2819
scat_writer << " set yrange[" << S12min << " :" << S12max << " ]" << endl;
2820
2820
scat_writer << " set format x \" %.1f\" " << endl;
2821
2821
scat_writer << " set format y \" %.1te%02T\" " << endl;
@@ -2837,7 +2837,7 @@ bool CDustComponent::writeComponentPlot(string path_plot)
2837
2837
uint wID = w - wavelength_offset;
2838
2838
2839
2839
for (uint sth = 0 ; sth < nr_of_scat_theta_tmp; sth++)
2840
- scat_writer << sth << " \t " << S12[wID][sth] << endl;
2840
+ scat_writer << 180 * sth / (nr_of_scat_theta_tmp - 1 ) << " \t " << S12[wID][sth] << endl;
2841
2841
scat_writer << " e" << endl;
2842
2842
}
2843
2843
0 commit comments