Skip to content

Error: Unknown variable: style #36

@MqCreaple

Description

@MqCreaple

Here is my code to plot a graph:

#let x_data = (1.0, 2.0, 3.0, 4.0, 5.0)
#let y_data = (1.2, 3.4, 5.6, 7.8, 9.0)
#let x_axis = axis(min: calc.floor(calc.min(..x_data)), max: calc.ceil(calc.max(..x_data)), location: "bottom")
#let y_axis = axis(min: calc.floor(calc.min(..y_data)), max: calc.ceil(calc.max(..y_data)), location: "left")
#let pl = plot(data: x_data.zip(y_data), axes: (x_axis, y_axis))
#scatter_plot(pl, (80%, 50%))

And I got an error in the last line:

Error: Unknown variable: style

I found that in the changelog of typst v0.11.0, the style function is deprecated. If this repo is still being maintained, I hope the maintainer can publish a change to solve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions