Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pyplot set x range

fig, ax = plt.subplots(figsize=(12, 6))

x = np.arange(0, 10, 0.1)
y = np.sin(x)
z = np.cos(x)

ax.plot(y, color='blue', label='Sine wave')
ax.plot(z, color='black', label='Cosine wave')

plt.xlim([25, 50])
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: python read xml 
Python :: how to set google chrome as default browser when coding with python using webbroiwser module 
Python :: change axis and axis label color matplotlib 
Python :: python get the elements between quotes in string 
Python :: check empty dataframe 
Python :: module turtle has no forward member 
Python :: difference between two dates in days python 
Python :: how to write words on any other apps in python 
Python :: python requests header 
Python :: what is ycor in python turle 
Python :: detect stop codon 
Python :: how to close python with a line of code 
Python :: gmpy2 is prime 
Python :: subplot adjust python 
Python :: how to openn file dialog in tkinter 
Python :: get current time python django 
Python :: how to print numbers from specific number to infinite inpython 
Python :: sort dictionary python 
Python :: xpath helium 
Python :: extract images from bag file python 
Python :: how to get absolute path in python 
Python :: python test if number in string 
Python :: open an exe file using python 
Python :: orderd dictionary pop vs del 
Python :: how to include specific data type from the dataframe 
Python :: matplotlib display axis in scientific notation 
Python :: remove duplicates from list python preserve order 
Python :: python pickle save and load multiple variables 
Python :: find Carmichael number sage 
Python :: django q filter 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =