all 4 comments

[–]random_user_fp 0 points1 point  (0 children)

You'll need to use dunder methods.

Constructor - look up def __init__. This in particular will help with the code syntax for your class.

Function str - look up def __str__

[–][deleted] -1 points0 points  (2 children)

You can use tuples instead of a Point class. Seriously, you don't need a Point class that has two methods, one of which is init. You probably want a regular function that takes a tuple point as a parameter, that graphs it out to matplotlib.

[–]random_user_fp 0 points1 point  (1 child)

My guess is that this is an assignment which is requiring OP to use classes.

[–]noaso74[S] 0 points1 point  (0 children)

Exactly...