List of commits:
Subject Hash Author Date (UTC)
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
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
Commit e977df7ea63dfb64d14244db41dcbdf34832fbe9 - Add hackish workaround for problems with wrong fontsize when exporting figures
- underlying problem: with latex-ylabels, MATLAB adds a lot of unwanted y-margin
-- this in turn causes the fonts to have effectively the wrong size when embedding
the resulting pdf in a tex-document
- hackish solution: change all font sizes by hand before saving to pdf
by specifing a key-value pair 'fontsize', desiredfontsize in calls to save_fig_pdf
(and iterating with different desiredfontsizes until a satisfactory solution is found)
Author: Jason Hoelscher-Obermaier
Author date (UTC): 2017-05-13 12:18
Committer name: Jason Hoelscher-Obermaier
Committer date (UTC): 2017-05-13 12:18
Parent(s): 33dba0173e7d446c08ab89b7f0d5bd7c00f6755d
Signing key:
Tree: 4cbecbae979ecbffb6e670caeb54ec9d401db2bb
File Lines added Lines deleted
misc/convenience/save_fig_pdf.m 20 1
File misc/convenience/save_fig_pdf.m changed (mode: 100644) (index 86174de..ec57ea4)
1 function [pdf_path, fig_path, png_path] = save_fig_pdf(fig, folder, filename)
1 function [pdf_path, fig_path, png_path] = save_fig_pdf(fig, folder, filename, varargin)
2 fontsize = [];
3 for k=1:2:length(varargin)
4 switch lower(varargin{k})
5 case {'fontsize'}
6 fontsize = varargin{k+1};
7 otherwise
8 error(['Unrecognized varargin-argument ', varargin{k}]);
9 end
10 end
2 11 if ~isdir(folder) if ~isdir(folder)
3 12 folder = fullfile(pwd, folder); folder = fullfile(pwd, folder);
4 13 end end
 
... ... function [pdf_path, fig_path, png_path] = save_fig_pdf(fig, folder, filename)
6 15 fig_path = fullfile(folder, [filename, '.fig']); fig_path = fullfile(folder, [filename, '.fig']);
7 16 pdf_path = fullfile(folder, [filename, '.pdf']); pdf_path = fullfile(folder, [filename, '.pdf']);
8 17 png_path = fullfile(folder, [filename, '.png']); png_path = fullfile(folder, [filename, '.png']);
18
19 %% workaround for the problem with too large margins causing wrong font sizes
20 if ~isempty(fontsize)
21 set(findall(fig,'-property','FontSize'),'FontSize',fontsize);
22 try
23 leg = findobj(fig,'Type','axes','Tag','legend');
24 set(leg, 'FontSize', fontsize);
25 end
26 end
27
9 28 saveas(fig, fig_path); saveas(fig, fig_path);
10 29 saveas(fig, pdf_path); saveas(fig, pdf_path);
11 30 try try
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