C_C++
Haskell
Java
LaTeX
Misc.
Python
modules
ascii_injection.py
ascii_nn_input_helper.py
better_exceptions_test.py
decorator.py
dpt.py
format.py
graph.py
group.py
int_memory.ctype.py
int_memory.py.py
leno.py
matplotlib_hw.py
nnadd.py
otest.py
snek_help.py
tkinter_filepicker_test.py
torus.py
Vim
Webdev
git
.gitignore
Makefile
15 lines
386 B
Python
15 lines
386 B
Python
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()
|