This example shows how to solve a linear program with 5 restrictions. This involves graphing the linear equation and its restrictions within matplotlib.
marytaylor/Solving-a-linear-program-graphically-with-Python
Example of linear program problem solved with python
Jupyter Notebook