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)')
Pierre Morel [1] 結(jié)合ggplot2,開(kāi)發(fā)了gramm工具,用于繪制復(fù)雜圖形。
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。也就是說(shuō),在Matlab中就可以直接用matplotlib的配色方案了,就不必總是‘jet’了。The MatPlotLib 2.0 default colormaps ported to MATLAB. This submission also includes the Line ColorOrder colormaps!示例效果如下: 還有很多專門(mén)針對(duì)論文插圖的工具包,這里就不一一介紹了。總的來(lái)說(shuō),工具只是工具,它們并沒(méi)有高低貴賤之分。若想畫(huà)出好看的插圖,關(guān)鍵還是在于使用工具的人。集中一點(diǎn),登峰造極。
參考:
Morel P . Gramm: grammar of graphics plotting in Matlab. Cobeldick S . MatPlotLib Perceptually Uniform Colormaps.