#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 26 20:30:00 2024

@author: sam
"""

import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(-2,2)
y = np.linspace(-1,1)
X,Y = np.meshgrid(x,y)

def f(x,y):
    return (x-1)**2 + y**2

plt.contour(X,Y,f(X,Y))