Visualizing returned data with matplotLib

As an old saying goes, a picture is worth a thousand words. There's a lot of information that could be extracted from the network, such as interface status, interface counters, router updates, packets dropped, traffic volume, and more. Visualizing this data and putting it into a graph will help you to see the big picture of your network. Python has an excellent library called matplotlib (https://matplotlib.org/) that is used to generate graphs and customize them.

Matplotlib is capable of creating most kinds of charts, such as line graphs, scatter plots, bar charts, pie charts, stack plots, 3D graphs, and geographic map graphs.

Get Hands-On Enterprise Automation with Python. now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.