JuliaGraphs / JuliaGraphs/GraphPlot.jl
Feature request: specify relative location for edgelabel along the edgelength
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 213
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
PR #186 allows placing edge labels on the middle of an edge, whether it be curved or straight. It would be nice to have a kwarg for gplot that will allow the user to specify the position in the range 0 to 1 for the relative location along the edge (e.g., 0.5 = midpoint, 0 = startpoint, 1 = endpoint). This can easily be done by changing the 0.5 to the parameter value in the section of gplot where the edgelabels are placed.
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
Read PR #186 for the existing edge-label placement and inspect the section of gplot where edgelabels are placed. Add a gplot keyword accepting a relative position from 0 to 1, then verify that 0, 0.5, and 1 place the label at the start, midpoint, and endpoint of curved and straight edges.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100