plot - 八度图未在 pdfcairo 中正确打印
问题描述
我正在尝试处理subplot
我的数据,但以 PDF 格式打印会带来我无法使用的结果:标题和 x 轴标题被剪切(图例的框被图形覆盖,但我可以用其他位置处理)。我必须使用 gnuplot 和 pdfcairo,因为其他 seup 不适用于特殊字符、变音符号等。
clear;clc;close all;clf;clear all;
graphics_toolkit("gnuplot")
x = 0:.1:10;
y1 = exp(-x).*sin(x);
y2 = exp(x);
h=figure(1);
subplot(2,1,1);
plot(x,y1)
h1 = plot(x,y1);
set(h1,'LineWidth',4)
set(gca,'FontSize',32)
set(gca,'FontName','Times')
set(get(gca,'Ylabel'),'String','TTEST test \rho \rightarrow','FontWeight','Bold','FontSize',32)
set(get(gca,'Xlabel'),'String','abc / - \rightarrow','FontWeight','Bold','FontSize',32)
legend({
'h_{ref}(t)'
},"location", 'northeast');
title('TITLE')
l1 = legend;
set(l1,'FontName','Times')
subplot(2,1,2);
h2 = plot(x,y2);
set(h2,'LineWidth',4)
set(gca,'FontSize',32)
set(gca,'FontName','Times')
set(get(gca,'Ylabel'),'String','TTEST test \rho \rightarrow','FontWeight','Bold','FontSize',32)
set(get(gca,'Xlabel'),'String','agc / -\rightarrow','FontWeight','Bold','FontSize',32)
legend({
'h_{ref}(t)'
},"location", 'northeast');
l2 = legend;
set(l2,'FontName','Times')
print ('title_axis.pdf', '-dpdfcairo', '-S1000,600');
解决方案
推荐阅读
- .htaccess - 使用 htaccess 将子目录直接指向子域
- javascript - 为什么我在将 MERN 部署到 Heroku 期间错误地收到文件丢失错误?
- r - 在 R 中拆分一列并找到平均值
- python - Selenium-python2.7:单击模态表复选框(遵循 Selenium IDE)
- android - Kotlin toFloat 函数舍入问题
- c - 从文本文件读取到结构数组时遇到问题
- c# - Xamarin-IOS 生成错误 - 无法链接程序集。处理项目引用时出错
- vba - 这个搜索功能似乎在第三次调用它时就中断了,不管我做什么?
- azure - 参考现有资源组,而不是在每个打包程序构建上创建一个新资源组
- sharepoint - Sharepoint 时效专栏