List of commits:
Subject Hash Author Date (UTC)
Add more varargin-options to plotLogneg.m and plot_logneg_versus_gamma.m bd4d77856eaaf5afdf38e2fb22b177a18249d83c Jason Hoelscher-Obermaier 2017-05-30 14:27:35
Add options for colorbar position and data label background color to plot_matrix 261a772c66212e9b82d9125cfb059565dae41fba Jason Hoelscher-Obermaier 2017-05-22 17:35:34
Add fct set_legend_title be01bc463524c4943a3268b349f6a524a62c64f3 Jason Hoelscher-Obermaier 2017-05-16 13:34:19
Allow to set interpreter and fontsize in labels.m 24f21770d074737ed0b9d7e879cff39ee3f9fd63 Jason Hoelscher-Obermaier 2017-05-16 13:32:24
Attempt to open generated pdf in save_fig_pdf bcf7b91a892bc3cd6f1da5202cfff0825d3ba406 Jason Hoelscher-Obermaier 2017-05-16 13:30:56
Add hackish workaround for problems with wrong fontsize when exporting figures e977df7ea63dfb64d14244db41dcbdf34832fbe9 Jason Hoelscher-Obermaier 2017-05-13 12:18:19
Add option 'show_physicality' to plot_logneg_versus_gamma.m (class meta_ev) 33dba0173e7d446c08ab89b7f0d5bd7c00f6755d Jason Hoelscher-Obermaier 2017-05-13 12:02:12
Set default font size for legends and labels to 11 4f9be2e429605dd90ab6b1eabb88fea12c7e9ddb Jason Hoelscher-Obermaier 2017-05-13 12:01:05
Remove figure.m to avoid MATLAB warnings 3c8e854f1e48d28df090753f615e5e1028259531 Jason Hoelscher-Obermaier 2017-05-13 11:57:42
Copy generated png to clipboard autom.ly in save_fig_pdf 70897f3af36723888e59ae3421545d96d67db302 Jason Hoelscher-Obermaier 2017-05-10 10:18:00
Add option to hide legend entries for 'Physicality' to plotLogneg db263de99d27a86255cd724b06208c1cae93bd76 Jason Hoelscher-Obermaier 2017-05-10 10:17:12
Fix bug: surround arguments to 'system' by double quotes dffc09c758a8f55fb8dc2a4ddf68c8593be46a3d Jason Hoelscher-Obermaier 2017-05-09 10:24:55
Add property max_physical_logneg to entanglement_evaluation 865055eadb8c4b035321b2359b69dad4f48e33ec Jason Hoelscher-Obermaier 2017-05-08 09:37:40
Add option 'only_physical' to plotLogneg and plot_logneg_versus_gama a5510a09ab9ecb8239aef3853867884aefb28e3b Jason Hoelscher-Obermaier 2017-05-07 09:47:52
Add option 'two_sidebands' to trace_out 3f70b4498e116bf89ea2230e4a6b081d8d240bc3 Jason Hoelscher-Obermaier 2017-05-07 08:14:45
Fix bug in meta_ev 25d2497bf41eaf1198d88269dd3460812b38e18f Jason Hoelscher-Obermaier 2017-05-05 17:45:20
Allow plotting of abs. values with log. color scale in plot_CM 2147950f70bb2631656c1c20448eeda106acf6e2 Jason Hoelscher-Obermaier 2017-05-05 16:15:26
Improve plotLogneg 445bec4d79ec7c09efa92a878e9fc9d5b3a6801e Jason Hoelscher-Obermaier 2017-05-05 15:26:31
Add method plot_CM to entanglement_evaluation 54f9ca5aa51e96aedf3dddaa1609438c088a87b8 Jason Hoelscher-Obermaier 2017-05-05 14:29:23
Add option 'color_range' to plot_matrix 7ae27bc20af3faf8947ac07eec66b52851c45f54 Jason Hoelscher-Obermaier 2017-05-05 13:57:06
Commit bd4d77856eaaf5afdf38e2fb22b177a18249d83c - Add more varargin-options to plotLogneg.m and plot_logneg_versus_gamma.m
- in plotLogneg.m
-- 'legend_interpreter', e.g. 'latex' or 'none' (default: 'none')

- in plot_logneg_versus_gamma.m
-- 'legend_title', if given it overrides any default legend title
-- 'physicality_marker': allows to specify a marker for physicality (default: 'ok')
-- 'show_physicality_legend': if true (default), show legend entries for physicality markers
Author: Jason Hoelscher-Obermaier
Author date (UTC): 2017-05-30 14:27
Committer name: Jason Hoelscher-Obermaier
Committer date (UTC): 2017-05-30 14:27
Parent(s): 261a772c66212e9b82d9125cfb059565dae41fba
Signing key:
Tree: 209e18057552a5637235ebe3dfc5da675fb38a0b
File Lines added Lines deleted
data_analysis/@entanglement_evaluation/plotLogneg.m 4 0
data_analysis/@meta_ev/plot_logneg_versus_gamma.m 31 0
File data_analysis/@entanglement_evaluation/plotLogneg.m changed (mode: 100644) (index 14e3ba9..9c6be09)
... ... function fig = plotLogneg(obj, varargin)
10 10 physicality_marker = 'ok'; physicality_marker = 'ok';
11 11 show_legend = true; show_legend = true;
12 12 legend_location = 'Best'; legend_location = 'Best';
13 legend_interpreter = 'none';
13 14 show_grid = false; show_grid = false;
14 15 mark_maximum = false; mark_maximum = false;
15 16 mark_optimum = false; mark_optimum = false;
 
... ... function fig = plotLogneg(obj, varargin)
59 60 data_labels = varargin{k+1}; data_labels = varargin{k+1};
60 61 case {'legend_location', 'legend_position'} case {'legend_location', 'legend_position'}
61 62 legend_location = varargin{k+1}; legend_location = varargin{k+1};
63 case {'legend_interpreter', 'legendinterpreter'}
64 legend_interpreter = varargin{k+1};
62 65 case {'lines', 'show_lines'} case {'lines', 'show_lines'}
63 66 show_lines = varargin{k+1}; show_lines = varargin{k+1};
64 67 case {'line_style', 'linestyle'} case {'line_style', 'linestyle'}
 
... ... function fig = plotLogneg(obj, varargin)
196 199 if show_legend if show_legend
197 200 leg = compactify_legend(leg); leg = compactify_legend(leg);
198 201 leg = reposition_legend(leg, legend_location); leg = reposition_legend(leg, legend_location);
202 set(leg, 'interpreter', legend_interpreter);
199 203 else else
200 204 legend off legend off
201 205 end end
File data_analysis/@meta_ev/plot_logneg_versus_gamma.m changed (mode: 100644) (index 233f2c5..321fb61)
... ... function fig = plot_logneg_versus_gamma(meta, tracepairs_ind, varargin)
8 8 subplotnum = 111; subplotnum = 111;
9 9 show_legend = false; show_legend = false;
10 10 legend_location = 'Best'; legend_location = 'Best';
11 legend_title = [];
11 12 legend_title_maxlength = inf; legend_title_maxlength = inf;
12 13 legend_postfix = ''; legend_postfix = '';
13 14 legend_number_parser = @num2eng; legend_number_parser = @num2eng;
14 15 only_physical = false; only_physical = false;
15 16 show_physicality = false; show_physicality = false;
17 physicality_marker = 'ok';
18 show_physicality_legend = true;
16 19 for k=1:2:length(varargin) for k=1:2:length(varargin)
17 20 switch lower(varargin{k}) switch lower(varargin{k})
18 21 case {'line_style', 'linestyle'} case {'line_style', 'linestyle'}
 
... ... function fig = plot_logneg_versus_gamma(meta, tracepairs_ind, varargin)
21 24 only_physical = varargin{k+1}; only_physical = varargin{k+1};
22 25 case {'show_physicality'} case {'show_physicality'}
23 26 show_physicality = varargin{k+1}; show_physicality = varargin{k+1};
27 case {'physicality_marker'}
28 physicality_marker = varargin{k+1};
29 case {'show_physicality_legend','physicality_legend'}
30 show_physicality_legend = varargin{k+1};
24 31 case {'x_scale','xscale'} case {'x_scale','xscale'}
25 32 x_scale = varargin{k+1}; x_scale = varargin{k+1};
26 33 case {'x_lims','xlims','x_lim','xlim'} case {'x_lims','xlims','x_lim','xlim'}
 
... ... function fig = plot_logneg_versus_gamma(meta, tracepairs_ind, varargin)
45 52 legend_location = varargin{k+1}; legend_location = varargin{k+1};
46 53 case {'legend_title_maxlength', 'legendtitlemaxlength'} case {'legend_title_maxlength', 'legendtitlemaxlength'}
47 54 legend_title_maxlength = varargin{k+1}; legend_title_maxlength = varargin{k+1};
55 case {'legend_title', 'legendtitle'}
56 legend_title = varargin{k+1};
48 57 case {'legend_postfix','legendpostfix'} case {'legend_postfix','legendpostfix'}
49 58 legend_postfix = varargin{k+1}; legend_postfix = varargin{k+1};
50 59 case {'legend_numberformat','legendnumberformat'} case {'legend_numberformat','legendnumberformat'}
 
... ... function fig = plot_logneg_versus_gamma(meta, tracepairs_ind, varargin)
81 90 'color', cmap(color_ind,:),... 'color', cmap(color_ind,:),...
82 91 'title', '', 'legend', false,... 'title', '', 'legend', false,...
83 92 'show_physicality', show_physicality,... 'show_physicality', show_physicality,...
93 'physicality_marker', physicality_marker,...
94 'show_physicality_legend', show_physicality_legend,...
84 95 'only_physical', only_physical,... 'only_physical', only_physical,...
85 96 'show_zero', false); 'show_zero', false);
86 97 for k=1:meta.evaluations_no for k=1:meta.evaluations_no
 
... ... function fig = plot_logneg_versus_gamma(meta, tracepairs_ind, varargin)
112 123 end end
113 124 set(leg, 'Color', 'w', 'FontWeight', 'normal',... set(leg, 'Color', 'w', 'FontWeight', 'normal',...
114 125 'LineWidth', 1, 'Interpreter', 'latex','FontSize',11); 'LineWidth', 1, 'Interpreter', 'latex','FontSize',11);
126 leg = compactify_legend(leg);
127 if ~isempty(legend_title)
128 legtitle = get(leg,'title');
129 set(legtitle,'string', legend_title,...
130 'interpreter', 'latex','FontSize',11);
131 end
115 132 end end
116 133
117 134 if show_zero if show_zero
 
... ... function fig = plot_logneg_versus_gamma(meta, tracepairs_ind, varargin)
122 139 meta.xylims(x_lims, y_lims); meta.xylims(x_lims, y_lims);
123 140 meta.my_postprocess_plot(fig); meta.my_postprocess_plot(fig);
124 141 meta.ln_fig = fig; meta.ln_fig = fig;
142
143
144
145 function leg = compactify_legend(leg)
146 [~,~,plot_handles,leg_strs] = legend(leg);
147 unwanted_inds = strmatch('', leg_strs, 'exact');
148 for k=1:length(leg_strs)
149 if isequal(leg_strs{k}, ['data',num2str(k)])
150 unwanted_inds = [unwanted_inds, k];
151 end
152 end
153 wanted_inds = setdiff(1:length(leg_strs),unwanted_inds);
154 leg = legend(plot_handles(wanted_inds), leg_strs{wanted_inds},...
155 'Location', 'Best');
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