cetz-package / cetz

CeTZ: ein Typst Zeichenpaket - A library for drawing stuff with Typst.
https://cetz-package.github.io
GNU Lesser General Public License v3.0
819 stars 35 forks source link

Data lines clip into axes in plot #457

Closed BattleCh1cken closed 7 months ago

BattleCh1cken commented 7 months ago

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 commented 7 months ago

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