Question: Problem 2: Plotting points and lines Write a simple Point class that will keep the data for a point's location in two dimensions. Recall how

Problem 2: Plotting points and lines Write a simple "Point" class that will keep the data for a point's location in two dimensions. Recall how one can plot points and lines using matplotlib.pyplot. Add methods that will: * print the location of the point * plot a single point * plot a line connecting two points Apply these methods to three points (1., 1.), (2., 2.) and (0., 1.). In other words, produce the plot that has three points and three lines
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
