Is there a way to remove the x/y axis numbers(values) from a plot? I still want to keep the frame and grid in the plot though. /Jonas
            Asked
            
        
        
            Active
            
        
            Viewed 1.6k times
        
    8
            
            
        - 
                    possible dublicate of http://stackoverflow.com/questions/2176424/hiding-axis-text-in-matplotlib-plots – scriptmonster Nov 08 '13 at 13:01
- 
                    Yes thanks, however is there a way to still have a grid in the plot? – jonas Nov 08 '13 at 13:02
1 Answers
7
            depending on how you have created the plot... the simplest way would be to set the xaxis tick to an empty list
from matplotlib import pylab
x = [1,2,3,4,5]
y = [2,4,6,8,10]
pylab.plot(x,y)
frame = pylab.gca()
frame.axes.get_xaxis().set_ticks([])
frame.axes.get_yaxis().set_ticks([])
pylab.show()
 
    
    
        Naib
        
- 999
- 7
- 20
