From 6e2c86c6db886983c2986e44934d45dc478892ab Mon Sep 17 00:00:00 2001 From: anon <anon@anon.anon> Date: Sun, 10 Mar 2024 15:57:35 +0100 Subject: [PATCH] Added graph.py --- graph.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 graph.py diff --git a/graph.py b/graph.py new file mode 100644 index 0000000..2fe9123 --- /dev/null +++ b/graph.py @@ -0,0 +1,14 @@ +import matplotlib.pyplot as plt +# Sample data +categories = ['Category 1', 'Category 2', 'Category 3'] +values = [7, 9.66, 100] +# Create a figure and a set of subplots +fig, ax = plt.subplots() +# Create a bar chart +ax.bar(categories, values) +# Set the title and labels +ax.set_title('Column Graph Example') +ax.set_xlabel('Categories') +ax.set_ylabel('Values') +# Display the graph +plt.show()