Files
CSH/TP1.typ

17 lines
611 B
Typst

#import "@preview/plotst:0.2.0": *
= Mais wtf
// The data to be displayed
#let data = (
(0, 0), (2, 2), (3, 0), (4, 4), (5, 7), (6, 6), (7, 9), (8, 5), (9, 9), (10, 1)
)
// Create the axes used for the chart
#let x_axis = axis(min: 0, max: 11, step: 2, location: "bottom")
#let y_axis = axis(min: 0, max: 11, step: 2, location: "left", helper_lines: false)
// Combine the axes and the data and feed it to the plot render function.
#let pl = plot(data: data, axes: (x_axis, y_axis))
#graph_plot(pl, (100%, 25%))
#graph_plot(pl, (100%, 25%), rounding: 30%, caption: "Graph Plot with caption and rounding")