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

Add Plotly.js docs updates for 6.3#5269

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

Draft
LiamConnors wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromdocs-update-next-release

Conversation

LiamConnors
Copy link
Member

@LiamConnorsLiamConnors commentedJul 7, 2025
edited
Loading

Adds examples for next Plotly.js version


Documentation PR

  • I have seen thedoc/README.md file.
  • This change runs in the current version of Plotly on PyPI and targets thedoc-prod branch OR it targets themain branch.
  • If this PR modifies the first example in a page or adds a new one, it is apx example if at all possible.
  • Every new/modified example has a descriptive title and motivating sentence or paragraph.
  • Every new/modified example is independently runnable.
  • Every new/modified example is optimized for short line count and focuses on the Plotly/visualization-related aspects of the example rather than the computation required to produce the data being visualized.
  • Meaningful/relatable datasets are used for all new examples instead of randomly-generated data where possible.
  • The random seed is set if using randomly-generated data.
  • New/modified remote datasets are loaded fromhttps://plotly.github.io/datasets and added tohttps://github.com/plotly/datasets.
  • Large computations are avoided in the new/modified examples in favour of loading remote datasets that represent the output of such computations.
  • Imports areplotly.graph_objects as go,plotly.express as px, and/orplotly.io as pio.
  • Data frames are always calleddf.
  • fig = <something> is called high up in each new/modified example (eitherpx.<something> ormake_subplots orgo.Figure).
  • Liberal use is made offig.add_* andfig.update_* rather thango.Figure(data=..., layout=...).
  • Specific adders and updaters likefig.add_shape andfig.update_xaxes are used instead of bigfig.update_layout calls.
  • fig.show() is at the end of each example.
  • plotly.plot() andplotly.iplot() are not used in any example.
  • Named colors are used instead of hex codes wherever possible.
  • Code blocks are marked with&#96;&#96;&#96;python.

@gvwilsongvwilson added featuresomething new P1needed for current cycle documentationwritten for humans labelsJul 8, 2025
@cceneag
Copy link

This pull request updates the documentation for Plotly's Python library to include new features introduced in version 6.3, along with some minor metadata updates. The key changes introduce examples for controlling zero line layers, limiting legend height, and using custom SVG patterns in bar charts.

New Features in Documentation:

Axes:

  • Added an example for controlling the zero line layer using thezerolinelayer property, allowing users to display zero lines above or below traces.

Legends:

  • Introduced a new section on setting the maximum height of legends with themaxheight parameter, allowing better layout control when legends have many items.

Patterns:

  • Added an example demonstrating the use of custom SVG paths for bar chart patterns via themarker.pattern.path property, enabling highly customizable visualizations.

Metadata Updates:

  • Updatedjupytext_version to1.17.2 across all modified files.[1][2][3]
  • Downgraded Python version metadata from3.10.x to3.9.0 for consistency across documentation files.[1][2][3]

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees

@LiamConnorsLiamConnors

Labels
documentationwritten for humansfeaturesomething newP1needed for current cycle
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@LiamConnors@cceneag@gvwilson

[8]ページ先頭

©2009-2025 Movatter.jp