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)')
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.
示例效果如下: 类似的,Stephen Cobeldick [2] 将matplotlib配色方案移植到了Matlab。也就是说,在Matlab中就可以直接用matplotlib的配色方案了,就不必总是‘jet’了。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.