如何在科研论文中画出漂亮的插图？

2020/07/13 08:32

【导读】今天给大家推荐几种在论文中如何画出漂亮的插图的方法，附代码实践，还在等什么，赶紧去一探究竟吧！

（以下图片均引用自 Thumbnail gallery ）

plt.fill(x, y1, 'b', x, y2, 'r', alpha=0.3)

plt.scatter(x, y, s=area, alpha=0.5)

ax.plot_surface(X, Y, Z, rstride=8, cstride=8, alpha=0.3)cset = ax.contourf(X, Y, Z, zdir='z', offset=-100, cmap=cm.coolwarm)cset = ax.contourf(X, Y, Z, zdir='x', offset=-40, cmap=cm.coolwarm)cset = ax.contourf(X, Y, Z, zdir='y', offset=40, cmap=cm.coolwarm)

plt.streamplot(X, Y, U, V, color=U, linewidth=2, cmap=plt.cm.autumn)plt.colorbar()

plt.triplot(x, y, triangles, 'go-')plt.title('triplot of user-specified triangulation')plt.xlabel('Longitude (degrees)')plt.ylabel('Latitude (degrees)')
ax = plt.subplot(111, polar=True)bars = ax.bar(theta, radii, width=width, bottom=0.0)

@许铖同学提醒，再补充一句，matplotlib 还可以话 xkcd 风格的图呦~

（图片引用自网络）

https://gist.github.com/coldfog/c479124328fc6bb8b789

https://gist.github.com/coldfog/5da63a6958fc0a949b52

（一下图片来源网络）

cmap=brewer2mpl.get_map('RdBu', 'diverging', 8, reverse=True).mpl_colormap,

g = sns.jointplot(x1, x2, kind="kde", size=7, space=0)

http://nbviewer.ipython.org/github/plotly/python-user-guidechaocc/blob/master/s0_getting-started/s0_getting-started.ipynb

---

Pierre Morel [1] 结合ggplot2，开发了gramm工具，用于绘制复杂图形。

Inspired by ggplot2 (Wickham 2009), the R implementation of “grammar of graphics” principles (Wilkinson 1999), gramm improves Matlab’s plotting functionality, allowing to generate complex figures using high-level object-oriented code.

The MatPlotLib 2.0 default colormaps ported to MATLAB. This submission also includes the Line ColorOrder colormaps!

Morel P . Gramm: grammar of graphics plotting in Matlab.
Cobeldick S . MatPlotLib Perceptually Uniform Colormaps.

0
0 收藏

0 评论
0 收藏
0