Define plot color by density of overlap with other plots in matplotlib

时间:2019-03-18 03:11:09

标签: python matplotlib

I'm looking to plot multiple GPS tracks from lat, long points. I build each plot individually and then show them all on the same final figure. I am wondering if I can use the overlap of the individual plots to define their color at that point. Essentially, I want to create a heatmap based in different colors instead of just alpha, so I can still see every track.

Currently, each plot is simply put together with:

plt.plot(lon, lat, color = 'deepskyblue', lw = 0.2, alpha = 0.8)

0 个答案:

没有答案