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

Manually set the Y axis scale #24

Open
luckman212 opened this issue May 1, 2020 · 1 comment
Open

Manually set the Y axis scale #24

luckman212 opened this issue May 1, 2020 · 1 comment

Comments

@luckman212
Copy link

luckman212 commented May 1, 2020

Love this tool @sgreben !

Is there any way to manually set the min/max values for the Y-axis?

@BlackthornYugen
Copy link

Would love this feature. Sometimes I am graphing a horizontal line, and that yields NaN for ymin / ymax since it tries to automagically set these. I am trying to find an easy tool to graph temperatures over time from a few different sensors. Ideally I'd like these to have the same Y axis scale so they are easy to compare.

Here is how I animate a few days of temperature data with jp:

for y in `seq 4500 -20 20` ; do
  for x in {0..2} ; do
    jq -sc ".[-$((1000 + $y)):-${y}] "'| map([.[3],.['"$x"']])' < remote.templog \
      | jp -height 10 -width 100 >> graph.txt
  done
  cat graph.txt
  rm graph.txt
  sleep 0.05
done

temps

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