Commit Graph

17 Commits

Author SHA1 Message Date
bc63f3f463 libsysprof-gtk: improve alignment for lines 2023-06-29 15:10:05 -07:00
0004d0bffa libsysprof-gtk: allow line layer to draw over edge
This is needed to avoid clippin when the line reaches the top. It's easier
to just allow it to draw to the edge than to create alternative ways of
adjusting height/width for the chart itself.
2023-06-29 14:15:09 -07:00
19d6347ff3 libsysprof-gtk: add antialias option 2023-06-28 12:50:49 -07:00
712013a91a libsysprof-gtk: move flip-y to SysprofXYLayer
So that we can use it to perform value coordinate flipping on multiple
charts and graphs.
2023-06-28 12:36:05 -07:00
6d9baa0118 libsysprof-gtk: cleanup some flipped-y situations
Alternatively, we should probably fix this in the normalization layer since
that will allow us to treat everything uniformally.
2023-06-28 11:19:59 -07:00
71c0c20834 libsysprof-gtk: basic hover support for line layer 2023-06-28 11:16:59 -07:00
c2d27ce85a libsysprof-gtk: ignore out-of-sequence data
We shouldn't be getting this here, but drop it if we do come across it so
that we don't screw up path drawing.
2023-06-27 15:52:54 -07:00
fbebc31c05 libsysprof-gtk: make accent fg/bg color available internally
This does more work than it should have to since we are reading the color
repeatedly, but it's still better than the data being stored per-instance.
2023-06-27 15:01:02 -07:00
e9a7a76fd4 libsysprof-gtk: use accent color by default 2023-06-27 14:26:27 -07:00
f803b5ea3d libsysprof-gtk: close path when doing fills 2023-06-27 13:00:45 -07:00
9f95794d8e libsysprof-gtk: rename use-curves to spline 2023-06-27 12:37:31 -07:00
6adda64123 libsysprof-gtk: add xy layer to allow some code deduplication
We can also port ColumnLayer to use this.
2023-06-26 12:24:31 -07:00
b77247c40c libsysprof-gtk: allow setting dashed lines
This is needed to make graphs like our previous cpu frequency graphs.
2023-06-20 17:18:32 -07:00
4191dc74b3 libsysprof-gtk: fix fill color 2023-06-20 17:18:13 -07:00
f71fbd9a31 libsysprof-gtk: allow filling a line chart 2023-06-20 16:58:17 -07:00
1522a9f57f libsysprof-gtk: allow flipping y-axis of line layer
This way it can be packed into a split layer to allow emulate our previous
duplex graphs.
2023-06-20 16:19:39 -07:00
985bd35221 libsysprof-gtk: add line layer which can line_to and curve_to 2023-06-20 15:35:25 -07:00