Giter VIP home page Giter VIP logo

Comments (5)

tenox7 avatar tenox7 commented on May 22, 2024

You are absolutely right about -e not being honored right now. It's a bug. It was missing in optstring. Fixed now.

You are also right about -s not being used when -m is specified. However this is by design. Think of flag -s is not a limit of any kind. It's an initial or minimal graph or scale height. Most commonly used when for measuring something that has a known scale like CPU usage in % (the top being 100%) or link bandwidth (the top being xxx MB/s). You use -s when you don't want an actual limit but you want graph to be scaled minimally at x value. You use -m when you want a completely fixed scale never to go lover or higher than the value of the flag. One can think that -m is inclusive of -s and therefore specifying -s has no effect. Let me know if I can word it better way in help/description/usage.

from ttyplot.

tenox7 avatar tenox7 commented on May 22, 2024

I have updated the usage regarding -s and -m to be less confusing:

  -s minimum/initial scale of the plot (can go above if data input has larger value)
  -m maximum value, if exceeded draws error line (see -e), plot scale is fixed

from ttyplot.

tenox7 avatar tenox7 commented on May 22, 2024

fixed in head:master

from ttyplot.

servidge avatar servidge commented on May 22, 2024

Ok, i can confirm the fix.
And the -s or -m parameters are used either or and not both at the same time. If you use the -s the -e does not take effect. i can live with that.
thanks for the fix

from ttyplot.

tenox7 avatar tenox7 commented on May 22, 2024

if -m is used -s becomes redundant, also if -s (and not -m) then -e is never used, so... yes :)

from ttyplot.

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.