Matplotlib Bar chart. Matplotlib may be used to create bar charts. We use matplotlib to create a simple bar graph. Matplotlib is a Python 2D plotting library. Matplotlib can be used in Python scripts, the Python and IPython shells, the Jupyter notebook, web application servers, and four graphical user interface toolkits.