Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

seaborn and matplotlib Setting the xlim and ylim python

# importing packages 
import seaborn as sns 
import matplotlib.pyplot as plt 
  
# loading dataset 
data = sns.load_dataset("iris") 
  
# draw lineplot 
sns.lineplot(x="sepal_length", y="sepal_width", data=data) 
  
# setting the x limit of the plot
plt.xlim(5)
  
plt.show()
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #seaborn #matplotlib #Setting #xlim #ylim #python
ADD COMMENT
Topic
Name
3+7 =