当前位置:网站首页>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,比较高清。
边栏推荐
- SAP UI5 DynamicPage 控件介绍
- Natural language processing from Xiaobai to proficient (4): using machine learning to classify Chinese email content
- SAP ui5 objectpagelayout control usage sharing
- SAP UI5 ObjectPageLayout 控件使用方法分享
- CF:A. The Third Three Number Problem【关于我是位运算垃圾这个事情】
- 《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
- 国际自动机工程师学会(SAE International)战略投资几何伙伴
- 爱可生SQLe审核工具顺利完成信通院‘SQL质量管理平台分级能力’评测
- How to protect user privacy without password authentication?
- [Nacos cloud native] the first step of reading the source code is to start Nacos locally
猜你喜欢

Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications

Introduction to sap ui5 flexiblecolumnlayout control

SAP UI5 视图里的 OverflowToolbar 控件

SAP UI5 ObjectPageLayout 控件使用方法分享

SAP UI5 DynamicPage 控件介绍

解决uni-app配置页面、tabBar无效问题

About the single step debugging of whether SAP ui5 floating footer is displayed or not and the benefits of using SAP ui5

Reverse Polish notation

SAP ui5 objectpagelayout control usage sharing

Cf:a. the third three number problem
随机推荐
Lb10s-asemi rectifier bridge lb10s
Put functions in modules
Flutter InkWell & Ink组件
go map
《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
Le rapport de recherche sur l'analyse matricielle de la Force des fournisseurs de RPA dans le secteur bancaire chinois en 2022 a été officiellement lancé.
946. Verify stack sequence
国际自动机工程师学会(SAE International)战略投资几何伙伴
Hiengine: comparable to the local cloud native memory database engine
155. Minimum stack
函数传递参数小案例
PyCharm安装第三方库图解
Halcon template matching actual code (I)
Principle and performance analysis of lepton lossless compression
Cf:a. the third three number problem
将函数放在模块中
LB10S-ASEMI整流桥LB10S
Insmod prompt invalid module format
MSTP and eth trunk