List of commits:
Subject Hash Author Date (UTC)
Reorder y-axis in plot_logneg_gammalist.m 0e3b893335cf56d44309e6ac831d65b83638f30e Jason Hoelscher-Obermaier 2016-11-04 12:11:24
Add missing dependence export_fig 6a1acf6525c4b34a02735f213604ecf74958b349 Jason Hoelscher-Obermaier 2016-11-04 09:50:48
Fix previous commit ad41a508b9445901b51a24f77daa2f35ba8e77f4 Jason Hoelscher-Obermaier 2016-11-04 09:49:30
Add missing dependence cbrewer.m 226872c0687aaf0e055672796e3ba4aa969b14f0 Jason Hoelscher-Obermaier 2016-11-04 09:47:21
Add missing dependence num2eng.m ae92495e8af0731ce8b97a6a47573210a769f30d Jason Hoelscher-Obermaier 2016-11-04 09:44:12
Improve plot_logneg_gammalist.m d0c6f747214de647c4a642aff9d35ae00b3d572e Jason Hoelscher-Obermaier 2016-11-04 09:26:43
Add test for method calculate_mode_vectors_gammalist 9caead0502cc61fb819406d4ecf938452c6a95b4 Jason Hoelscher-Obermaier 2016-11-04 09:25:59
Add function to plot corrected log.neg. vs two different pulse widths f2ac5c5da860ae147503b7368481248baf6ffc2f Jason Hoelscher-Obermaier 2016-11-03 13:03:14
Add inverse to allcomb-function (cartesian product) cbfadf5f46f3b3e25b6b2cbd541e1ad401f9f02f Jason Hoelscher-Obermaier 2016-11-03 12:30:43
Add method calculate_mode_vectors_gammalist to allow arbitrary combinations of pulsewidths 32f32019e82563cc5f6567d095c3b260ac9682f2 Jason Hoelscher-Obermaier 2016-11-02 09:55:27
Add dummy-mode to calculateModeVectors.m 5cfea8bb14eac9563f24e04930fcb3d419d39da6 Jason Hoelscher-Obermaier 2016-10-25 11:23:21
Correct help message for permute_data.m ac030677d3f8f7c0951f42b4dc4a1370399127d1 Jason Hoelscher-Obermaier 2016-10-24 09:56:32
Improve plotCorrelationMatrix.m eca579f58fa38bdc5fa3f81bda84976d4cd46acc Jason Hoelscher-Obermaier 2016-10-21 09:11:47
Add sanity_check-scripts due to Tobias Wenzl 9d02f936ea3ffed8fe13039087934c3326c33350 Jason Hoelscher-Obermaier 2016-09-30 12:10:45
Add peak_identification function due to Tobias Wenzl c8a4a8d38e8a909a5688e8ed5d3a88712f571dfa Jason Hoelscher-Obermaier 2016-09-30 12:07:52
Also export calibrated CMs, log.negativity and physicality from ev-object if they exist c063641e12dc805b62f5ef8bf49a5311dc803770 Jason Hoelscher-Obermaier 2016-09-22 12:53:49
Add method plotLogneg to entanglement_evaluation-class e7443b5adbcf6a9ef4a4dc95c5e27160e5c2f704 Jason Hoelscher-Obermaier 2016-09-22 12:23:44
Add darknoise-subtraction-method to entanglement_evaluation be1fc701bd39f6a0892383f9446daf408e6f7394 Jason Hoelscher-Obermaier 2016-09-22 09:30:49
Adapt test to check for result of CM-calibration procedure in entanglement_evaluation_test... e1b9ab299b267f97a7fdd24f4e1cce6abe942185 Jason Hoelscher-Obermaier 2016-09-20 16:15:52
Change quad.order to q1,p1,q2,p2,..,x1,y1,x2,y2,... everywhere for consistency 997cd1260b8b222bd0b6ebf3f8567db04ace24fd Jason Hoelscher-Obermaier 2016-09-20 10:30:19
Commit 0e3b893335cf56d44309e6ac831d65b83638f30e - Reorder y-axis in plot_logneg_gammalist.m
-also default to asymmetric color spacing plus sequential colormap
Author: Jason Hoelscher-Obermaier
Author date (UTC): 2016-11-04 12:11
Committer name: Jason Hoelscher-Obermaier
Committer date (UTC): 2016-11-04 12:11
Parent(s): 6a1acf6525c4b34a02735f213604ecf74958b349
Signer:
Signing key:
Signing status: N
Tree: 033b8e24e59f240a65f7448b1bff3d83604d2ed3
File Lines added Lines deleted
data_analysis/@entanglement_evaluation/plot_logneg_gammalist.m 37 13
File data_analysis/@entanglement_evaluation/plot_logneg_gammalist.m changed (mode: 100644) (index 83a5fd7..d55dc71)
1 function plot_logneg_gammalist(ev, power_ind)
1 function plot_logneg_gammalist(ev, power_ind, varargin)
2 symmetric = false;
3 for k=1:2:length(varargin)
4 switch varargin{k}
5 case {'symmetric', 'Symmetric'}
6 symmetric = varargin{k+1};
7 otherwise
8 error(['Unrecognized varargin-argument ', varargin{k}])
9 end
10 end
11
2 12 pulse_widths_factorized = allcomb_invert(ev.pulse_widths); pulse_widths_factorized = allcomb_invert(ev.pulse_widths);
3 13
4 14 % right now, we only support plotting mode 1 on x and mode 2 on y % right now, we only support plotting mode 1 on x and mode 2 on y
 
... ... function plot_logneg_gammalist(ev, power_ind)
10 20 x_labels = cellfun(@num2eng, num2cell(x_labels(:)), 'UniformOutput', false); x_labels = cellfun(@num2eng, num2cell(x_labels(:)), 'UniformOutput', false);
11 21
12 22 y_labels = pulse_widths_factorized{y_mode_no}; y_labels = pulse_widths_factorized{y_mode_no};
23 y_labels = flipud(y_labels);
13 24 y_labels = cellfun(@num2eng, num2cell(y_labels(:)), 'UniformOutput', false); y_labels = cellfun(@num2eng, num2cell(y_labels(:)), 'UniformOutput', false);
14 25
15 26 % reshape data to be consistent with axis labelling % reshape data to be consistent with axis labelling
16 27 data = reshape(cell2mat(ev.logneg_corrected{power_ind})',... data = reshape(cell2mat(ev.logneg_corrected{power_ind})',...
17 28 length(x_labels), length(y_labels)); length(x_labels), length(y_labels));
18 data_max = max(max(data));
19 data_min = min(min(data));
20 extremum = max([abs(data_min), data_max]);
29 data = flipud(data);
21 30
22 31 % plot % plot
23 32 ncolors = 128; ncolors = 128;
24 cmap = cbrewer('div', 'RdBu', 128);
25 %Divergent tables:'BrBG', 'PiYG', 'PRGn', 'PuOr', 'RdBu', 'RdGy', 'RdYlBu', 'RdYlGn'
26 heatmap(data, x_labels, y_labels, '%0.3f',...
27 'Colormap', cmap, 'Colorbar', true,...
28 'MinColorValue',-extremum, 'MaxColorValue',extremum,...
29 'GridLines', ':', 'TextColor', 'k',...
30 'ColorLevels',ncolors);
31 xlabel(['Width [Hz] for mode with central frequency ', num2eng(ev.mech_frequencies(x_mode_no)),'Hz'])
32 ylabel(['Width [Hz] for mode with central frequency ', num2eng(ev.mech_frequencies(y_mode_no)),'Hz'])
33 if symmetric
34 cmap = cbrewer('div', 'RdBu', 128);
35 %Divergent tables:'BrBG', 'PiYG', 'PRGn', 'PuOr', 'RdBu', 'RdGy', 'RdYlBu', 'RdYlGn'
36
37 data_max = max(max(data));
38 data_min = min(min(data));
39 extremum = max([abs(data_min), data_max]);
33 40
41 heatmap(data, x_labels, y_labels, '%0.3f',...
42 'Colormap', cmap, 'Colorbar', true,...
43 'MinColorValue',-extremum, 'MaxColorValue',extremum,...
44 'GridLines', ':', 'TextColor', 'k',...
45 'ColorLevels', ncolors);
46 else
47 cmap = cbrewer('seq', 'Blues', 128);
48 % Sequential tables:'Blues','BuGn','BuPu','GnBu','Greens','Greys','Oranges','OrRd','PuBu','PuBuGn','PuRd','Purples','RdPu','Reds','YlGn','YlGnBu','YlOrBr','YlOrRd','Spectral'
49
50 heatmap(data, x_labels, y_labels, '%0.3f',...
51 'Colormap', cmap, 'Colorbar', true,...
52 'GridLines', ':', 'TextColor', 'k',...
53 'ColorLevels', ncolors);
54 end
55 xlabel(['Width [Hz] for mode with central frequency ', num2eng(ev.mech_frequencies(x_mode_no)),'Hz'])
56 ylabel(['Width [Hz] for mode with central frequency ', num2eng(ev.mech_frequencies(y_mode_no)),'Hz'])
57
34 58 % export to ev.evaluation_folder % export to ev.evaluation_folder
35 59 wherewasi = cd; wherewasi = cd;
36 60 cd(ev.evaluation_folder); cd(ev.evaluation_folder);
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