Latex interpreter + enlarge font size in MATLAB lower text resolution in plot -
When I read shadedErrorBar , I have used a part of the code during the plot Here is how:
plot1 = shadedErrorBar (tau_vec, mean (deg_20_hubs_0), sd_deg_20_hubs_0, 'b-o', 1); Wait; Plot2 = shadedErrorBar (tau_vec, mean (deg_20_hubs_1), sd_deg_20_hubs_1, 'r-o', 1); Plot3 = shadedErrorBar (tau_vec, mean (deg_40_hubs_0), sd_deg_40_hubs_0, 'b-x', 1); Plot4 = shadedErrorBar (tau_vec, mean (deg_40_hubs_1), sd_deg_40_hubs_1, 'r-x', 1); Hold down; Set (GCA, 'fontasis', 15); Xlabel ('$ $ log_2 c_ \ tau $', 'interpreter', 'latex'); Ylabel ('ExNVI'); XLIM ([- 13, 13]); Ylim ([0, 1]); I = Legend ('$ \ bar {d} = 20 $; no hub', '$ \ bar {d} = 20 $; with_hub', '$ \ bar {d} = 40 $; not hub', '$ With \ bar {d} = 40 $; hub, ... 'location', 'southwest'); Set (I, 'interpreter', 'latex', 'fantasy', 15); If (off_digay == 10 & amp; amp; en === 500) set (I, 'visible', 'on'); And set (i, 'view', 'off'); On the end box; Set (GCA, 'units', 'centimeter'); Pos = Mill (GCA, 'Status'); Ti = Mill (GCA, 'Tityset'); Set (GCF, 'Paper-Unit', 'Centimeter'); Set (gcf, 'paper size', [pause (3) + ti (1) + ti (3) +0.6 pause (4) + ti (2) + ti (4) +0.6]); Set (gcf, 'paperposition mode', 'manual'); Set (GCF, 'Paperpecio', [0 pause (3) + Ti (1) + Ti (3) +0.6 pause (4) + ti (2) + ti (4) +0.6]); Left (fig, sprintoff ('./ output / offi_g_% d_N_% d.pdf', off_dig, n)); The resulting plots have such low resolution texts:
But the resolution of the curve is fine. The problem disappeared when I tried to remove the latex interpreter, but is it possible to keep it and fix the resolution? I've plotted in Windows under MATLAB 2014b.
Many thanks!
set (gcf, 'renderer', 'painters'); This problem will solve the problem as vector graphic, which is a better option because you are using PDF format. Also specify the resolution using print instead of saveas :
print (fig, '-dpdf', '- 600 '' MyFigure.pdf '')
Comments
Post a Comment