-
Notifications
You must be signed in to change notification settings - Fork 204
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
vg/vgimg: fails to draw horizontal lines with many line segments #687
Comments
probably a duplicate of: |
Ran into a similar issue than this. Followed the "Duplicate" issue and can reproduce the behaviour: |
then this is an issue with the underlying I must admit I haven't followed up and didn't dive in |
well... as mentioned in fogleman/gg#85 (comment) it's been a while. |
I don't think I can answer that because the choice is essentially an indication of where the burden will lie and that's obviously a thing for you to decide. I can say that I will try to help maintain it no matter where it lives. |
Fixes gonum#687. Fixes gonum#645. Fixes gonum#559. Signed-off-by: Sebastien Binet <[email protected]>
Fixes gonum#687. Fixes gonum#645. Fixes gonum#559. Signed-off-by: Sebastien Binet <[email protected]>
Fixes gonum#687. Fixes gonum#645. Fixes gonum#559. Signed-off-by: Sebastien Binet <[email protected]>
Fixes #687. Fixes #645. Fixes #559. Signed-off-by: Sebastien Binet <[email protected]>
[email protected] has a better handling of points' closeness. see: https://git.sr.ht/~sbinet/gg/commit/1994be2d12593293d38a10764df23880fee6f436 It's a better fix for gonum#687 Signed-off-by: Sebastien Binet <[email protected]>
[email protected] has a better handling of points' closeness. see: https://git.sr.ht/~sbinet/gg/commit/1994be2d12593293d38a10764df23880fee6f436 Fixes gonum#687. Signed-off-by: Sebastien Binet <[email protected]>
[email protected] has a better handling of points' closeness. see: https://git.sr.ht/~sbinet/gg/commit/1994be2d12593293d38a10764df23880fee6f436 Fixes gonum#687. Signed-off-by: Sebastien Binet <[email protected]>
[email protected] has a better handling of points' closeness. see: https://git.sr.ht/~sbinet/gg/commit/1994be2d12593293d38a10764df23880fee6f436 Fixes #687. Signed-off-by: Sebastien Binet <[email protected]>
What are you trying to do?
Plot a long data series.
What did you do?
This won't run in playground due to timeout, but change the playground constant to false and it will run locally.
https://play.golang.org/p/gSINhzskCHi
What did you expect to happen?
Plot something equivalent to this (svg output).
![Screenshot from 2021-04-21 09-24-46](https://user-images.githubusercontent.com/275221/115477711-b1108f00-a283-11eb-97a2-935e0b4d078f.png)
What actually happened?
The plot is correct with svg, eps and pdf formats, but missing the horizontal segment with png, tiff and jpg, so it appears to be due to vg/vgimg. The
*Canvas.Stroke
method is a thin wrapper around*"github.com/fogleman/gg".Context.Stroke
, so the error may there. Note also that the effect is not noticeably visible forlen(data)
values lower than ~4000 in the bug.go reproducer.What version of Go and Gonum/plot are you using?
v0.9.0 caab778
Does this issue reproduce with the current master?
Yes.
The text was updated successfully, but these errors were encountered: