Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactoradd_vline(),add_hline(),add_hrect(),add_vrect() to use Plotly.jsshape.label attribute #5373

Open
Labels
P2considered for next cyclefeaturesomething new
@emilykl

Description

@emilykl

The Plotly.py functionsfig.add_vline(),fig.add_hline(),fig.add_hrect(),fig.add_vrect() accept arguments such asannotation_text which are used to create a label for the shape. This is done by creating and adding two separate objects to the Plotly.js layout: a shape, and an annotation.

However,now that Plotly.js has added support for shape labels, this is no longer necessary -- the text can be added directly as a label to the shape rather than creating two separate objects.

This would solve issues such as#3065 where we are doing some hacky stuff to get the label in the right place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclefeaturesomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp