Replies: 1 comment
-
|
Here is an example of how you can do both stacked and “clustered” columns in a single plot/chart: #import "@preview/cetz:0.4.2"
#import "@preview/cetz-plot:0.1.3": plot
#set page(width: auto, height: auto, margin: .5cm)
#let voldata = (
(1, 25, 5),
(2, 35, 3),
(3, 50, 4),
)
#let volxel = (
(1, 10, 4),
(2, 15, 3),
(3, 20, 5),
)
#cetz.canvas({
plot.plot(size: (8, 5), {
plot.add-bar(
mode: "stacked",
bar-position: "start",
bar-width: .25,
voldata,
)
plot.add-bar(
mode: "stacked",
bar-position: "end",
bar-width: .25,
volxel,
)
})
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Essentially, I'm trying to make the following plot:

from this data https://gist.github.com/Erdragh/774b42f93b51a7623f090413cedc445a
I would like error bars.
Beta Was this translation helpful? Give feedback.
All reactions