colorbar remove tick lines and border

Solutions on MaxInterview for colorbar remove tick lines and border by the best coders in the world

showing results for - "colorbar remove tick lines and border"
Rhydian
30 Jul 2017
1f = plt.figure()
2ax = f.add_subplot(1,1,1)
3mat = np.arange(100).reshape((10, 10))
4i = ax.imshow(mat, cmap= 'viridis')
5cb = f.colorbar(i)
6cb.ax.tick_params(size=0) #Remove ticks
7cb.outline.set_visible(False) #Remove outline
similar questions
queries leading to this page
colorbar remove tick lines and border