python colorbar for circular heatmap

Solutions on MaxInterview for python colorbar for circular heatmap by the best coders in the world

showing results for - "python colorbar for circular heatmap"
Pia
08 Feb 2017
1gs = gridspec.GridSpec(1, 2,
2                       width_ratios=[10,1],
3                       )
4
5ax1 = plt.subplot(gs[0], projection="polar", aspect=1.)
6ax2 = plt.subplot(gs[1])
7
8t = np.linspace(0.0, 2.0 * np.pi, 360)
9r = np.linspace(0,100,200)
10rg, tg = np.meshgrid(r,t)
11c = rg * np.sin(tg)
12
13im = ax1.pcolormesh(t, r, c.T)
14plot.colorbar(im, cax=ax2)
15
similar questions
queries leading to this page
python colorbar for circular heatmap