Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.3 KB

File metadata and controls

63 lines (43 loc) · 1.3 KB

Welcome to lognplot's documentation!

Introduction

The lognplot package aims to ease the logging and plotting of data of real-time systems. It stores the data in an easy zoomable form, such that panning and scrolling in the data works well, even with larger data sets of millions of points.

The project contains:

  • Time series database like structures
  • PyQt5 widgets for chart rendering

Basic example

To emit measured data from python to a lognplot server/GUI use the following:

import time
from lognplot.client import LognplotTcpClient

client = LognplotTcpClient('127.0.0.1', 12345)
client.connect()

while True:
    # Complicated code goes here :)

    some_variable = 3.14
    client.send_sample('my_channel', time.time(), some_variable)

Now start the server / GUI tool to receive this data. For example, one could use the rust implementation of this GUI. When the GUI is running, run your script and benefit from logging.

Table of Contents

.. toctree::
    :maxdepth: 2
    :caption: Contents:

    installation
    howto
    motivation
    architecture
    protocol
    reference/index.rst


Indices and tables