summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2012-12-28 23:44:54 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2012-12-28 23:44:54 -0500
commitb35062928c53e376a0849b9ddb4b0ca1759e67df (patch)
tree66296cc9721f010fb9221437e5356ca592fbf1b5
parent91a795b8042742e1a534e28bdd5841ec0cf406c9 (diff)
downloadNresonances-b35062928c53e376a0849b9ddb4b0ca1759e67df.tar.gz
Nresonances-b35062928c53e376a0849b9ddb4b0ca1759e67df.zip
plot quality improved
-rw-r--r--xmds2/realistic_Rb_and_fields/field_delay_vs_z.m14
-rw-r--r--xmds2/realistic_Rb_and_fields/niceplotset.m19
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