GithubHelp home page GithubHelp logo

Axis settings about plotjuggler HOT 19 CLOSED

solosito avatar solosito commented on July 22, 2024
Axis settings

from plotjuggler.

Comments (19)

facontidavide avatar facontidavide commented on July 22, 2024 1

I can fix the issue, but I am realizing that maybe what we actually want is not a minimum and maximum boundary for the Y axis, but instead FIXED values of the bottom and top of axis Y.

That would be more intuitive, I think

from plotjuggler.

facontidavide avatar facontidavide commented on July 22, 2024 1

right click->first option->right bottom corner of the dialog

from plotjuggler.

facontidavide avatar facontidavide commented on July 22, 2024

I need you to be a little more specific.

By "fix values" in the axis do you mean the X axis (time), the Y value (value) or both?

Can't you just zoom?
Are you thinking about static data (load a rosbag) or streaming?

from plotjuggler.

solosito avatar solosito commented on July 22, 2024

I mean setting a min and a max value for Y axis.

The point is that now the Y axis is autosetting to the values of the data. Thus, for instance, if you get a big value for a sample at the beginning and the next one is very small and it keeps oscillating between around this value, you are not able to perceive the changes on it.

So if you are able to set the Y axis between two desired values you will able to see the data in the range you want even tough the bigger values are out of the "plotting window" when they arrive.

from plotjuggler.

facontidavide avatar facontidavide commented on July 22, 2024

Ok, I guess you are talking about streaming.

A feature like this is more complicated that it looks because I have to decide:

  1. Is this setting part of the UNDO/REDO stack?
  2. Can it be saved as a Layout.
  3. How is it applied by the user? right click on the PlotWidget area?

I will find about it...

from plotjuggler.

solosito avatar solosito commented on July 22, 2024

Right, for the streaming. I forgot to say, sorry.

In my opinion:

  1. I really don't think it is necessary (i.e. as zooming).
  2. This would be nice in order to just open the layout a plot directly without setting anything else.
  3. Right click > Set Axis > Dialog for entering values as remove curves.
  4. Having it in both axis would be helpful too for XY plot.

If you want I would be really glad to help you with it.

from plotjuggler.

facontidavide avatar facontidavide commented on July 22, 2024

If you want I would be really glad to help you with it.

Thanks !!

I will create a new branch to develop this feature, I will let you know once it is available. As I said, it is more complicated that it looks like, IN PARTICULAR if you want to lock the X axis range, since a lot of logic depends on it.

from plotjuggler.

solosito avatar solosito commented on July 22, 2024

For the moment with the Y axis should be enough. I had to plot the data with another library everytime I had this problem.

Anyway, congratulations for your amazing tool :)

from plotjuggler.

facontidavide avatar facontidavide commented on July 22, 2024

Hi,

I have a branch that seems to work, even if the integration with UNDO and save layout need to be done.

https://github.com/facontidavide/PlotJuggler/tree/issue_40

Please check and let me know if you see anything weird or if you find a bug.
If you do, please send a screenshot or a video recording

Davide

from plotjuggler.

solosito avatar solosito commented on July 22, 2024

Somehow it is not working properly when the actual data takes a value out of the plotting range and the limits are changing. Also the numbers in the axis are being displayed incorrectly (increasing in the wrong order):

screenshot from 2017-04-26 00-31-31

I am also uploading a video showing the behaviour.

from plotjuggler.

solosito avatar solosito commented on July 22, 2024

The behavior in the video is exactly the expected from ~0:30 to ~1:30. The problems I described can be seen before and after that part.

https://youtu.be/T0VM4wxevPk

from plotjuggler.

solosito avatar solosito commented on July 22, 2024

Exactly, being able to set fixed values for having the desired plotting range in order to be able to indirectly decide the granularity.

from plotjuggler.

facontidavide avatar facontidavide commented on July 22, 2024

just pushed a new commit. take a look

from plotjuggler.

facontidavide avatar facontidavide commented on July 22, 2024

I think it is done (merged with master). Please tell me if there is any problem

from plotjuggler.

facontidavide avatar facontidavide commented on July 22, 2024

Hi,

can you confirm that you are happy with the current version of the software? Have you detected any issue / corner case?

from plotjuggler.

solosito avatar solosito commented on July 22, 2024

Sorry, I couldn't answer before. It works as a charm. Thanks again!

from plotjuggler.

ClemensVolk avatar ClemensVolk commented on July 22, 2024

Hi,
I am using the ros-foxy version and can't figure out how to fix the scaling of the y-axis to [-1, 1]. It automatically re-scales to the data points.
Is this feature still active?

from plotjuggler.

ClemensVolk avatar ClemensVolk commented on July 22, 2024

Thanks for the quick reply!
However it segfaults when either saving own values for "Max" & "Min" or the default ones.

from plotjuggler.

ClemensVolk avatar ClemensVolk commented on July 22, 2024

Opened up an Issue here

from plotjuggler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.