Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

y=mx+b python

import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(-5,5,100)
y = 2*x+1
plt.plot(x, y, '-r', label='y=2x+1')
plt.title('Graph of y=2x+1')
plt.xlabel('x', color='#1C2833')
plt.ylabel('y', color='#1C2833')
plt.legend(loc='upper left')
plt.grid()
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: drop first column pandas 
Python :: selenium iframe python 
Python :: how to install library in python 
Python :: pyinstaller for spacy code 
Python :: converting a string to a dictionary in python 
Python :: to_csv drop index 
Python :: Finding the sum of even Fibonacci numbers less than or equal to given limit 
Python :: rezing images of entire dataset in python 
Python :: python function to check list element ratio with total data 
Python :: import math print(math.log(1024,2)) 
Python :: creating a new enviroment in conda 
Python :: df reanme columns 
Python :: new column with age interval pandas 
Python :: pandas show column types 
Python :: pypi toml 
Python :: place a widget in a specific position in tkinter 
Python :: sdsdsdsdsddsdddsdsdsdsdsdsdsdsdsdsdsdsdsdssdsdsdsdsdsdsdssssssddsdssdssssdsdsdsdsdsdsdsdsdsdsdsdsdsdssdssdsdsdsdsdsdsdsdsdsdsdssd 
Python :: how to access a private attribute in child class python 
Python :: python regex to match ip address 
Python :: download stopwords nltk 
Python :: python tkinter text widget 
Python :: convert categorical variable to numeric python 
Python :: tag for deleting a list in python 
Python :: Can only use .str accessor with string values! 
Python :: tqdm remove progress bar when done 
Python :: não nulo pandas 
Python :: how to make a tick update in python 
Python :: how to change angle of 3d plot python 
Python :: datetime python timezone 
Python :: python exit program 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =