question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

yMax / yMin does not work anymore without explicit boundaries

See original GitHub issue

Hey,

I used to split the chart in 3 colored zones.

annotations: {
              first: {
                ...
                type: "box",
                yMin: 30,
              ..
              },
              second: {
                ...
                type: "box",
                yMax: 30,
                yMin: 1,
              ..
              },
              third: {
                ...
                type: "box",
                yMax: 1,
              ..
              },
....
}

But now it does not color the graph correctly anymore, unless I add yMax in the first box and yMin in the third box. Those values are dynamic though and I don’t want to add boundaries.

Any advice?

Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jastaxcommented, Jan 27, 2022

That’s great news, thanks.

I won’t be able to do it in the next few days but will try to create one after that.

0reactions
stockiNailcommented, Jan 27, 2022

@jastax thank you very much.

For your information, there is a PR #655 under evaluation which should solve this issue.

Could you create a codepen in order to be able to reproduce the above behaviors?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Key names of the axis limits when not set explicitly - TeX
In the minimum working example below I use the keys xmin , xmax , ymin and ymax for calculations of coordinates for annotations....
Read more >
A bug in axvline of matplotlib? - Stack Overflow
Now I realize that the ymin and ymax are not in data coordinate, but rather in the "normalized" coordinate. So, 0 means bottom...
Read more >
How to get the coordinates of the bounding box in YOLO ...
Question I need to get the bounding box coordinates generated in an image using the object detection. How do I achieve that.
Read more >
Package PGFPLOTS manual
Abstract pgfplots draws high–quality function plots in normal or logarithmic scaling with a user-friendly interface directly in TEX.
Read more >
Package PGFPLOTS manual - SourceForge
Abstract pgfplots draws high–quality function plots in normal or logarithmic scaling with a user-friendly interface directly in TEX.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found