Replies: 1 comment
-
I made some progress, this draws somewhat reasonable rectangles
However, between all the lifetime problems when trying to draw some things, bugs and lack of any support I cannot recommend using this crate at the moment :( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm rewriting one of my python programs which basically creates a timetable. Y axis is date / time and X axis are arbitrary strings to which data belongs.
The data are rectangles with information written into them
I'm trying to recreate the behaviour with plotters-rs. I have gotten a plot based on time (though the labels show no actual differences, haven't looked into that yet) and names. The box int he upper left corner was just a (0, 0), (100, 100) test drawing of a rectangle.
Now I want to draw the rectangles into them, but I don't know how to get the coordinates for drawing from the char.
The y axis start and end are set thus:
I have data something along the lines of
And the rectangle should be from d1 to d2 (in y axis) and span most of the space from one element to the next (in x axis), as can be seen in the first screenshot.
So, how can I get the correct x and y coordinates?
Beta Was this translation helpful? Give feedback.
All reactions