Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data lines clip into axes in plot #457

Closed
BattleCh1cken opened this issue Jan 16, 2024 · 1 comment · Fixed by #479
Closed

Data lines clip into axes in plot #457

BattleCh1cken opened this issue Jan 16, 2024 · 1 comment · Fixed by #479
Labels
enhancement ⬆️ New feature or request lib:plot
Milestone

Comments

@BattleCh1cken
Copy link

  • Cetz version: 0.2.0
  • Typst version: 0.10.0

When using the plot function the data lines overlap the axis lines, creating a somewhat unclean look.

Here's an example of what that might look like:

image

And here's the code to produce this:

#cetz.canvas({
  import cetz.plot
  plot.plot(
    size: (9,5),
    {
      plot.add(((1,2), (2,5), (3,5)))
      plot.add(((1,1), (2,8), (3,1)))
    }
  )
})
@johannes-wolf johannes-wolf added enhancement ⬆️ New feature or request feature 🎁 Feature Request lib:plot and removed feature 🎁 Feature Request labels Jan 17, 2024
@johannes-wolf johannes-wolf added this to the 0.2.1 milestone Jan 20, 2024
@johannes-wolf
Copy link
Member

johannes-wolf commented Jan 20, 2024

Will be implemented with #328. But the behaviour shown in the example will stay the default one, as it is considered correct.

@johannes-wolf johannes-wolf linked a pull request Jan 31, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ⬆️ New feature or request lib:plot
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants