当前位置:网站首页>MATLAB论文图表标准格式输出(干货)
MATLAB论文图表标准格式输出(干货)
2022-07-05 13:01:00 【袁博特】
转载来源——MATLAB论文图表标准格式输出(干货)
希望大家跳转链接到原文处观看,谢谢!
//几种常用的RGB格式的颜色,可选择使用
color=[1,0.84314,0;
0.80392,0.36078,0.36078;
0,0.749021,1;
0.82353,0.41176,0.11765;
0.6902,0.87843,0.90196;
1,0,0;
0,1,0;
0,0,1;]
%%%%gca表示坐标轴;gcf表示图;axes表示笛卡尔坐标系
%%%%gcf是目标图像的图形句柄对象,gca是目标图像的坐标轴句柄对象
%%%%绘制图像变化的曲线,并设置线宽为1.5磅,坐标轴的线宽为0.5磅;
%%%%中文用宋体表示、英文用新罗马表示,一般和文中图表的表头的文字的大小一致;
%%%%不同的线形区分>颜色的区分,很多期刊是黑白印刷;但是所投稿的电子版可进行适当的颜色搭配很漂亮,如绿色和红色;
plot(t,a,'LineWidth',1.5,'Color',color(1,:));
hold on;
plot(t,b,'LineWidth',1.5,'Color',color(3,:));
hold on;
plot(t,c,'LineWidth',1.5,'Color',color(6,:));
%%%%设置坐标轴的名称的字体和文字大小
%%%%中文用宋体表示、英文用新罗马表示,一般和文中图表的表头的文字的大小一致,可以根据具体的情况调整;
%%%%%注意:小五对应9磅大小;五号对应10.5,小四对应12,四号对应14!
ylabel('\fontname{
宋体}\fontsize{
9}时间/\fontname{
Times New Roman}\fontsize{
9}ms');
xlabel('\fontname{
宋体}\fontsize{
9}时间\fontname{
Times New Roman}\fontsize{
9}ms');
%设置x轴范围和刻度
set(gca,'XLim',[0 10000]);%X轴的数据显示范围
set(gca,'XTick',[0:1000:10000]);%设置要显示坐标刻度
%设置y轴范围和刻度
set(gca,'YLim',[0 10000]);%X轴的数据显示范围
set(gca,'YTick',[0:1000:10000]);%设置要显示坐标刻度
%%%%%设置坐标轴方向,线宽,为0.5磅;
set(gca,'XAxisLocation','origin');
set(gca,'YAxisLocation','origin');
set(gca,'linewidth',0.5,'fontsize',9,'fontname','Times New Roman');
%%%设置输出图片的大小,根据A4纸去掉页边距的一半的宽度去设置(双列排版),保证输出的图片插入时不再进行大小的调整;
%%%以A4纸为例,宽度约为21cm,页边距通常为5cm,那么如果图片是单列居中操作的话,可以将宽度定为8~12cm。
%%%%如果图片是两列居中,可以将宽度定为5~7cm,图片一旦输出,直接进行保存在插入过程中不可以再改变图片的大小,保证设置的字体的大小和文中的大小对应。
Width=5.2;Height=4.4;%单位为厘米!!!这里根据需求更改。。。
ScreenSize=13.3; % 屏幕大小,单位为英寸,且应该注意该值通常指对角线的长度,需根据勾股定理计算宽高
ScreenSizeInCM=ScreenSize*2.45; %1英寸等于2.45厘米,长度换算
scrsz = get(0,'ScreenSize'); %得到屏幕分辨率
ScreenWidth=ScreenSizeInCM/sqrt(1+(scrsz(4)/scrsz(3))^2);%屏幕宽,单位为厘米
ScreenHeight=ScreenWidth*scrsz(4)/scrsz(3);%屏幕高,单位厘米
WidthRatio=Width/ScreenWidth;%图形的期望宽度与屏幕宽度的比值
HeightRatio=Height/ScreenHeight;%图形的期望高度与屏幕高度的比值
set(gcf,'Unit','Normalized','Position',[0.4 0.4 WidthRatio HeightRatio]);%设置绘图的大小,无需再到word里再调整大小
%%%%=去掉图中的图例的框框,设置图例的文字的大小和字体
h=legend({
'\fontname{
宋体}\fontsize{
9}时间\fontname{
Times New Roman}\fontsize{
9}ms',...
'\fontname{
宋体}\fontsize{
9}时间\fontname{
Times New Roman}\fontsize{
9}ms',...
'\fontname{
宋体}\fontsize{
9}时间\fontname{
Times New Roman}\fontsize{
9}ms'});
set(h,'box','off');
%%%设置图的图名
title_str = '\fontname{宋体}时间统计图';
title(title_str,'FontSize',9);
%%%%保存格式为emf格式(矢量图格式),最后导出的时候设置成分辨率是600,比较高清。
边栏推荐
猜你喜欢
The Research Report "2022 RPA supplier strength matrix analysis of China's banking industry" was officially launched
How can non-technical departments participate in Devops?
Concurrent performance test of SAP Spartacus with JMeter
DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
潘多拉 IOT 开发板学习(HAL 库)—— 实验7 窗口看门狗实验(学习笔记)
Association modeling method in SAP segw transaction code
Binder通信过程及ServiceManager创建过程
Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)
MySQL 巨坑:update 更新慎用影响行数做判断!!!
Hiengine: comparable to the local cloud native memory database engine
随机推荐
SAP SEGW 事物码里的 Association 建模方式
A specific example of ABAP type and EDM type mapping in SAP segw transaction code
SAP UI5 视图里的 OverflowToolbar 控件
Default parameters of function & multiple methods of function parameters
解决 UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa2 in position 107
MySQL splits strings for conditional queries
事务的基本特性和隔离级别
ASEMI整流桥HD06参数,HD06图片,HD06应用
Navigation property and entityset usage in SAP segw transaction code
前缀、中缀、后缀表达式「建议收藏」
精彩速递|腾讯云数据库6月刊
Yyds dry inventory JS intercept file suffix
Write macro with word
潘多拉 IOT 开发板学习(HAL 库)—— 实验7 窗口看门狗实验(学习笔记)
RHCSA10
数据泄露怎么办?'华生·K'7招消灭安全威胁
先写API文档还是先写代码?
Shu tianmeng map × Weiyan technology - Dream map database circle of friends + 1
Why is your next computer a computer? Explore different remote operations
Actual combat simulation │ JWT login authentication