-
Notifications
You must be signed in to change notification settings - Fork 1
/
zissoumyplot.m
34 lines (27 loc) · 1022 Bytes
/
zissoumyplot.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
function zissoumyplot(hfigure)
% function zissoumyplot(hfigure)
%
% Make your plots look just like they escaped from The Life Aquatic.
% Changes the colormap to Zissou and fonts to Helvetica.
% Inspired by and translated from
% https://github.com/karthik/wesanderson/blob/master/README.md
%
% KIM 03.14
% set the figure
if nargin <1
hfigure = gcf;
end
% change the colormap to Zissou
colormap(zissou)
% change all the fonts on the plot to futura
set(findall(hfigure,'type','text'),'fontSize',16, 'fontname', 'futura', 'fontweight', 'normal')
% set(gca,'fontSize',14, 'fontname', 'futura', 'fontweight', 'normal')
set(gca, 'fontname', 'futura', 'fontweight', 'normal')
% Zissouify the title
htitle = get(gca, 'title');
% Change title to upper case
tstring = upper(get(htitle, 'string'));
set(htitle, 'string', tstring)
% change the font and size of the title
% set(htitle, 'fontsize', 24, 'fontname', 'futura', 'color', 'k', 'fontweight', 'normal')
set(htitle, 'fontname', 'futura', 'fontweight', 'normal')