当前位置:网站首页>Matlab paper chart standard format output (dry goods)
Matlab paper chart standard format output (dry goods)
2022-07-05 13:18:00 【Yuanbote】
Reprint source ——MATLAB Paper chart standard format output ( dried food )
I hope you can jump to the original link to watch , thank you !
// Several commonly used RGB Color of format , Optional use
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 Represents the coordinate axis ;gcf Diagram ;axes Represents the Cartesian coordinate system
%%%%gcf Is the graphic handle object of the target image ,gca Is the coordinate axis handle object of the target image
%%%% Draw the curve of image change , And set the lineweight to 1.5 pounds , The line width of the coordinate axis is 0.5 pounds ;
%%%% Chinese is in Song Dynasty 、 English means new Rome , It is generally the same size as the text of the header of the chart in the text ;
%%%% Different linear differentiation > Color discrimination , Many periodicals are printed in black and white ; But the electronic version submitted can be matched with appropriate colors, which is very beautiful , Such as green and red ;
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,:));
%%%% Set the font and text size of the name of the coordinate axis
%%%% Chinese is in Song Dynasty 、 English means new Rome , It is generally the same size as the text of the header of the chart in the text , It can be adjusted according to specific conditions ;
%%%%% Be careful : Small five corresponds to 9 Pound size ; Number five corresponds to 10.5, Little four corresponds to 12, Number four corresponds to 14!
ylabel('\fontname{
Song style }\fontsize{
9} Time /\fontname{
Times New Roman}\fontsize{
9}ms');
xlabel('\fontname{
Song style }\fontsize{
9} Time \fontname{
Times New Roman}\fontsize{
9}ms');
% Set up x Shaft range and scale
set(gca,'XLim',[0 10000]);%X The data display range of the axis
set(gca,'XTick',[0:1000:10000]);% Set the coordinate scale to be displayed
% Set up y Shaft range and scale
set(gca,'YLim',[0 10000]);%X The data display range of the axis
set(gca,'YTick',[0:1000:10000]);% Set the coordinate scale to be displayed
%%%%% Set the axis direction , Line width , by 0.5 pounds ;
set(gca,'XAxisLocation','origin');
set(gca,'YAxisLocation','origin');
set(gca,'linewidth',0.5,'fontsize',9,'fontname','Times New Roman');
%%% Set the size of the output picture , according to A4 Remove half the width of the page margin to set ( Double column typesetting ), Ensure that the output image is not resized when inserted ;
%%% With A4 Take paper as an example , The width is about 21cm, The margins are usually 5cm, So if the picture is centered in a single column , You can set the width as 8~12cm.
%%%% If the picture is centered in two columns , You can set the width as 5~7cm, Once the picture is output , Save directly. You can't change the size of the picture during the insertion process , Ensure that the font size set corresponds to the size in the text .
Width=5.2;Height=4.4;% Unit: cm !!! Change here according to requirements ...
ScreenSize=13.3; % The screen size , In inches , And it should be noted that this value usually refers to the length of the diagonal , The width and height should be calculated according to Pythagorean theorem
ScreenSizeInCM=ScreenSize*2.45; %1 Inches equals 2.45 centimeter , Length conversion
scrsz = get(0,'ScreenSize'); % Get the screen resolution
ScreenWidth=ScreenSizeInCM/sqrt(1+(scrsz(4)/scrsz(3))^2);% Wide screen , Unit: cm
ScreenHeight=ScreenWidth*scrsz(4)/scrsz(3);% The screen is high , In centimeters
WidthRatio=Width/ScreenWidth;% The ratio of the expected width of the graph to the screen width
HeightRatio=Height/ScreenHeight;% The ratio of the desired height of the graph to the screen height
set(gcf,'Unit','Normalized','Position',[0.4 0.4 WidthRatio HeightRatio]);% Set the size of the drawing , There is no need to go to word Inside and then resize
%%%%= Remove the frame of the legend in the figure , Set the text size and font of the legend
h=legend({
'\fontname{
Song style }\fontsize{
9} Time \fontname{
Times New Roman}\fontsize{
9}ms',...
'\fontname{
Song style }\fontsize{
9} Time \fontname{
Times New Roman}\fontsize{
9}ms',...
'\fontname{
Song style }\fontsize{
9} Time \fontname{
Times New Roman}\fontsize{
9}ms'});
set(h,'box','off');
%%% Set the title of the drawing
title_str = '\fontname{ Song style } Time statistics ';
title(title_str,'FontSize',9);
%%%% Save in emf Format ( Vector format ), The resolution is set to 600, Compare HD .
边栏推荐
- CloudCompare——点云切片
- Yyds dry goods inventory # solve the real problem of famous enterprises: move the round table
- A detailed explanation of ASCII code, Unicode and UTF-8
- Go pointer
- Word document injection (tracking word documents) incomplete
- 数据泄露怎么办?'华生·K'7招消灭安全威胁
- 【Hot100】34. 在排序数组中查找元素的第一个和最后一个位置
- Simple page request and parsing cases
- MySQL splits strings for conditional queries
- “百度杯”CTF比赛 九月场,Web:SQL
猜你喜欢

峰会回顾|保旺达-合规和安全双驱动的数据安全整体防护体系

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

MySQL --- 数据库查询 - 排序查询、分页查询
![[daily question] 1200 Minimum absolute difference](/img/2f/9214df63f6d5fafa1f7247c4529643.png)
[daily question] 1200 Minimum absolute difference

爱可生SQLe审核工具顺利完成信通院‘SQL质量管理平台分级能力’评测

Overflow toolbar control in SAP ui5 view

FPGA 学习笔记:Vivado 2019.1 添加 IP MicroBlaze

Leetcode20. Valid parentheses

国际自动机工程师学会(SAE International)战略投资几何伙伴
![[notes of in-depth study paper]uctransnet: rethink the jumping connection in u-net from the perspective of transformer channel](/img/b6/f9da8a36167db10c9a92dabb166c81.png)
[notes of in-depth study paper]uctransnet: rethink the jumping connection in u-net from the perspective of transformer channel
随机推荐
精彩速递|腾讯云数据库6月刊
Pycharm installation third party library diagram
Get you started with Apache pseudo static configuration
MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
MSTP and eth trunk
DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
Pandora IOT development board learning (HAL Library) - Experiment 7 window watchdog experiment (learning notes)
事务的基本特性和隔离级别
Reverse Polish notation
Small case of function transfer parameters
无密码身份验证如何保障用户隐私安全?
手把手带你入门Apache伪静态的配置
Go string operation
Rocky basic command 3
[深度学习论文笔记]UCTransNet:从transformer的通道角度重新思考U-Net中的跳跃连接
Actual combat simulation │ JWT login authentication
一文详解ASCII码,Unicode与utf-8
《2022年中國銀行業RPA供應商實力矩陣分析》研究報告正式啟動
峰会回顾|保旺达-合规和安全双驱动的数据安全整体防护体系
go 数组与切片