Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

colorbar remove tick lines and border

f = plt.figure()
ax = f.add_subplot(1,1,1)
mat = np.arange(100).reshape((10, 10))
i = ax.imshow(mat, cmap= 'viridis')
cb = f.colorbar(i)
cb.ax.tick_params(size=0) #Remove ticks
cb.outline.set_visible(False) #Remove outline
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #colorbar #remove #tick #lines #border
ADD COMMENT
Topic
Name
8+4 =