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

Bugs in csv plots - wrong axis labels and wrong plot on non-decimal x axis numbers #926

Closed
ipa-jsk opened this issue Jan 26, 2024 · 3 comments

Comments

@ipa-jsk
Copy link

ipa-jsk commented Jan 26, 2024

Problem description

Thank you for the amazing plotjuggler tool. I've been using it for several years now and it was very helpful all the time.
But, in the current version of plotjuggler, I cannot plot the attached test.csv file (and similar files). I tried the samples, and could reproduce it by modifying the simple.csv file from datasamples folder. I chose the timestamp row to be the x axis on import.

In dummy.csv, I changed the first row to start from 10.0 instead of 0.0. result:

image

The x axis labels are not correct.

Then, I changed the first row to start from 1 to 400 and removed the decimal point. (
dummy_fail.csv) Result:

image

Something weird happens, which is the same like in my test.csv file where I started..

Answer these questions (or I will ignore your issue)

  1. Describe your platform / Operative System and the version of PlotJuggler you are using.
    Ubuntu 20.04.06 LTS:
    image

    Plotjuggler Version 3.8.9 installed via snap. Maybe its worth saying that I'm from Germany, if this could be some decimal point locale related issue...

  2. Compile and try the latest version in the main branch and check if the problem persists.
    Since there is only one more commit on the main branch (3be95bb), which is only related to ros messages, I didn't do that.

  3. Check if the problem can be reproduced using the dummy data created by the command line argument "-t" or one of the files in the folder "datasamples".
    -> see above.

  4. If it can't be reproduced with the dummy data, please share the CSV file or the rosbag that can be used to reproduce the problem.
    -> see above.

I wonder if you can reproduce the issue or if something is very broken on my end. Thanks

@facontidavide
Copy link
Owner

Yes, I am aware. I will try to fix it today

@facontidavide
Copy link
Owner

About the dummy.csv, I think you missed this:

image

facontidavide added a commit that referenced this issue Jan 26, 2024
@facontidavide
Copy link
Owner

issue fixed and solution pushed

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