Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

hide ticks without hiding grid

import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 2*np.pi, 100)

fig = plt.figure()
ax = fig.add_subplot(111)

ax.plot(x, np.sin(x))

ax.grid(True)
ax.set_xticklabels([])


plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: setstylesheet python 
Python :: selenium rotate user agent 
Python :: how to run string like normal code in python 
Python :: godot knockback 
Python :: pandas use 3 columns for 2d distribution 
Python :: NumPy bitwise_xor Code When inputs are Boolean 
Python :: NumPy unpackbits Code Unpacked array along axis 1 
Python :: django view - mixins and GenericAPIView (retrieve, update or delete - GET, PUT, DELETE) 
Python :: python code to scan paper table to excel 
Python :: #check if the given date is a weekday or weekend 
Python :: python restrict function parameter type 
Python :: Python pattern of 1010101 
Python :: Concatenation of two range() functions 
Python :: python dependency injection 
Python :: How can I make portable python desktop application 
Python :: python random number between 1000 and 9999 
Python :: Examples of correct code for this rule with global declaration: 
Python :: pyxl activate sheet 
Python :: how to add start menu in python 
Python :: Not getting values from Select Fields with jQuery 
Python :: imprimir variables en python 
Python :: python for loop skip iteration if condition not met jinja 
Python :: ring Conversion Number 
Python :: z3 symbolic expressions cannot be cast to concrete boolean values 
Python :: Python loop aray 
Python :: python loc id in list 
Python :: how to add illegal characters to paths python 
Python :: foreign key on delete arguments 
Python :: bar plot with patterns colors 
Python :: Obtener el valor ASCII de un carácter en Python 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =