List of commits:
Subject Hash Author Date (UTC)
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
Add option for divergent map with different max and min values to plot_logneg_gammalist.m a794f5945796a341666da4c731d48c16c0fa4f52 Jason Hoelscher-Obermaier 2016-11-18 10:03:00
Add option to not export plots in run_entanglement_evaluation_simulation.m 655670f569737920243a0c6b0d71fe49b86e1e72 Jason Hoelscher-Obermaier 2016-11-16 11:32:22
Improve display of estimated_time_of_arrival.m 78f43d39aa80353028b1751f9da4bd01084cf65d Jason Hoelscher-Obermaier 2016-11-16 08:20:27
Export data before plotting in run_entanglement_evaluation_simulation.m 164493ffb587aa054fca93b5ecafbf4f12196d80 Jason Hoelscher-Obermaier 2016-11-15 08:56:58
Add option 'short' to pseudo_hash.m 9dcf4aea299ae45b6dc56fd2cce997b12f5066a7 Jason Hoelscher-Obermaier 2016-11-11 13:29:30
Improve plot_logneg_gammalist.m 3ab5ad6902c486fdca3ff218490f5e1fc83acfd3 Jason Hoelscher-Obermaier 2016-11-11 12:47:46
Add support for independently varied pulse_widths to run_entanglement_evaluation_simulation 607af2145b571e62bd06b6236da00a1355226611 Jason Hoelscher-Obermaier 2016-11-11 12:47:32
Rename howto_evaluation (for automatic syntax highlighting) 3a08b09bc22bd96757bab679c116644bcaec3602 Jason Hoelscher-Obermaier 2016-11-11 12:24:23
Commit 3574d95b8227cdb8e383024f2c59df09580c7710 - Fix annoying focus-stealing via "figure"-command in gaussianity_plots.m
- when exporting do not show the plots (allow for reasonable batch processing)
Author: Jason Hoelscher-Obermaier
Author date (UTC): 2016-12-22 15:04
Committer name: Jason Hoelscher-Obermaier
Committer date (UTC): 2016-12-22 15:04
Parent(s): cd77438eb754d4fa4f8e0f54999037dc33965aef
Signer:
Signing key:
Signing status: N
Tree: 7e6a822c0307dc81928c3ec934ad96f83026b15a
File Lines added Lines deleted
data_analysis/gaussianity/gaussianity_plots.m 21 13
File data_analysis/gaussianity/gaussianity_plots.m changed (mode: 100644) (index 09fbed6..508863e)
1 1 function gaussianity_plots(trace, varargin) function gaussianity_plots(trace, varargin)
2 % don't show figures while batch processing
3 set(0,'DefaultFigureVisible','off')
4
2 5 quadno = size(trace,2); quadno = size(trace,2);
3 6 modeno = quadno/4; modeno = quadno/4;
4 7 assert((modeno==round(modeno))&&(modeno>0)); assert((modeno==round(modeno))&&(modeno>0));
 
... ... function gaussianity_plots(trace, varargin)
9 12
10 13 normalize = true; normalize = true;
11 14 export = false; export = false;
15 visible = 'on';
12 16 titlestr = 'pulse quadratures'; % generic name for data titlestr = 'pulse quadratures'; % generic name for data
13 17 for k=1:2:length(varargin) for k=1:2:length(varargin)
14 18 switch varargin{k} switch varargin{k}
 
... ... function gaussianity_plots(trace, varargin)
24 28 case {'export','Export','save','Save'} case {'export','Export','save','Save'}
25 29 if ~(varargin{k+1}==false) if ~(varargin{k+1}==false)
26 30 export = true; export = true;
31 visible = 'off';
27 32 exportstr = varargin{k+1}; exportstr = varargin{k+1};
28 33 end end
29 34 otherwise otherwise
 
... ... function gaussianity_plots(trace, varargin)
48 53 getsubtrace = @(m)trace(:,getinds(m)); getsubtrace = @(m)trace(:,getinds(m));
49 54
50 55 if normalize if normalize
51 normalizestr = [10, ' (divided by std. deviation)'];
56 normalizestr = [10, ' (data has been divided by its std. deviation)'];
52 57 else else
53 58 normalizestr = ''; normalizestr = '';
54 59 end end
55 histfig = figure;
56 cdffig = figure;
57 qqfig = figure;
58 kdensfig = figure;
60 histfig = figure('visible',visible);
61 cdffig = figure('visible',visible);
62 qqfig = figure('visible',visible);
63 kdensfig = figure('visible',visible);
59 64
60 65 postprocess = @(m){ title('');... postprocess = @(m){ title('');...
61 66 ntitle([inset, 'Mode no. ',num2str(m),10,... ntitle([inset, 'Mode no. ',num2str(m),10,...
 
... ... function gaussianity_plots(trace, varargin)
66 71 s = 0; s = 0;
67 72 for m=modes for m=modes
68 73 s = s + 1; s = s + 1;
69 figure(histfig); subplot(subplotheight, subplotwidth, s); hold all
74 change_current_figure(histfig); subplot(subplotheight, subplotwidth, s); hold all
70 75 hist(getsubtrace(m),50); hist(getsubtrace(m),50);
71 76 postprocess(m); postprocess(m);
72 77
73 figure(cdffig); subplot(subplotheight, subplotwidth, s); hold all
78 change_current_figure(cdffig); subplot(subplotheight, subplotwidth, s); hold all
74 79 arrayfun(@(n)cdfplot(trace(:,n)), getinds(m)); arrayfun(@(n)cdfplot(trace(:,n)), getinds(m));
75 80 postprocess(m); postprocess(m);
76 81
77 figure(kdensfig); subplot(subplotheight, subplotwidth, s); hold all
82 change_current_figure(kdensfig); subplot(subplotheight, subplotwidth, s); hold all
78 83 arrayfun(@(n)ksdensity(trace(:,n)), getinds(m)); arrayfun(@(n)ksdensity(trace(:,n)), getinds(m));
79 84 postprocess(m); postprocess(m);
80 85
81 figure(qqfig); subplot(subplotheight, subplotwidth, s); hold all
86 change_current_figure(qqfig); subplot(subplotheight, subplotwidth, s); hold all
82 87 qqplot(getsubtrace(m)); qqplot(getsubtrace(m));
83 88 postprocess(m); postprocess(m);
84 89 end end
 
... ... function gaussianity_plots(trace, varargin)
87 92 mysuptitle = @(plotstr)suptitle([plotstr, suptitlestr],... mysuptitle = @(plotstr)suptitle([plotstr, suptitlestr],...
88 93 'fontsize', 11,... 'fontsize', 11,...
89 94 'plotregion', 0.92); 'plotregion', 0.92);
90 figure(histfig); mysuptitle('Histogram');
91 figure(cdffig); mysuptitle('Empirical CDF');
92 figure(kdensfig); mysuptitle('Quantile-quantile plot');
93 figure(qqfig); mysuptitle('Kernel density estimate');
95 change_current_figure(histfig); mysuptitle('Histogram'); set(histfig, 'visible', visible)
96 change_current_figure(cdffig); mysuptitle('Empirical CDF'); set(cdffig, 'visible', visible)
97 change_current_figure(kdensfig); mysuptitle('Kernel density estimate'); set(kdensfig, 'visible', visible)
98 change_current_figure(qqfig); mysuptitle('Quantile-quantile plot'); set(qqfig, 'visible', visible)
94 99
95 100 if export if export
96 101 % note: hist does not work with pdf export. % note: hist does not work with pdf export.
 
... ... end
109 114
110 115
111 116
117 function change_current_figure(h)
118 set(0,'CurrentFigure',h)
119 end
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