plotst having floating point issues (axis)
marcustut opened this issue · comments
I would expect to see exact 0.1
- 1.0
, or we have a way to round off these floating points?
#let dtree = (
(2, 0.482),
(4, 0.527),
(6, 0.556),
(8, 0.572),
(10, 0.573),
(12, 0.522),
(14, 0.522),
(16, 0.522),
(18, 0.522),
(20, 0.522)
)
#let x_axis = axis(min: 0, max: 22, step: 2, location: "bottom")
#let y_axis = axis(min: 0, max: 1, step: 0.1, location: "left")
#let pl_graph = plot(data: dtree, axes: (x_axis, y_axis))
#graph_plot(pl_graph, (100%, 25%), stroke: blue)
![Screenshot 2023-11-23 at 9 50 33 AM](https://private-user-images.githubusercontent.com/59773847/285166363-72ddfdfa-1454-4349-844c-2bedf072bf87.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2MjcwMTEsIm5iZiI6MTcyMDYyNjcxMSwicGF0aCI6Ii81OTc3Mzg0Ny8yODUxNjYzNjMtNzJkZGZkZmEtMTQ1NC00MzQ5LTg0NGMtMmJlZGYwNzJiZjg3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDE1NTE1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0Njk2N2QxOTJlYmU2ZjIzZjNkYTQ2NjY3MTQyZWRjMjdjYzY3ZmJkNWFhYmMzNzEyN2IwZTZjOWIyYWU1MmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.PRtiMcOmc_eUWQCWEmSZM0K0OsXcsDjrz98mahP6oy0)
Closing in favor of Pegacraft/typst-plotting#18. The issues tab in this repository is only intended for issues with the package management system itself.