Skip to content

Commit e4885f8

Browse files
committed
-
1 parent a1e416f commit e4885f8

File tree

7 files changed

+527
-550
lines changed

7 files changed

+527
-550
lines changed

source/plot_cmap.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
% 17/05/15: added addiitonal scales
3131
% 21/03/18: added additional scales
3232
% removed old alternative plotting library option
33+
% 24/07/17: saving as PDF rather than PS
3334
%
3435
% ***********************************************************************
3536

@@ -157,7 +158,7 @@
157158
set(gcf,'CurrentAxes',fh(1));
158159
str_filename = ['colorscales'];
159160
str_filename = [str_filename '.' str_date];
160-
print('-dpsc2', '-bestfit', [str_filename, '.ps']);
161+
exportgraphics(gcf,[str_filename '.pdf'],'BackgroundColor','none','ContentType','vector');
161162
%
162163
% *********************************************************************** %
163164

source/plot_crossplotc.m

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
% deepest points (assumed to be fewest) end up on top
5656
% 20/09/04: filtered out 'anom' color scale
5757
% 20/12/30: disable stats if data cannot support the calculation
58+
% 24/07/17: saving as PDF rather than PS
5859
%
5960
% ***********************************************************************
6061

@@ -282,16 +283,7 @@
282283
if (plot_format_old)
283284
print('-dpsc2', [str_filename, '.ps']);
284285
else
285-
switch plot_format
286-
case 'png'
287-
export_fig([str_filename '.png'], '-png', '-r150', '-nocrop');
288-
case 'pngT'
289-
export_fig([str_filename '.png'], '-png', '-r150', '-nocrop', '-transparent');
290-
case 'jpg'
291-
export_fig([str_filename '.jpg'], '-jpg', '-r150', '-nocrop');
292-
otherwise
293-
export_fig([str_filename '.eps'], '-eps', '-nocrop');
294-
end
286+
exportgraphics(gcf,[str_filename '.pdf'],'BackgroundColor','none','ContentType','vector');
295287
end
296288
%
297289
% *********************************************************************** %

source/plot_crossplotc2.m

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
% 20/12/30: disable stats if data cannot support the calculation
5858
% 23/08/08: CREATED: plot_crossplotc2
5959
% 23/08/08: added optional specified axis limits
60+
% 24/07/17: saving as PDF rather than PS
6061
%
6162
% ***********************************************************************
6263

@@ -307,16 +308,7 @@
307308
if (plot_format_old)
308309
print('-dpsc2', [str_filename, '.ps']);
309310
else
310-
switch plot_format
311-
case 'png'
312-
export_fig([str_filename '.png'], '-png', '-r150', '-nocrop');
313-
case 'pngT'
314-
export_fig([str_filename '.png'], '-png', '-r150', '-nocrop', '-transparent');
315-
case 'jpg'
316-
export_fig([str_filename '.jpg'], '-jpg', '-r150', '-nocrop');
317-
otherwise
318-
export_fig([str_filename '.eps'], '-eps', '-nocrop');
319-
end
311+
exportgraphics(gcf,[str_filename '.pdf'],'BackgroundColor','none','ContentType','vector');
320312
end
321313
%
322314
% *********************************************************************** %

source/plot_histc_file.m

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
% 14/08/19: CREATED
2525
% 14/08/20: further development and 1st stable version
2626
% 14/12/31: renamed from plot_histc.m
27+
% 24/07/17: saving as PDF rather than PS
2728
%
2829
% ***********************************************************************
2930

@@ -221,16 +222,7 @@
221222
if (plot_format_old)
222223
print('-dpsc2', [str_filename, '.ps']);
223224
else
224-
switch plot_format
225-
case 'png'
226-
export_fig([str_filename '.png'], '-png', '-r150', '-nocrop');
227-
case 'pngT'
228-
export_fig([str_filename '.png'], '-png', '-r150', '-nocrop', '-transparent');
229-
case 'jpg'
230-
export_fig([str_filename '.jpg'], '-jpg', '-r150', '-nocrop');
231-
otherwise
232-
export_fig([str_filename '.eps'], '-eps', '-nocrop');
233-
end
225+
exportgraphics(gcf,[str_filename '.pdf'],'BackgroundColor','none','ContentType','vector');
234226
end
235227
%
236228
% *********************************************************************** %

0 commit comments

Comments
 (0)