plotly / plotly/plotly.py

connection style for arrows

Open
#5,009 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

It would be nice to have orthogonal and other types of connection style arrows when adding annotations. Matplotlib has something like:

import matplotlib.pyplot as plt

fig, ax = plt.subplots()

ax.plot([1, 2, 3], [4, 5, 2])

# Annotate with a connection line
ax.annotate("Important Point", xy=(2, 5), xytext=(1.5, 5.5),
            arrowprops=dict(arrowstyle="->", connectionstyle="arc3,rad=0.2"))

plt.show()

This would be useful for linking bars in timeline for example. Right now if you annotate the bar chart you can only add straight arrows.

Contributor guide

Open the contributing guide

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

The issue names no files, tests, or entry points. Start by locating the annotation arrow implementation and comparing its current straight-arrow behavior with Matplotlib's connectionstyle example. Done means annotations support orthogonal and other connection styles, including links between timeline bars, with coverage for the supported styles.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.