Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to show original timestamps in plot view, not received time. #445

Closed
Tumiz opened this issue May 19, 2021 · 2 comments
Closed

How to show original timestamps in plot view, not received time. #445

Tumiz opened this issue May 19, 2021 · 2 comments

Comments

@Tumiz
Copy link

Tumiz commented May 19, 2021

Thanks for contributing to PlotJuggler. You are great!

Problem description

I use UDP to feed plotjuggler data with timestamps. How to show the timestamps on chart's x axis?

Steps to reproduce (important)

run the following script

import socket
import math
import json
from time import sleep

sock = socket.socket(socket.AF_INET, # Internet
                     socket.SOCK_DGRAM) # UDP
time = 0.0

while True:
    sleep(0.05)
    time += 10

    data = {
        "timestamp": time,
        "test_data": {
            "cos": math.cos(time),
            "sin": math.sin(time)
        }
    }
    sock.sendto( json.dumps(data), ("127.0.0.1", 9870) )
@Tumiz
Copy link
Author

Tumiz commented May 19, 2021

image

@facontidavide
Copy link
Owner

Fixed! Thanks for reporting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants