JuliaGraphs / JuliaGraphs/GraphPlot.jl

Feature request: specify relative location for edgelabel along the edgelength

Open
#195 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.