Missing geom_curve and units for annotated arrow
Open
Nobody has claimed this yet.
Feature
- Dominant language
- Python
- Stars
- 4.8k
- Forks
- 254
- Avg merge
- 10h 35m
- Merged PRs (30d)
- 9
Description
I love plotnine. Just ran into an issue where I can't annotate a curved arrow on a plot. There are at least two problems.
- No
geom_curveis implemented - No
unit()is defined
p = (
ggplot(df, aes(x="x", y="y"))
+ geom_point()
+ annotate("text", x = .8, y = .9, label = "Wat!?")
+ annotate(geom = "curve", x = .8, y = .9,xend=.9,yend=.78, curvature=-0.3,arrow=arrow(length=unit(2,"mm")))
+ theme_minimal()
)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the annotate calls shown in the issue, especially geom="curve" and arrow=arrow(..., unit(...)). Determine how curved arrows and measurement units should behave in plotnine, then verify that both example calls work and produce the expected annotated plot.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100