Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Add option to set order of traces in show_plot.m | b0bd094a15506450b85b9bb1e84ea0c898792a92 | Jason Hoelscher-Obermaier | 2017-04-04 14:53:37 |
Extend functionality of isafile.m: When called with several strings returns true if all of them are files | 40c41991e46ce281edaca0f839f4fd91a6bccacf | Jason Hoelscher-Obermaier | 2017-04-04 11:36:53 |
Update module matlab_xunit. | 4efe1d940832b017396e09ffdf265c3a4b0c65a7 | Jason Hoelscher-Obermaier | 2017-04-04 09:26:35 |
Improve plot-functions in meta_ev by allowing for a default title to be added | 3ad8428d800e277d3f2be870dc4e5aab84330dbf | Jason Hoelscher-Obermaier | 2017-03-31 15:07:45 |
Add property models and method load_models for storing and loading simulation models in meta_ev.m | 2f6d550076544fc277b8c9036d04137341b1f192 | Jason Hoelscher-Obermaier | 2017-03-31 14:59:36 |
Add property fig_label to speficy name of exported plots in more reasonably way | f11f02cea87070ebc853f8a0730fa1aa53519bbe | Jason Hoelscher-Obermaier | 2017-03-31 10:04:46 |
Add method to restrict allowed pulse_gammas to meta_ev.m | f14d76691d474e65e0b3edc26b620e89d06ce930 | Jason Hoelscher-Obermaier | 2017-03-30 14:41:47 |
Improve layout of opt_pulse_gammas-plots in meta_ev.m | 06a41054cf2748331ca7fd7b09003eab37db5db0 | Jason Hoelscher-Obermaier | 2017-03-30 13:29:09 |
Plottools: Wrap builtin figure to set default font and font size and provide custom labels command | 0e8f3be4d9c92e31db9941fa411d83c1ca095878 | Jason Hoelscher-Obermaier | 2017-03-30 13:14:11 |
Add method for plotting optimal pulse width | 2675f16902f57c8a862ab2f6f5b51798763edbae | Jason Hoelscher-Obermaier | 2017-03-30 12:32:31 |
Circumvent matlab-bug cutting of contour when used with log-scale axes | 1a1576df5b2b3e9354e460c96bb00523ae4580dc | Jason Hoelscher-Obermaier | 2017-03-30 09:10:35 |
Improve contour-plot-method | 0067b9840fb91bd62f485071f38ab0d91c3e8fd6 | Jason Hoelscher-Obermaier | 2017-03-30 08:45:45 |
Add method 'trace_out' to meta_ev: returns a meta-object where all evaluations have been traced out | f98e8666abc7a85cec77ed076ee6f72fa250f623 | Jason Hoelscher-Obermaier | 2017-03-30 07:44:42 |
Add methods for quick export of all figs to meta_ev.m | eba909118fe050479c8ff32e3c889f88c95c5837 | Jason Hoelscher-Obermaier | 2017-03-30 07:36:39 |
Add reset method to clear previous postprocessing results in meta_ev | e299ba7be1625c170da5e1428537228df6c99cf2 | Jason Hoelscher-Obermaier | 2017-03-30 07:01:19 |
Add property common_path (deepest directory which is a parentdir to all the evaluations) in meta_ev.m | 307d34599088d874a1f1b9ff1e9ea817cbe0bd2c | Jason Hoelscher-Obermaier | 2017-03-29 10:32:58 |
Add methods for interpolation of optimal lognegs and pulse-widths to meta_ev.m | 3b1aba42eb665a534c6397e7607cd985702a9baa | Jason Hoelscher-Obermaier | 2017-03-29 10:00:35 |
Add plot-method to plot logneg versus gamma for quick inspection of all evaluations | b2b8160418ccfef2689e89220734ea909d9a7787 | Jason Hoelscher-Obermaier | 2017-03-29 08:26:31 |
Allow quick initialization of meta_ev-objects by passing metadata-file to meta_ev-constructor. | 9ac4214ca8aaa6a1c14a40d82274c415b880c203 | Jason Hoelscher-Obermaier | 2017-03-29 08:02:11 |
Allow setting default_sample_no for all traces from within meta_ev. | 3cb242deef4b73fb363e655f34d53c8e8126b356 | Jason Hoelscher-Obermaier | 2017-03-29 07:35:11 |
File | Lines added | Lines deleted |
---|---|---|
homo_measurements/@homo_measurement/show_plot.m | 26 | 28 |
File homo_measurements/@homo_measurement/show_plot.m changed (mode: 100644) (index 07c27c3..26e5041) | |||
1 | 1 | function fig = show_plot(obj, method, varargin) | function fig = show_plot(obj, method, varargin) |
2 | 2 | plot_phase = true; | plot_phase = true; |
3 | 3 | plot_amp = true; | plot_amp = true; |
4 | trace_order = obj.tracepairs_no:-1:1; | ||
5 | trace_order_switch = ''; | ||
4 | 6 | ||
5 | 7 | for k=1:2:length(varargin) | for k=1:2:length(varargin) |
6 | switch varargin{k} | ||
8 | switch lower(varargin{k}) | ||
9 | case {'order', 'traceorder'} | ||
10 | if isequal(varargin{k+1}, 'regular') | ||
11 | trace_order=1:obj.tracepairs_no; | ||
12 | trace_order_switch = 'regular'; | ||
13 | end | ||
7 | 14 | case 'quadrature' | case 'quadrature' |
8 | switch varargin{k+1} | ||
15 | switch lower(varargin{k+1}) | ||
9 | 16 | case 'phase' | case 'phase' |
10 | 17 | plot_amp = false; | plot_amp = false; |
11 | 18 | case 'amp' | case 'amp' |
12 | 19 | plot_phase = false; | plot_phase = false; |
13 | 20 | otherwise | otherwise |
14 | disp(['Unrecognized option for "quadrature"\n',... | ||
15 | 'recognized options: "amp" or "phase"']) | ||
21 | disp(['Unrecognized option "' varargin{k+1},... | ||
22 | '" for "quadrature"\n',... | ||
23 | 'recognized options: "amp" or "phase"']) | ||
16 | 24 | end | end |
17 | 25 | otherwise | otherwise |
18 | 26 | error('Unrecognized varargin-arguments!'); | error('Unrecognized varargin-arguments!'); |
... | ... | function fig = show_plot(obj, method, varargin) | |
22 | 30 | fig = gcf; | fig = gcf; |
23 | 31 | switch method | switch method |
24 | 32 | case 'snap_shot' | case 'snap_shot' |
25 | for k=obj.tracepairs_no:-1:1 | ||
26 | if plot_phase | ||
27 | obj.homotraces(k,2).show_snapshot; hold all; | ||
28 | end | ||
29 | if plot_amp | ||
30 | obj.homotraces(k,1).show_snapshot; hold all; | ||
31 | end | ||
32 | end | ||
33 | func = 'show_snapshot'; | ||
33 | 34 | case 'NPS' | case 'NPS' |
34 | for k=obj.tracepairs_no:-1:1 | ||
35 | if plot_phase | ||
36 | obj.homotraces(k,2).show_NPS; hold all; | ||
37 | end | ||
38 | if plot_amp | ||
39 | obj.homotraces(k,1).show_NPS; hold all; | ||
40 | end | ||
41 | end | ||
35 | func = 'show_NPS'; | ||
42 | 36 | case {'hist', 'histogram'} | case {'hist', 'histogram'} |
43 | for k=obj.tracepairs_no:-1:1 | ||
44 | if plot_phase | ||
45 | obj.homotraces(k,2).show_hist; hold all; | ||
46 | end | ||
47 | if plot_amp | ||
48 | obj.homotraces(k,1).show_hist; hold all; | ||
49 | end | ||
50 | end | ||
37 | func = 'show_hist'; | ||
51 | 38 | otherwise | otherwise |
52 | 39 | error(['Unrecognized method: ', method]) | error(['Unrecognized method: ', method]) |
53 | 40 | end | end |
41 | if isequal(trace_order_switch, 'regular') | ||
42 | for k=trace_order | ||
43 | if plot_amp; obj.homotraces(k,1).(func); hold all; end | ||
44 | if plot_phase; obj.homotraces(k,2).(func); hold all; end | ||
45 | end | ||
46 | else | ||
47 | for k=trace_order | ||
48 | if plot_phase; obj.homotraces(k,2).(func); hold all; end | ||
49 | if plot_amp; obj.homotraces(k,1).(func); hold all; end | ||
50 | end | ||
51 | end | ||
54 | 52 | legend('show'); | legend('show'); |
55 | 53 | end | end |