List of commits:
Subject Hash Author Date (UTC)
Make gaussianity_plots.m work with very large facet grids 57646ac15a50750365f91b900bda823a06ed97ff Jason Hoelscher-Obermaier 2016-12-23 14:52:11
Add 3rd-party fct for Anderson-Darling k-sample test 7e1d992bcd9eb7fae571d2a12b86cafe79748d5a Jason Hoelscher-Obermaier 2016-12-23 14:15:15
Add 3rd-party convenience fct: simple terminal progress bar a19212f38287ccf2883493e4f7b64056f671514f Jason Hoelscher-Obermaier 2016-12-23 14:14:22
Add thirdparty functions needed for gaussianity_plots 7df83c98609a302516348dc45223741bdd39fc2a Jason Hoelscher-Obermaier 2016-12-23 14:13:52
Adapt entanglement_evaluation_test.m to changes to calculate_mode_vectors_gammalist b081eec36a54549c774c49264ebb751b528f4690 Jason Hoelscher-Obermaier 2016-12-23 14:01:37
Remove unnecessary comments in gaussianity_plots_2d.m 3a35bfd4b321d36e82f8bf899f46e99124226f72 Jason Hoelscher-Obermaier 2016-12-23 10:42:45
Fix pdf-export of gaussianity_plots_2d by combination of saveas and pdfcrop (external tool!) 569528ef11beeaa9e946c9e6b039888690d8f6a5 Jason Hoelscher-Obermaier 2016-12-23 10:41:37
Adapt labeling in plotCorrelationMatrix.m to current convention (q1,p1,..x1,y1,..) 5e8acca419e778b07393e408080b7750758acfe9 Jason Hoelscher-Obermaier 2016-12-23 10:40:28
Fix annoying focus-stealing via "figure"-command in gaussianity_plots.m 3574d95b8227cdb8e383024f2c59df09580c7710 Jason Hoelscher-Obermaier 2016-12-22 15:04:59
Invoke suptitle after subplots to avoid clashes with plot cd77438eb754d4fa4f8e0f54999037dc33965aef Jason Hoelscher-Obermaier 2016-12-22 12:20:57
Allow customization of suptitle via varargin-key-value-pairs 4da38a97f9834b9cf32c0877c32940f6dda8198d Jason Hoelscher-Obermaier 2016-12-22 12:14:28
Add gaussianity_plots_2d.m to plot bivariate distribution functions of pulse quadratures d74f7e1e220dd0444108d1e36faae9fcc67d7792 Jason Hoelscher-Obermaier 2016-12-21 14:59:08
Clean up gaussianity_plots.m 282624b1635f855e0ff583be3804d70811310f33 Jason Hoelscher-Obermaier 2016-12-21 13:52:06
Add kernel density estimation to gaussianity_plots.m 82c61b14b9d5dc3a3a10c28851c53f89fa6f50f3 Jason Hoelscher-Obermaier 2016-12-21 11:11:25
Add gaussianity_plots.m for quick inspection of gaussianity for multimode data ac4b043b056c04053da74a4d33ba4e2db88b7ef1 Jason Hoelscher-Obermaier 2016-12-21 11:04:43
Remove superfluous folder altmany-export_fig-... and embed export_fig-gitrepo f9171ef1b54324c77f70bac4b99f0d9294833155 Jason Hoelscher-Obermaier 2016-12-14 15:01:56
Add some options (export_suffix, min, max) to plot_logneg_gammalist..fcts. 765932bc7e5a8cfbbf06685a170e365984cd444f Jason Hoelscher-Obermaier 2016-11-24 15:50:39
Some layout improvements in plot_logneg_gammalist_split.m 102cbf1d4cf4fb01e1df3cb1aeac0b52e6b19f41 Jason Hoelscher-Obermaier 2016-11-21 13:13:49
Add function plot_logneg_gammalist_split.m to plot logneg vs gamma1 for all gamma2s and vice versa f6d8a069952d77183e789d8c7073652ea59efdea Jason Hoelscher-Obermaier 2016-11-21 12:23:25
Increase color resolution and allow inverting the color map 84805db2f236d56bb5e9329e843f3825dea15161 Jason Hoelscher-Obermaier 2016-11-18 10:27:41
Commit 57646ac15a50750365f91b900bda823a06ed97ff - Make gaussianity_plots.m work with very large facet grids
- option 'mute' to reduce text clutter to minimum
- adapt figure height and width to growing number of subplots
- enable autocrop of output files
Author: Jason Hoelscher-Obermaier
Author date (UTC): 2016-12-23 14:52
Committer name: Jason Hoelscher-Obermaier
Committer date (UTC): 2016-12-23 15:02
Parent(s): 7e1d992bcd9eb7fae571d2a12b86cafe79748d5a
Signer:
Signing key:
Signing status: N
Tree: c35eb5013672b6fa7dc1685ac417e4cc45d6632f
File Lines added Lines deleted
data_analysis/gaussianity/gaussianity_plots.m 51 16
File data_analysis/gaussianity/gaussianity_plots.m changed (mode: 100644) (index 508863e..73ffa2b)
... ... function gaussianity_plots(trace, varargin)
6 6 modeno = quadno/4; modeno = quadno/4;
7 7 assert((modeno==round(modeno))&&(modeno>0)); assert((modeno==round(modeno))&&(modeno>0));
8 8
9 figwidth = 560;
10 figheight = 420;
11
9 12 modes = 1:modeno; modes = 1:modeno;
10 13 subplotwidth = min(2,modeno); subplotwidth = min(2,modeno);
11 14 subplotheight = ceil(modeno/subplotwidth); subplotheight = ceil(modeno/subplotwidth);
12 15
13 16 normalize = true; normalize = true;
14 17 export = false; export = false;
18 mute = false;
15 19 visible = 'on'; visible = 'on';
16 20 titlestr = 'pulse quadratures'; % generic name for data titlestr = 'pulse quadratures'; % generic name for data
17 21 for k=1:2:length(varargin) for k=1:2:length(varargin)
 
... ... function gaussianity_plots(trace, varargin)
20 24 normalize = varargin{k+1}; normalize = varargin{k+1};
21 25 case {'title','Title','titlestr'} case {'title','Title','titlestr'}
22 26 titlestr = varargin{k+1}; titlestr = varargin{k+1};
27 case {'mute','Mute'}
28 mute = varargin{k+1};
23 29 case {'modeorder','modes','Modes'} case {'modeorder','modes','Modes'}
24 30 modeorder = varargin{k+1}'; modeorder = varargin{k+1}';
25 31 modes = modeorder(:)'; modes = modeorder(:)';
26 subplotwidth = size(modeorder,2);
27 subplotheight = size(modeorder,1);
32 subplotwidth = size(modeorder,1);
33 subplotheight = size(modeorder,2);
28 34 case {'export','Export','save','Save'} case {'export','Export','save','Save'}
29 35 if ~(varargin{k+1}==false) if ~(varargin{k+1}==false)
30 36 export = true; export = true;
 
... ... function gaussianity_plots(trace, varargin)
35 41 error(['Unrecognized varargin-argument: ', varargin{k}]) error(['Unrecognized varargin-argument: ', varargin{k}])
36 42 end end
37 43 end end
44 if subplotheight > 3
45 figheight = (subplotheight/3)*figheight;
46 end
47 if subplotwidth > 3
48 figwidth = (subplotwidth/3)*figwidth;
49 end
38 50
39 51 stddevs = std(trace); stddevs = std(trace);
40 52 inset = ' '; inset = ' ';
 
... ... function gaussianity_plots(trace, varargin)
57 69 else else
58 70 normalizestr = ''; normalizestr = '';
59 71 end end
60 histfig = figure('visible',visible);
61 cdffig = figure('visible',visible);
62 qqfig = figure('visible',visible);
63 kdensfig = figure('visible',visible);
72 histfig = figure('visible',visible,'position', [0, 0, figwidth, figheight]);
73 cdffig = figure('visible',visible,'position', [0, 0, figwidth, figheight]);
74 qqfig = figure('visible',visible,'position', [0, 0, figwidth, figheight]);
75 kdensfig = figure('visible',visible,'position', [0, 0, figwidth, figheight]);
64 76
65 postprocess = @(m){ title('');...
66 ntitle([inset, 'Mode no. ',num2str(m),10,...
67 inset, 'std. deviations: ',10,...
68 getstddevstr(m)],...
69 'location','northwest');...
70 legend({'q','p','x','y'}, 'Location', 'SouthEast')};
77 if mute
78 postprocess = @(m){ title('');...
79 ntitle([inset, 'Mode ',num2str(m)],...
80 'location','northwest');...
81 xlabel('');...
82 ylabel('');};
83 else
84 postprocess = @(m){ title('');...
85 ntitle([inset, 'Mode ',num2str(m),10,...
86 inset, 'std. deviations: ',10,...
87 getstddevstr(m)],...
88 'location','northwest');...
89 legend({'q','p','x','y'}, 'Location', 'SouthEast')};
90 end
71 91 s = 0; s = 0;
72 92 for m=modes for m=modes
73 93 s = s + 1; s = s + 1;
74 94 change_current_figure(histfig); subplot(subplotheight, subplotwidth, s); hold all change_current_figure(histfig); subplot(subplotheight, subplotwidth, s); hold all
75 95 hist(getsubtrace(m),50); hist(getsubtrace(m),50);
76 96 postprocess(m); postprocess(m);
97 xlim([-5,5]);
98 if mute && s==numel(modes)
99 legend({'q','p','x','y'}, 'Location', 'SouthEastOutside');
100 end
77 101
78 102 change_current_figure(cdffig); subplot(subplotheight, subplotwidth, s); hold all change_current_figure(cdffig); subplot(subplotheight, subplotwidth, s); hold all
79 103 arrayfun(@(n)cdfplot(trace(:,n)), getinds(m)); arrayfun(@(n)cdfplot(trace(:,n)), getinds(m));
80 104 postprocess(m); postprocess(m);
105 xlim([-5,5]);
106 if mute && s==numel(modes)
107 legend({'q','p','x','y'}, 'Location', 'SouthEastOutside');
108 end
81 109
82 110 change_current_figure(kdensfig); subplot(subplotheight, subplotwidth, s); hold all change_current_figure(kdensfig); subplot(subplotheight, subplotwidth, s); hold all
83 111 arrayfun(@(n)ksdensity(trace(:,n)), getinds(m)); arrayfun(@(n)ksdensity(trace(:,n)), getinds(m));
84 112 postprocess(m); postprocess(m);
113 xlim([-5,5]);
114 if mute && s==numel(modes)
115 legend({'q','p','x','y'}, 'Location', 'SouthEastOutside');
116 end
85 117
86 118 change_current_figure(qqfig); subplot(subplotheight, subplotwidth, s); hold all change_current_figure(qqfig); subplot(subplotheight, subplotwidth, s); hold all
87 119 qqplot(getsubtrace(m)); qqplot(getsubtrace(m));
88 120 postprocess(m); postprocess(m);
121 if mute && s==numel(modes)
122 legend({'q','p','x','y'}, 'Location', 'SouthEastOutside');
123 end
89 124 end end
90 125
91 126 suptitlestr = [' of ',titlestr, normalizestr]; suptitlestr = [' of ',titlestr, normalizestr];
 
... ... function gaussianity_plots(trace, varargin)
100 135 if export if export
101 136 % note: hist does not work with pdf export. % note: hist does not work with pdf export.
102 137 export_fig(histfig, [exportstr, '_', 'hist'],... export_fig(histfig, [exportstr, '_', 'hist'],...
103 '-png', '-nocrop','-transparent')
138 '-png', '-transparent') %'-nocrop'
104 139 export_fig(cdffig, [exportstr, '_', 'cdf'],... export_fig(cdffig, [exportstr, '_', 'cdf'],...
105 '-pdf', '-nocrop','-transparent')
140 '-pdf','-transparent')
106 141 export_fig(kdensfig, [exportstr, '_', 'kde'],... export_fig(kdensfig, [exportstr, '_', 'kde'],...
107 '-pdf', '-nocrop','-transparent')
142 '-pdf','-transparent')
108 143 export_fig(qqfig, [exportstr, '_', 'qq'],... export_fig(qqfig, [exportstr, '_', 'qq'],...
109 '-pdf', '-nocrop','-transparent')
144 '-pdf','-transparent')
110 145 end end
111 146 end end
112 147
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/gutc61/Membrane

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/gutc61/Membrane

Clone this repository using git:
git clone git://git.rocketgit.com/user/gutc61/Membrane

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main