pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/plotly/plotly.py/pull/5349/files

https://github.githubassets.com/assets/primer-primitives-10bf9dd67e3d70bd.css" /> mpl_to_plotly: map enumerated tick labels to Plotly tickvals/ticktext by willtryagain · Pull Request #5349 · plotly/plotly.py · GitHub
Skip to content
Open
Changes from all 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 deletions plotly/matplotlylib/mpltools.py
Original file line number Diff line number Diff 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
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy