Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

matplotlib turn off ticks

from matplotlib import pyplot as plt
plt.plot(range(10))
plt.tick_params(
    axis='x',          # changes apply to the x-axis
    which='both',      # both major and minor ticks are affected
    bottom=False,      # ticks along the bottom edge are off
    top=False,         # ticks along the top edge are off
    labelbottom=False) # labels along the bottom edge are off
plt.show()
plt.savefig('plot')
plt.clf()
Comment

PREVIOUS NEXT
Code Example
Python :: convert keys to values in python 
Python :: python image to grayscale 
Python :: plot rows of dataframe pandas 
Python :: how many days until 2021 
Python :: pil image to numpy 
Python :: 2d array python3 
Python :: fyit download 
Python :: pip clear download cache 
Python :: matplotlib plot 2d point 
Python :: use datetime python to get runtime 
Python :: list adding to the begining python 
Python :: python json open file 
Python :: how to run django tests 
Python :: python csv dict reader 
Python :: python ascii caesar cipher 
Python :: how to smooth a function in python 
Python :: aiohttp get 
Python :: Efficiently count zero elements in numpy array? 
Python :: python write file 
Python :: how to create table in a database in python 
Python :: binary to decimal in python 
Python :: pytest check exception 
Python :: string to list separated by space python 
Python :: select certain element from ndarray python 
Python :: python sqlite insert 
Python :: how to merge more than 2 dataframes in python 
Python :: unix command in python script 
Python :: python remove all unicode from string 
Python :: move file python 
Python :: python currency sign 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =