Skip to Main Content
Mastering Python Networking - Second Edition
book

Mastering Python Networking - Second Edition

by Eric Chou
August 2018
Intermediate to advanced content levelIntermediate to advanced
466 pages
10h 23m
English
Packt Publishing
Content preview from Mastering Python Networking - Second Edition

Matplotlib for SNMP results

In our first Matplotlib example, namely matplotlib_1.py, we will import the dates module besides pyplot. We will use the matplotlib.dates module instead of the Python standard library dates module. Unlike the Python dates module, the mapplotlib.dates library will convert the date value internally into the float type, which is required by Matplotlib:

  import matplotlib.pyplot as plt  import matplotlib.dates as dates
Matplotlib provides sophisticated date plotting capabilities; you can find more information on this at http://matplotlib.org/api/dates_api.html.

In the script, we will create two empty lists, each representing the x-axis and y-axis values. Note that, on line 12, we used the built-in eval() Python function ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Python Networking

Mastering Python Networking

Eric Chou
Learning Python Networking - Second Edition

Learning Python Networking - Second Edition

José Manuel Ortega, Dr. M. O. Faruque Sarker, Sam Washington

Publisher Resources

ISBN: 9781789135992Supplemental Content