forked from sergioyapa/Plot-it-...but-plot-it-well-MATLAB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbutplotwell.m
More file actions
21 lines (18 loc) · 1.09 KB
/
butplotwell.m
File metadata and controls
21 lines (18 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ...BUT PLOT WELL
% Sergio Yanez-Pagans 2021
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Make your MATLAB figures look great!
hold on % holds the opened figure for further modification
shading interp % interpolates datapoints, ideal for 3D graphs
grid off % removes graph grid
box on % shows all the borders of the graph instead of just a few
set(gca,'layer','top') % puts all labels and axes (borders) on top of the plotted data
set(gca,'linewidth',2) % controls the linewidth of the graph borders
set(gca,'fontsize',28) % sets the font size for all elements of the plot
set(gca,'fontname','times new roman') % sets the font type for all elements of the plot
set(gcf,'windowstate','maximized') % maximizes the figure window
set(gcf,'color','w'); % sets the background color behind the plot ('w': white)
pbaspect([1 1 1]) % ratio of x, y, z axes. [1 1 1] for square plots
% to include and modify a colorbar uncomment the following line:
% set(colorbar,'linewidth',2) % shows colorbar and controls its linewidth