-
Notifications
You must be signed in to change notification settings - Fork 240
Closed
Description
I tried both as an aesthetic and manual geom argument. I might be missing something, though...
(here are the matplotlib fontweight docs)
import pandas as pd
from plotnine import *
df = pd.DataFrame(
{"x": [1, 2, 3, 4], "fontweight": ["light", "normal", "bold", "heavy"]}
)
(ggplot(df, aes(1, "x")) + geom_text(aes(label="fontweight", fontweight="fontweight")))
# same result...
(ggplot(df, aes(1, "x")) + geom_text(aes(label="fontweight"), fontweight="bold"))

Metadata
Metadata
Assignees
Labels
No labels