List of commits:
Subject Hash Author Date (UTC)
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
Improve convenience function plot_matrix 8ebc93c933416a384bc4c6b0ab44a8f6f516b695 Jason Hoelscher-Obermaier 2017-05-05 10:07:33
Fix bug which prevents exporting of pulse_trace if these become very large c2a75103be1264f1fa462d1d2b5c685d8cda32e0 Jason Hoelscher-Obermaier 2017-05-04 15:10:20
Add purity and occupation as properties to entanglement_evaluation f512ccdf6c11f0967feeb1fe11dbd8227307647e Jason Hoelscher-Obermaier 2017-05-04 08:55:34
Allow tracing of individual light modes in trace_out.m bc85fff490d92add04a08b32507d8b99aabc1814 Jason Hoelscher-Obermaier 2017-05-02 16:42:04
Also always save a png in save_fig_pdf.m 1d0ca7530e1efbd861637b7b913d78d3e70b1d15 Jason Hoelscher-Obermaier 2017-05-02 11:26:29
Extend plot_cuts to work with 1-dimensional (vector) meta_evs 3d7fd42b341f66e0d7e6733a4817c53c61f04863 Jason Hoelscher-Obermaier 2017-05-02 10:32:20
Add convenience fcts for plotting: logticks and set_tick_format fff9d4f483232a9377c5fdb4686f1ba1f5b48921 Jason Hoelscher-Obermaier 2017-05-02 10:28:50
Add support for automatic legends to plot_logneg_versus_gamma.m f10bdf863978f2c19acf73ca726de0855d16f9f0 Jason Hoelscher-Obermaier 2017-05-02 09:53:51
Add option to plot to subplots to plot_cuts and plot_logneg_versus_gamma 7037df1212f6ba94e74311c7fcdc1ffde453063d Jason Hoelscher-Obermaier 2017-05-02 09:21:31
Add option 'data_label' to plotLogneg.m 4f37d32ba0720a04e967125d8f02ade1239b27f9 Jason Hoelscher-Obermaier 2017-05-02 09:20:11
Commit db263de99d27a86255cd724b06208c1cae93bd76 - Add option to hide legend entries for 'Physicality' to plotLogneg
Author: Jason Hoelscher-Obermaier
Author date (UTC): 2017-05-10 10:17
Committer name: Jason Hoelscher-Obermaier
Committer date (UTC): 2017-05-11 15:10
Parent(s): dffc09c758a8f55fb8dc2a4ddf68c8593be46a3d
Signing key:
Tree: bbc17eee0a11abbf7b85124e9d3007ff585ba3a2
File Lines added Lines deleted
data_analysis/@entanglement_evaluation/plotLogneg.m 29 9
File data_analysis/@entanglement_evaluation/plotLogneg.m changed (mode: 100644) (index 5acdbb0..7803fe2)
... ... function fig = plotLogneg(obj, varargin)
5 5 show_lines = true; show_lines = true;
6 6 linestyle = '.-'; linestyle = '.-';
7 7 show_physicality = true; show_physicality = true;
8 show_physicality_legend = true;
8 9 only_physical = false; only_physical = false;
9 10 physicality_marker = 'ok'; physicality_marker = 'ok';
10 11 show_legend = true; show_legend = true;
 
... ... function fig = plotLogneg(obj, varargin)
25 26 save_fig = varargin{k+1}; save_fig = varargin{k+1};
26 27 case {'show_physicality','physicality'} case {'show_physicality','physicality'}
27 28 show_physicality = varargin{k+1}; show_physicality = varargin{k+1};
29 case {'show_physicality_legend','physicality_legend'}
30 show_physicality_legend = varargin{k+1};
28 31 case {'physicality_marker'} case {'physicality_marker'}
29 32 physicality_marker = varargin{k+1}; physicality_marker = varargin{k+1};
30 33 case {'only_physical'} case {'only_physical'}
 
... ... function fig = plotLogneg(obj, varargin)
130 133
131 134
132 135 % add info regarding physicality to plot % add info regarding physicality to plot
133 if show_physicality
136 if show_physicality && ~only_physical
134 137 for k=tracepairs for k=tracepairs
135 138 physicality = [obj.pulse_CM_is_physical{k}{:}]; physicality = [obj.pulse_CM_is_physical{k}{:}];
136 139 lognegs = [obj.logneg_corrected{k}{:}]; lognegs = [obj.logneg_corrected{k}{:}];
137 140 lognegs(~physicality)=nan; lognegs(~physicality)=nan;
138 141 phys_plot = plot(obj.pulse_gammas, lognegs, physicality_marker); phys_plot = plot(obj.pulse_gammas, lognegs, physicality_marker);
139 142 end end
140 leg = add_to_legend(leg, phys_plot, 'Physical');
143 if show_physicality_legend
144 leg = add_to_legend(leg, phys_plot, 'Physical');
145 else
146 leg = add_to_legend(leg, phys_plot, '');
147 end
141 148 end end
142 149
143 150 % add info regarding maximum (over evaluated data) % add info regarding maximum (over evaluated data)
 
... ... function fig = plotLogneg(obj, varargin)
187 194
188 195 % optimize legend position or hide legend if not wanted % optimize legend position or hide legend if not wanted
189 196 if show_legend if show_legend
190 reposition_legend(leg, legend_location)
197 leg = compactify_legend(leg);
198 leg = reposition_legend(leg, legend_location);
191 199 else else
192 200 legend off legend off
193 201 end end
 
... ... function fig = plotLogneg(obj, varargin)
209 217 end end
210 218
211 219 function leg = add_to_legend(leg, plot_handle, leg_str) function leg = add_to_legend(leg, plot_handle, leg_str)
212 [~,~,plot_handles,leg_strs] = legend(leg);
213 plot_handles = [plot_handles; plot_handle];
214 leg_strs = {leg_strs{:}, leg_str};
215 leg = legend(plot_handles, leg_strs{:},...
220 [~,~,plot_handles,leg_strs] = legend(leg);
221 plot_handles = [plot_handles; plot_handle];
222 leg_strs = {leg_strs{:}, leg_str};
223 leg = legend(plot_handles, leg_strs{:},...
216 224 'Location', 'Best'); 'Location', 'Best');
217 225
218 function reposition_legend(leg, location)
226 function leg = reposition_legend(leg, location)
219 227 [~,~,plot_handles,leg_strs] = legend(leg); [~,~,plot_handles,leg_strs] = legend(leg);
220 228 leg = legend(plot_handles, leg_strs{:},... leg = legend(plot_handles, leg_strs{:},...
221 'Location', location);
229 'Location', location, 'interpreter', 'latex');
230
231 function leg = compactify_legend(leg)
232 [~,~,plot_handles,leg_strs] = legend(leg);
233 unwanted_inds = strmatch('', leg_strs, 'exact');
234 for k=1:length(leg_strs)
235 if isequal(leg_strs{k}, ['data',num2str(k)])
236 unwanted_inds = [unwanted_inds, k];
237 end
238 end
239 wanted_inds = setdiff(1:length(leg_strs),unwanted_inds);
240 leg = legend(plot_handles(wanted_inds), leg_strs{wanted_inds},...
241 '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