altmany / altmany/export_fig

Export_fig embedded fonts in Matlab R2018a

Đang mở
#258 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
MATLAB
Star
1.4k
Fork
366
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi,

I'm trying to export a figure in PDF format with the Palatino and Cambria fonts.

The matlab code is as follows:
```Matlab
x = rand(4,2);
figure('color', 'w');
b = bar(x, 'barwidth', 0.9) ;
b(1).FaceColor = [ 0 0.4470 0.7410];
b(2).FaceColor = [ 0.6350 0.0780 0.1840];
set(gca, 'fontsize', 20, 'fontname', 'cambria', 'fontweight', 'bold', 'xticklabel', {'0-1', '2-5', '6-10', '>10'});
ylabel('Vertical Axis', 'fontname', 'palatino')
xlabel('Horizontal Axis', 'fontname', 'palatino')
leg = legend('Model', 'Data', 'Location', 'Northeast');
set(leg, 'box', 'off', 'fontname', 'palatino')
grid on
export_fig example -pdf -painters -nofontswap
```

This is the resulting figure: (note fonts have been altered)
[example.pdf](https://github.com/altmany/export_fig/files/2530699/example.pdf)

Am I doing something wrong?
Any help is greatly appreciated!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.