论文实验结果绘图

涉及一些关键问题。

双栏、整页

如果是双栏,一般是

\begin{figure}[t]
\centering
\includegraphics[width=0.9\columnwidth]{figure1} 
\caption{}
\label{fig1}
\end{figure}

如果是占据整个页面居中,一般是

\begin{figure*}[t]
\centering
\includegraphics[width=0.9\columnwidth]{figure1} 
\caption{}
\label{fig1}
\end{figure*}

使用前正确裁剪图形。

图片格式

应该是.png, .jpg, .pdf的形式。

位置

Figures, drawings, tables, and photographs should be placed throughout the paper on the page (or the subsequent page) where they are first discussed.

图中字体大小

图中字体应与图例字体大小保持一致。

If you are unsure if your paper contains type 3 fonts, view the PDF in Acrobat Reader. The Properties/Fonts window will display the font name, font type, and encoding properties of all the fonts in the document. If you are unsure if your graphics contain type 3 fonts (and they are PostScript or encapsulated PostScript documents), create PDF versions of them, and consult the properties window in Acrobat Reader.

一般科研论文图中字体应与论文字体保持一致,例如"Your paper must be formatted in Times Roman or Nimbus"。

这里了解一下有衬线字体(serif),无衬线字体(Sans-serif)。有衬线字体变化更为明显活泼。

使用python绘图

Matplotlib 是Python的一个综合性的库,可创建静态的、动画的和可交互的可视化图形图像。注意了是第三方库。

安装命令:pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple

示例:

import numpy as np
import matplotlib.pyplot as plt
# 设置字体类型及大小
plt.rcParams['font.sans-serif'] = ['Times New Romam']
plt.rcParams['font.size'] = 12

# 设置横纵数据
x = np.arange(10)
y_1 = 2.5 * np.sin(x/20*np.pi)
y_2 = 2.5 * np.sin(x/10*np.pi)

plt.figure(figsize=(6,4))
plt.plot(x, y_1, 'rs-', linewidth=1, markersize=8, markerfacecolor='r', label=r'$2.5 + \cos x / (20 \pi)$')
plt.legend()
plt.xlabel('$x$')
plt.ylabel('$y$')
plt.show()

绘制多子图subplot

参考:【科研分享】Matplotlib 绘制多子图(subplot)进行实验结果分析

数据方面建议使用np.array格式。

plt.subplots_adjust(top=0.97, bottom=0.2, left=0.05, right=0.995, hspace=0.6, wspace=0.5),如下,
top值越接近1则子图距离顶部越接近,bottom值越接近于0则子图距离底部约接近,left值越接近于0则子图距离左边框越接近,right值越接近于1则子图距离右边框越接近,而hspace指的是两行子图之间的间距,值越大则两行之间距离越高,同理wspace指的是两列子图之间的距离,值越大距离越大。

参考:
论文实验结果图绘制细节

  • 27
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值