From abe406d7aa6830edc7c4459ac5faad1c730f0313 Mon Sep 17 00:00:00 2001 From: James Pace Date: Sat, 9 Jul 2022 09:59:05 +0000 Subject: [PATCH] Track the beginnings of a script to plot in 3D. --- scripts/plot_cubic.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scripts/plot_cubic.py diff --git a/scripts/plot_cubic.py b/scripts/plot_cubic.py new file mode 100644 index 0000000..5752d9e --- /dev/null +++ b/scripts/plot_cubic.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 + +import numpy as np +import matplotlib.pyplot as plt + +def cost(x, y): + return 2*x**2 + 2*y**2 + 1 + +fig = plt.figure() +ax = plt.axes(projection='3d') +