-
Notifications
You must be signed in to change notification settings - Fork 368
Closed
Labels
Description
Thanks for a very useful package!
But I do have one problem with it. I can't get it to export an eps with the correct font for the label numbers in a contour plot. All the other fonts works, but the numbers on the lines in the contour plot are in Courier instead of Garamond.
clear all
setfontname = ('Garamond');
x = [0 1 3];
y = [0 1 3];
d = [0 1 1; 1 2 2; 1 2 3];
levels = 0:0.5:3;
close all
figure('Position', [200, 200, 200, 200])
[C,h] = contourf(x,y,d,levels);
clabel(C,h,'FontName',setfontname)
xlabel('X axis [unit]','fontname',setfontname)
ylabel('Y axis [unit]','fontname',setfontname)
title('Figure title','fontname',setfontname)
fname = 'exporttest';
export_fig(fname,'-eps','-transparent')Reactions are currently unavailable
