当前位置:网站首页>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,比较高清。
边栏推荐
- 155. Minimum stack
- RHCSA8
- [深度学习论文笔记]TransBTSV2: Wider Instead of Deeper Transformer for Medical Image Segmentation
- DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
- SAP SEGW 事物码里的 ABAP 类型和 EDM 类型映射的一个具体例子
- RHCSA7
- Reverse Polish notation
- Simple page request and parsing cases
- 《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
- 使用Dom4j解析XML
猜你喜欢

Small case of function transfer parameters

946. Verify stack sequence

Navigation property and entityset usage in SAP segw transaction code

Discussion on error messages and API versions of SAP ui5 getsaplogonlanguage is not a function

OpenHarmony应用开发之Navigation组件详解

MSTP and eth trunk

Natural language processing series (I) introduction overview

PyCharm安装第三方库图解

Principle and performance analysis of lepton lossless compression

UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xe6 in position 76131: invalid continuation byt
随机推荐
go 字符串操作
#yyds干货盘点# 解决名企真题:搬圆桌
解决uni-app配置页面、tabBar无效问题
碎片化知识管理工具Memos
Hiengine: comparable to the local cloud native memory database engine
APICloud Studio3 API管理与调试使用教程
SAP SEGW 事物码里的 ABAP Editor
OpenHarmony应用开发之Navigation组件详解
Alibaba cloud SLB load balancing product basic concept and purchase process
《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
Discussion on error messages and API versions of SAP ui5 getsaplogonlanguage is not a function
Introduction aux contrôles de la page dynamique SAP ui5
潘多拉 IOT 开发板学习(HAL 库)—— 实验7 窗口看门狗实验(学习笔记)
Concurrent performance test of SAP Spartacus with JMeter
Hiengine: comparable to the local cloud native memory database engine
Why is your next computer a computer? Explore different remote operations
[cloud native] use of Nacos taskmanager task management
蜀天梦图×微言科技丨达梦图数据库朋友圈+1
爱可生SQLe审核工具顺利完成信通院‘SQL质量管理平台分级能力’评测
Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)