当前位置:网站首页>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,比较高清。
边栏推荐
- Talk about my drawing skills in my writing career
- [Nacos cloud native] the first step of reading the source code is to start Nacos locally
- mysql拆分字符串做条件查询
- Notion 类笔记软件如何选择?Notion 、FlowUs 、Wolai 对比评测
- MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
- go 数组与切片
- 潘多拉 IOT 开发板学习(HAL 库)—— 实验7 窗口看门狗实验(学习笔记)
- Navigation property and entityset usage in SAP segw transaction code
- ##无监控,不运维,以下是监控里常用的脚本监控
- #yyds干货盘点# 解决名企真题:搬圆桌
猜你喜欢
蜀天梦图×微言科技丨达梦图数据库朋友圈+1
关于 SAP UI5 floating footer 显示与否的单步调试以及使用 SAP UI5 的收益
Lb10s-asemi rectifier bridge lb10s
Alibaba cloud SLB load balancing product basic concept and purchase process
Pycharm installation third party library diagram
一文详解ASCII码,Unicode与utf-8
使用 jMeter 对 SAP Spartacus 进行并发性能测试
Asemi rectifier bridge hd06 parameters, hd06 pictures, hd06 applications
量价虽降,商业银行结构性存款为何受上市公司所偏爱?
Pandora IOT development board learning (HAL Library) - Experiment 7 window watchdog experiment (learning notes)
随机推荐
RHCSA9
跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
leetcode:221. Maximum square [essence of DP state transition]
Introduction to sap ui5 dynamicpage control
Didi open source Delta: AI developers can easily train natural language models
Reflection and imagination on the notation like tool
155. 最小栈
Although the volume and price fall, why are the structural deposits of commercial banks favored by listed companies?
Shi Zhenzhen's 2021 summary and 2022 outlook | colorful eggs at the end of the article
go map
The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
简单上手的页面请求和解析案例
Get to know linkerd project for the first time
RHCSA2
Talk about my drawing skills in my writing career
Overflow toolbar control in SAP ui5 view
Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications
C# 对象存储
将函数放在模块中
Principle and performance analysis of lepton lossless compression