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

mpl_to_plotly: map enumerated tick labels to Plotly tickvals/ticktext#5349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
willtryagain wants to merge1 commit intoplotly:main
base:main
Choose a base branch
Loading
fromwilltryagain:feat/mpl-enumerated-ticks
Open
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletionsplotly/matplotlylib/mpltools.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -511,6 +511,13 @@ def prep_ticks(ax, index, ax_type, props):

if formatter == "LogFormatterMathtext":
axis_dict["exponentformat"] = "e"

ticktext = [tick.label1.get_text() for tick in axis.majorTicks]
if ticktext and "DateFormatter" not in formatter:
axis_dict["tickmode"] = "array"
axis_dict["tickvals"] = [tick.get_loc() for tick in axis.majorTicks]
axis_dict["ticktext"] = ticktext

return axis_dict


Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp