Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to increase width of line in graph of linear regression in matplotlib

# importing packages
import matplotlib.pyplot as plt
import numpy as np
  
# create data
x_values = np.arange(0, 10)
y_values = np.arange(0, 10)
  
# Adjust the line widths
plt.plot(x_values, y_values - 2, linewidth=5)
 
PREVIOUS NEXT
Tagged: #increase #width #line #graph #linear #regression #matplotlib
ADD COMMENT
Topic
Name
7+1 =