diff options
Diffstat (limited to 'xmds2/realistic_Rb_and_fields')
-rw-r--r-- | xmds2/realistic_Rb_and_fields/field_delay_vs_z.m | 14 | ||||
-rw-r--r-- | xmds2/realistic_Rb_and_fields/niceplotset.m | 19 |
2 files changed, 29 insertions, 4 deletions
diff --git a/xmds2/realistic_Rb_and_fields/field_delay_vs_z.m b/xmds2/realistic_Rb_and_fields/field_delay_vs_z.m index 471708f..86db3c0 100644 --- a/xmds2/realistic_Rb_and_fields/field_delay_vs_z.m +++ b/xmds2/realistic_Rb_and_fields/field_delay_vs_z.m @@ -35,26 +35,32 @@ end delay_time = pcenter_i - pcenter_i(1); delay_time_err = sqrt( perr_i.^2 + (perr_i(1))^2); -figure(1) +fh=figure(1) +niceplotset(fh); %errorbar(z_1, delay_time, delay_time_err, '.-'); plot(z_1, delay_time, '.-'); title('Pulse delay vs propagation distance'); xlabel('z (m)'); ylabel('delay (S)'); +print('delay_vs_z_for_Ip2.eps', '-depsc'); -figure(2) +fh=figure(2) +niceplotset(fh); plot(z_1, max_powerIp2, '.-'); title('Pulse Ip2 strength vs propagation distance'); xlabel('z (m)'); ylabel('Pulse strength (Mrad/s)'); +print('field_vs_z_for_Ip2.eps', '-depsc'); -figure(3) +fh=figure(3) +niceplotset(fh); plot(z_1, max_powerIm1, '.-'); title('Pulse Im1 strength vs propagation distance'); xlabel('z (m)'); ylabel('Pulse strength (Mrad/s)'); -figure(4) +fh=figure(4) +niceplotset(fh); plot(z_1, max_powerIm3, '.-'); title('Pulse Im3 strength vs propagation distance'); xlabel('z (m)'); diff --git a/xmds2/realistic_Rb_and_fields/niceplotset.m b/xmds2/realistic_Rb_and_fields/niceplotset.m new file mode 100644 index 0000000..42fa855 --- /dev/null +++ b/xmds2/realistic_Rb_and_fields/niceplotset.m @@ -0,0 +1,19 @@ +function niceplotset(fhandle) + %% Increases default font + fontSize=24; + %% increase width of the lines + %lineWidth=2; + + % sets axes font + set(gca,'FontSize',fontSize ); + %set(gca,'FontSize',fontSize, 'LineWidth', lineWidth); + %box(axes1,'on'); + %hold(axes1,'off'); + + % Create xlabel + %xlabel('','FontSize',fontSize); + %ylabel('','FontSize',fontSize); + + %title('', 'FontSize',fontSize); + +end |