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

Documentation conversion into Mkdocs#5384

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
daexs wants to merge191 commits intoplotly:live-docs
base:live-docs
Choose a base branch
Loading
fromdaexs:mkdocs-conversion
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
191 commits
Select commitHold shift + click to select a range
a2787a0
- Move contents of `commands.py` to scripts in new `bin` directory an…
gvwilsonJul 10, 2025
3dced44
preload _plotly_utils
LiamConnorsJul 22, 2025
bc32c86
add docstrings directly to px functions
LiamConnorsDec 2, 2024
174b0e9
change docstring style
LiamConnorsJul 22, 2025
badb199
Merge pull request #5292 from plotly/plotly.express-docstrings
gvwilsonJul 22, 2025
86f69f1
Merge branch 'mkdocs-conversion' into preload-plotly-utils
gvwilsonJul 22, 2025
c0237f6
Merge pull request #5290 from plotly/preload-plotly-utils
gvwilsonJul 22, 2025
76b36dd
feat: numpy documentation style
gvwilsonJul 22, 2025
96af9f6
feat: regenerating Python code with .js fixes
gvwilsonJul 22, 2025
9525f6a
feat: converting doc/python/*.md using bin/run_markdown.py
gvwilsonJul 23, 2025
80792d8
better verbosity
gvwilsonJul 26, 2025
9386750
feat: conditionalize Makefile target for testing
gvwilsonJul 29, 2025
6d1e5c8
Merge remote-tracking branch 'origin/fix-docs' into mkdocs-conversion
gvwilsonJul 30, 2025
20c60ef
Merge remote-tracking branch 'origin/add-missing-imports' into mkdocs…
gvwilsonJul 30, 2025
a07ea45
feat: script to check all examples in doc/python.
gvwilsonJul 30, 2025
5cad013
use _parse_md function
LiamConnorsJul 30, 2025
2e38a9a
don't process code block in region sections
LiamConnorsJul 30, 2025
e45f54c
Merge pull request #5307 from plotly/update-script
gvwilsonJul 31, 2025
73a8291
modify tests to import from graph_objects
gvwilsonJul 30, 2025
36ee5e9
add trivial test to make sure plotly.graph_objects import works
gvwilsonAug 1, 2025
57d923c
updating notes
gvwilsonAug 1, 2025
ca37382
swapping graph_objs and graph_objects
gvwilsonAug 5, 2025
31b73ce
Added backslashes to descriptions with '[][]'
daexsAug 12, 2025
fae9563
Fixed markdown formatting for valType 'info_array'
daexsAug 14, 2025
c2e20c7
Added backslashes to descriptions with '[][]'
daexsAug 12, 2025
0f9b311
Fixed markdown formatting for valType 'info_array'
daexsAug 14, 2025
3f5ee9f
regenerating with latest changes
gvwilsonAug 14, 2025
f345aef
Fixed double bracket error for regular expressions
daexsAug 14, 2025
f840f11
Minor code cleanup
daexsAug 14, 2025
4a7873c
Fixed double bracket error in 'basedatatypes.py'
daexsAug 14, 2025
b0cd2f9
Merge branch 'mkdocs-conversion' of https://github.com/plotly/plotly.…
daexsAug 14, 2025
cd623aa
Regenerated code after basevalidators.py changes
daexsAug 14, 2025
98fab98
Fix SyntaxWarning and adjusted valType 'enumerated' docstring format.
daexsAug 14, 2025
9ddde0f
Fixed formatting issues with nested enumerated docstrings in info_arr…
daexsAug 15, 2025
683643c
Fixed list format in 'Dash' and 'String' properties.
daexsAug 18, 2025
efde201
Fixed formatting for 'Compound' and 'color' properties.
daexsAug 18, 2025
01da1c6
Fixed formatting for 'Integer' types.
daexsAug 18, 2025
8d12a05
Fixed formatting for 'Colorscale', 'CompoundArray', and 'BaseData' ty…
daexsAug 19, 2025
6690116
Fixed confusing indentation & some formatting
daexsAug 19, 2025
4154910
Fixed formatting issues and consistency
daexsAug 19, 2025
df9cc3a
feat: allow `--schema path` option to code generation
gvwilsonAug 20, 2025
77d19bb
Merge pull request #17 from gvwilson/mkdocs-conversion
daexsAug 20, 2025
bdd049b
Fixed code block and type annotation formatting.
daexsAug 21, 2025
cbd983d
Minor code cleanup
daexsAug 21, 2025
95ea818
Fixed example parsing error
daexsAug 22, 2025
31c8a2f
Fixed formatting issues and modified json file for double bracket error.
daexsAug 25, 2025
f35c9fa
Fixed **kwargs bold formatting issue
daexsAug 26, 2025
eef950e
Fixed types for parameters 'annotation', 'annotation_position', and '…
daexsAug 26, 2025
e339098
Merge branch 'main' into mkdocs-conversion
gvwilsonAug 27, 2025
3e5ee8b
Merge branch 'main' into mkdocs-conversion
gvwilsonAug 27, 2025
a943429
saving generated example files
gvwilsonAug 27, 2025
569b6d7
feat: build YAML table of contents for examples
gvwilsonAug 27, 2025
6d2f32f
fix: switch to relative paths in examples
gvwilsonAug 27, 2025
dc0418a
feat: fixing some dangling references in doc/python example files
gvwilsonAug 28, 2025
66208c6
Added pages to nav bar and extra css styling
daexsAug 28, 2025
d116e27
Fixed warnings and errors
daexsAug 29, 2025
8607d4a
feat: allow bin/run_markdown.py to take a single block number for tes…
gvwilsonAug 29, 2025
9a40907
Fixed small import and missing module errors
daexsSep 2, 2025
b215b37
Fixed small missing import and variable errors. Also added 'getting-s…
daexsSep 3, 2025
1847061
Added permalinks to replace empty md files
daexsSep 3, 2025
9da9b2d
Fixed Image not JSON serializable error
daexsSep 3, 2025
883c0d9
Edited comment for clarity
daexsSep 3, 2025
63882d0
Fixed deprecation warning for 'type' found when county-choropleth.md …
daexsSep 3, 2025
7e8a638
Fixed 403 Error from Wikimedia when reading image
daexsSep 4, 2025
77e76af
Made variable state shared across codeblocks and cleaned up previous …
daexsSep 4, 2025
1d1620c
Fixed html image rendering and reading image from wikimedia
daexsSep 4, 2025
2310f66
Replaced image rendering from IPython's image display and overrided P…
daexsSep 5, 2025
a673e59
Fixed pip install invalid syntax error
daexsSep 5, 2025
0fa35da
Fixed some references and absolute links that were broken
daexsSep 8, 2025
1d89e17
Removed ' install' and added versions. Also changed the umap module i…
daexsSep 9, 2025
373e1bc
Removed from the navigation bar and reverted previous changes to pac…
daexsSep 10, 2025
6e300ad
Configured mkdocs to be able to resolve absolute links and set them r…
daexsSep 11, 2025
c3a98b6
Edited navigation bar to make section names more user friendly.
daexsSep 17, 2025
64b30da
Reorganized the navigation bar to match the existing Python docs.
daexsSep 17, 2025
8f43c74
add some links, css, and restructure content
LiamConnorsSep 17, 2025
e712a01
Update is-plotly-free.md
LiamConnorsSep 17, 2025
6aeb223
Update mkdocs.yml
LiamConnorsSep 17, 2025
1fadabe
Update mkdocs.yml
LiamConnorsSep 18, 2025
d970523
Update is-plotly-free.md
LiamConnorsSep 18, 2025
3514472
Manually added new script that generates the API Reference markdown p…
daexsSep 19, 2025
8beee0d
Excluded some markdown files from docs nav bar build to prevent log m…
daexsSep 19, 2025
a4dc547
Merge branch 'mkdocs-conversion' into update-names
LiamConnorsSep 22, 2025
6c8ea1b
Merge pull request #48 from daexs/update-names
LiamConnorsSep 22, 2025
d6fc630
Fix lists not rendering properly in some examples
daexsSep 22, 2025
4f0c61a
Fixed minor mistake in the Makefile when running 'examples-force'
daexsSep 22, 2025
566c835
Added syntax highlighting to python code blocks
daexsSep 22, 2025
430e485
add plotly studio and dash club info
LiamConnorsSep 22, 2025
5deca22
Update mkdocs.yml
LiamConnorsSep 22, 2025
b4c5cb4
delete generated images
LiamConnorsSep 23, 2025
0c3d202
add dataset from docs generation
LiamConnorsSep 23, 2025
259a8e1
only generate html
LiamConnorsSep 23, 2025
0fac168
update html generation
LiamConnorsSep 23, 2025
6cf3ff4
move examples
LiamConnorsSep 23, 2025
ee82f48
remove duplicate files
LiamConnorsSep 23, 2025
8de444f
regen files
LiamConnorsSep 23, 2025
b8319de
Reinclude pages not directly accessible from navigation and suppress …
daexsSep 23, 2025
7994893
Merge pull request #68 from daexs/add-banner
LiamConnorsSep 23, 2025
d74a371
Merge pull request #70 from daexs/add-gh-repo
LiamConnorsSep 23, 2025
c6099ed
Merge branch 'mkdocs-conversion' into restructure-2
LiamConnorsSep 23, 2025
0d19bd5
Merge pull request #72 from daexs/restructure-2
LiamConnorsSep 23, 2025
d88da53
add missing reference pages
LiamConnorsSep 23, 2025
c24f7d6
Update mkdocs.yml
LiamConnorsSep 23, 2025
a2d466e
Update mkdocs.yml
LiamConnorsSep 23, 2025
d077940
Fixed internal links for axes.md
daexsSep 23, 2025
ecc2b1f
Fixed some internal links and fixed 'figure-structure.md' content bei…
daexsSep 23, 2025
816001b
Merge pull request #73 from daexs/add-back-missing-ref
LiamConnorsSep 24, 2025
36bd491
Changed 'https://plotly.com/python/' links into internal links and fi…
daexsSep 25, 2025
fb5d918
removing out-of-date notes
gvwilsonSep 25, 2025
4fdae5b
Changed links pointing to 'https://plot.ly' into internal links
daexsSep 25, 2025
402d03f
Merge branch 'mkdocs-conversion' of https://github.com/daexs/plotly.p…
daexsSep 25, 2025
ea587d9
refactor: small cleanups to build process
gvwilsonSep 26, 2025
1d2046a
Remove image base64 conversion code from the examples
daexsSep 26, 2025
28d14dd
feat: remove unused metadata in Markdown files
gvwilsonSep 26, 2025
c1e1a1b
Replaced all links to 'https://plotly.com/python-api-reference/' into…
daexsSep 26, 2025
44e72d0
Update run_markdown.py
LiamConnorsSep 29, 2025
4d2be36
Fixed missing import statements for plotly.express and urllib.request
daexsSep 29, 2025
f6bf056
Fixed links rendering as regular text and lists not rendering correctly.
daexsSep 29, 2025
8db0756
Added custom formatter and styling to hide code blocks with 'hide_cod…
daexsSep 30, 2025
9161db0
Fixed 'docs' rule
daexsSep 30, 2025
a265548
Changed the docstring style of the plotly figure_factory module to numpy
daexsOct 1, 2025
f17cb33
Fixed links to correctly reference their respective files and render …
daexsOct 1, 2025
362eba4
Fixed html rendering in codeblocks
daexsOct 1, 2025
b7b3f28
Reformatted dash code blocks to allow the code snippets and charts to…
daexsOct 1, 2025
01036e1
Remove previously added custom formatter to hide Dash code
daexsOct 1, 2025
3ba7f1e
Added styling to remove maplibre controls container under the interac…
daexsOct 2, 2025
16f34ec
Merge pull request #81 from daexs/fix-mathjax
LiamConnorsOct 3, 2025
a79bdb8
add redirects
LiamConnorsOct 3, 2025
064a52f
Merge pull request #88 from daexs/add-redirects
daexsOct 3, 2025
a5a1c00
Added plotly studio image to the nav bar.
daexsOct 6, 2025
108933b
Cleaned up 'plotly-styles.css' file and removed the arrow indicating …
daexsOct 6, 2025
e2464dd
Fixed dash_bio figures not rendering in 'doc/python/bio-clustergram.md'.
daexsOct 6, 2025
db53d9b
Merge branch 'mkdocs-conversion' of https://github.com/daexs/plotly.p…
daexsOct 6, 2025
8cc3b51
Fixed headings that weren't rendering in Markdown properly.
daexsOct 7, 2025
4bc8eed
Added back orca-management.md into the navigation
daexsOct 8, 2025
29e6b84
Resolved more links and added a new redirect for 'mapbox-layers'
daexsOct 8, 2025
abb898f
Added footer and adjusted height of plotly studio image
daexsOct 9, 2025
38e69f4
Fixed minor link typo in footer
daexsOct 9, 2025
68c6d16
Added header and dash banner image
daexsOct 14, 2025
03120e6
Minor fix to navigation page titles
daexsOct 16, 2025
d8e18b2
Merge pull request #86 from daexs/fix-plotly-module-formatting
daexsOct 16, 2025
66eea0e
Merge pull request #87 from daexs/fix-html-and-dash-render
daexsOct 16, 2025
270fade
Merging mkdocs-conversion into this branch and resolving merge conflicts
daexsOct 16, 2025
001cb53
Merge pull request #80 from daexs/remove-unused-metadata
daexsOct 16, 2025
e22fbb7
Adjusted title of pages in graph_objects module figure overview
daexsOct 16, 2025
0fa6e72
Merge pull request #98 from daexs/adjust-styling-and-format
daexsOct 16, 2025
37aacd4
Fixed minor naming error for header div.
daexsOct 16, 2025
55db0a6
Added index pages to each category in the nav bar.
daexsOct 20, 2025
3204832
Converted redirect links into internal links.
daexsOct 21, 2025
51eb8fc
Resolved links and removed Dash banner from the bottom of the 'Overvi…
daexsOct 21, 2025
faf9bfb
Added dash examples to select index pages and updated dash banner logic
daexsOct 21, 2025
622af18
Added more redirects, changed redirect links in markdown files, resol…
daexsOct 22, 2025
ef612af
Redisplay external link arrows on dash banner and plotly studio ad. S…
daexsOct 22, 2025
e64dc40
Changed the text for all internal links that used to be 'https://plot…
daexsOct 22, 2025
3caa780
Remove page that was accidentally added.
daexsOct 22, 2025
2eb1590
Changed name of 'migrate-to-maplibre.md' to remain consistent with li…
daexsOct 23, 2025
79f7440
Updated page name reference for mapbox to maplibre migration.
daexsOct 23, 2025
654fde1
Resolved more links, added a redirect, and fixed list render
daexsOct 23, 2025
9ff8730
Fix list rendering
daexsOct 23, 2025
eb6ed26
Added styling for footer text when page is in dark mode.
daexsOct 23, 2025
ae2f80b
Added extensions to allow proper LaTeX rendering
daexsOct 23, 2025
ae54f18
Converted callouts into admonitions
daexsOct 24, 2025
a7a5122
Fixed graph rendering in creating-and-updating-figures.md
daexsOct 27, 2025
e1ac526
Added more admonitions
daexsOct 27, 2025
3f03d07
Remove empty python blocks
daexsOct 27, 2025
9fe8873
Added more admonitions, including those for warning messages
daexsOct 27, 2025
9643249
Updated plotly ad on nav bar
daexsOct 27, 2025
2c8f030
Added css styling to keep tables within the width of the page's body/
daexsOct 27, 2025
fea9b38
Added an 'edit this page' button
daexsOct 27, 2025
edf2b1a
Fixed styling of icon in edit button
daexsOct 27, 2025
3ae43db
Merge branch 'mkdocs-conversion' into update-link-text
daexsOct 28, 2025
89b3dd4
Merge pull request #102 from daexs/update-link-text
daexsOct 28, 2025
87da393
Merge remote-tracking branch 'upstream/live-docs' into mkdocs-conversion
daexsOct 28, 2025
c28d17a
Update meta descriptions for files in pages/, rename markdown files i…
daexsOct 30, 2025
305e674
Minor formatting change and added missing function into 'plotly/expre…
daexsOct 31, 2025
fe05438
Fixed graph rendering
daexsOct 31, 2025
f5a4c3e
Patched img.show to embed the images generated properly.
daexsNov 1, 2025
f53b41e
Add docs dependencies into pyproject.toml
daexsNov 6, 2025
15a23af
Minor changes to get docs running properly
daexsNov 10, 2025
2381234
Moved most files associated with the docs into 'docs/'
daexsNov 13, 2025
6a55b42
Fixed broken references to markdown files, modified main.html to not …
daexsNov 13, 2025
3c2db92
Update pyproject.toml and fix Makefile to work within docs/
daexsNov 13, 2025
9fce7ca
Update pyproject.toml
daexsNov 13, 2025
9983390
Fixed code formatting
daexsNov 13, 2025
5a975f4
More code formatting fixes
daexsNov 13, 2025
7ddcd6e
Add missing commands.py for testing purposes
daexsNov 13, 2025
107e992
More code formatting fixes
daexsNov 13, 2025
409127b
Remove commands.py for cleanliness
daexsNov 13, 2025
dcbaea4
Reverted changes to codegen because it created bugs
daexsNov 13, 2025
d18bf9e
Updated uv lock
daexsNov 14, 2025
a07b53e
Modified test to match expected output from previous changes in _plot…
daexsNov 17, 2025
0fb9832
Fixed css styling in footer
daexsNov 18, 2025
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
PrevPrevious commit
NextNext commit
Resolved more links and added a new redirect for 'mapbox-layers'
  • Loading branch information
@daexs
daexs committedOct 8, 2025
commit29e6b8425b2a6b37e725633ca52a26498bf1f80c
2 changes: 1 addition & 1 deletiondoc/python/density-heatmaps.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -74,7 +74,7 @@ fig.show()

The earlier examples using `px.density_map` and `go.Densitymap` use [Maplibre](https://maplibre.org/maplibre-gl-js/docs/) for rendering. These traces were introduced in Plotly.py 5.24. These trace types are now the recommended way to make tile-based density heatmaps. There are also traces that use [Mapbox](https://docs.mapbox.com): `density_mapbox` and `go.Densitymapbox`.

To use these trace types, in some cases you _may_ need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](mapbox-layers.md) documentation for more information.
To use these trace types, in some cases you _may_ need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](/python/mapbox-layers/) documentation for more information.

Here's one of the earlier examples rewritten to use `px.density_mapbox`.

Expand Down
8 changes: 4 additions & 4 deletionsdoc/python/figure-structure.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -68,13 +68,13 @@ IFrame(snippet_url + 'figure-structure', width='100%', height=1200)

### Figures as Trees of Attributes

Plotly.js supports inputs adhering to a well-defined schema, whose overall architecture is explained in this page and which is exhaustively documented in the [Figure Reference](reference/index.md) (which is itself generated from a [machine-readable JSON representation of the schema](https://raw.githubusercontent.com/plotly/plotly.js/master/dist/plot-schema.json)). Figures are represented as trees with named nodes called "attributes". The root node of the tree has three top-level attributes: `data`, `layout` and `frames` (see below).
Plotly.js supports inputs adhering to a well-defined schema, whose overall architecture is explained in this page and which is exhaustively documented in the [Figure Reference](reference/graph_objects/index.md) (which is itself generated from a [machine-readable JSON representation of the schema](https://raw.githubusercontent.com/plotly/plotly.js/master/dist/plot-schema.json)). Figures are represented as trees with named nodes called "attributes". The root node of the tree has three top-level attributes: `data`, `layout` and `frames` (see below).

Attributes are referred to in text and in the [Figure Reference](reference/index.md) by their full "path" i.e. the dot-delimited concatenation of their parents. For example `"layout.width"` refers to the attribute whose key is `"width"` inside a dict which is the value associated with a key `"layout"` at the root of the figure. If one of the parents is a list rather than a dict, a set of brackets is inserted in the path when referring to the attribute in the abstract, e.g. `"layout.annotations[].text"`. Finally, as explained below, the top-level "data" attribute defines a list of typed objects called "traces" with the schema dependent upon the type, and these attributes' paths are listed in the [Figure Reference](reference/index.md) as `"data[type=scatter].name"`.
Attributes are referred to in text and in the [Figure Reference](reference/graph_objects/index.md) by their full "path" i.e. the dot-delimited concatenation of their parents. For example `"layout.width"` refers to the attribute whose key is `"width"` inside a dict which is the value associated with a key `"layout"` at the root of the figure. If one of the parents is a list rather than a dict, a set of brackets is inserted in the path when referring to the attribute in the abstract, e.g. `"layout.annotations[].text"`. Finally, as explained below, the top-level "data" attribute defines a list of typed objects called "traces" with the schema dependent upon the type, and these attributes' paths are listed in the [Figure Reference](reference/graph_objects/index.md) as `"data[type=scatter].name"`.

The [`plotly.graph_objects` module contains an automatically-generated hierarchy of Python classes](graph-objects.md) which represent non-leaf attributes in the figure schema and provide a Pythonic API for them. When [manipulating a `plotly.graph_objects.Figure` object](creating-and-updating-figures.md), attributes can be set either directly using Python object attributes e.g. `fig.layout.title.font.family="Open Sans"` or using [update methods and "magic underscores"](creating-and-updating-figures.md#magic-underscore-notation) e.g. `fig.update_layout(title_font_family="Open Sans")`

When building a figure, it is *not necessary to populate every attribute* of every object. At render-time, [the JavaScript layer will compute default values](figure-introspection.md) for each required unspecified attribute, depending upon the ones that are specified, as documented in the [Figure Reference](reference/index.md). An example of this would be `layout.xaxis.range`, which may be specified explicitly, but if not will be computed based on the range of `x` values for every trace linked to that axis. The JavaScript layer will ignore unknown attributes or malformed values, although the `plotly.graph_objects` module provides Python-side validation for attribute values. Note also that if [the `layout.template` key is present (as it is by default)](templates.md) then default values will be drawn first from the contents of the template and only if missing from there will the JavaScript layer infer further defaults. The built-in template can be disabled by setting `layout.template="none"`.
When building a figure, it is *not necessary to populate every attribute* of every object. At render-time, [the JavaScript layer will compute default values](figure-introspection.md) for each required unspecified attribute, depending upon the ones that are specified, as documented in the [Figure Reference](reference/graph_objects/index.md). An example of this would be `layout.xaxis.range`, which may be specified explicitly, but if not will be computed based on the range of `x` values for every trace linked to that axis. The JavaScript layer will ignore unknown attributes or malformed values, although the `plotly.graph_objects` module provides Python-side validation for attribute values. Note also that if [the `layout.template` key is present (as it is by default)](templates.md) then default values will be drawn first from the contents of the template and only if missing from there will the JavaScript layer infer further defaults. The built-in template can be disabled by setting `layout.template="none"`.

### The Top-Level `data` Attribute

Expand DownExpand Up@@ -157,7 +157,7 @@ The following trace types are compatible with 2d-cartesian subplots via the `xax

### 3D, Polar, Ternary and Smith Trace Types and Subplots

Beyond 2D cartesian subplots, figures can include [three-dimensional cartesian subplots](3d-charts.md), [polar subplots](polar-chart.md), [ternary subplots](ternary-plots.md) and [smith subplots](smith-charts.md). The following trace types support attributes named `scene`, `polar`, `smith` or `ternary`, whose values must refer to corresponding objects in the layout portion of the figure i.e. `ternary="ternary2"` etc. Note that attributes such as `layout.scene` and `layout.ternary2` etc do not have to be explicitly defined, in which case default values will be inferred. Multiple traces of a compatible type can be placed on the same subplot.
Beyond 2D cartesian subplots, figures can include [three-dimensional cartesian subplots](/python/3d-charts/), [polar subplots](polar-chart.md), [ternary subplots](ternary-plots.md) and [smith subplots](smith-charts.md). The following trace types support attributes named `scene`, `polar`, `smith` or `ternary`, whose values must refer to corresponding objects in the layout portion of the figure i.e. `ternary="ternary2"` etc. Note that attributes such as `layout.scene` and `layout.ternary2` etc do not have to be explicitly defined, in which case default values will be inferred. Multiple traces of a compatible type can be placed on the same subplot.

The following trace types are compatible with 3D subplots via the `scene` attribute, which contains special [camera controls](3d-camera-controls.md):

Expand Down
2 changes: 1 addition & 1 deletiondoc/python/filled-area-tile-maps.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -141,7 +141,7 @@ fig.show()

The earlier examples using `go.Scattermap` use [Maplibre](https://maplibre.org/maplibre-gl-js/docs/) for rendering. This trace was introduced in Plotly.py 5.24 and is now the recommended way to draw filled areas on tile-based maps. There is also a trace that uses [Mapbox](https://docs.mapbox.com), called `go.Scattermapbox`.

To use the `Scattermapbox` trace type, in some cases you _may_ need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](mapbox-layers.md) documentation for more information.
To use the `Scattermapbox` trace type, in some cases you _may_ need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](/python/mapbox-layers/) documentation for more information.

Here's one of the earlier examples rewritten to use `Scattermapbox`.

Expand Down
4 changes: 2 additions & 2 deletionsdoc/python/graph-objects.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -50,7 +50,7 @@ The objects contained in the list which is the [value of the attribute `data` ar
Graph objects have several benefits compared to plain Python dictionaries:

1. Graph objects provide precise data validation. If you provide an invalid property name or an invalid property value as the key to a graph object, an exception will be raised with a helpful error message describing the problem. This is not the case if you use plain Python dictionaries and lists to build your figures.
2. Graph objects contain descriptions of each valid property as Python docstrings, with a [full API reference available](https://plotly.com/python-api-reference/). You can use these docstrings in the development environment of your choice to learn about the available properties as an alternative to consulting the online [Full Reference](/reference/).
2. Graph objects contain descriptions of each valid property as Python docstrings, with a [full API reference available](https://plotly.com/python-api-reference/). You can use these docstrings in the development environment of your choice to learn about the available properties as an alternative to consulting the online [Full Reference](/reference/graph_objects/index.md).
3. Properties of graph objects can be accessed using both dictionary-style key lookup (e.g. `fig["layout"]`) or class-style property access (e.g. `fig.layout`).
4. Graph objects support higher-level convenience functions for making updates to already constructed figures (`.update_layout()`, `.add_trace()` etc).
5. Graph object constructors and update methods accept "magic underscores" (e.g. `go.Figure(layout_title_text="The Title")` rather than `dict(layout=dict(title=dict(text="The Title")))`) for more compact code.
Expand All@@ -68,7 +68,7 @@ Note that the figures produced by Plotly Express **in a single function-call** a

The figures produced by Plotly Express can always be built from the ground up using graph objects, but this approach typically takes **5-100 lines of code rather than 1**.

Here is a simple example of how to produce the same figure object from the same data, once with Plotly Express and once without. Note that [Plotly Express functions](/python-api-reference/plotly.express.html) like [`px.bar()`](bar-charts.md) can accept a DataFrame as their first argument with column names passed to the `x` and `y` arguments, while [Graph Objects functions](/python-api-reference/plotly.graph_objects.html) like [`go.Bar()`](bar-charts.md#basic-bar-charts-with-plotlygraphobjects) require the data values to be passed directly to the `x` and `y` arguments as a tuple, list, NumPy array, or Pandas Series.
Here is a simple example of how to produce the same figure object from the same data, once with Plotly Express and once without. Note that [Plotly Express functions](/reference/plotly-express.md) like [`px.bar()`](bar-charts.md) can accept a DataFrame as their first argument with column names passed to the `x` and `y` arguments, while [Graph Objects functions](/reference/graph_objects/index.md) like [`go.Bar()`](bar-charts.md#basic-bar-charts-with-plotlygraphobjects) require the data values to be passed directly to the `x` and `y` arguments as a tuple, list, NumPy array, or Pandas Series.

The data in this example is in "long form" but [Plotly Express also accepts data in "wide form"](wide-form.md) and the line-count savings from Plotly Express over graph objects are comparable. More complex figures such as [sunbursts](sunburst-charts.md), [parallel coordinates](parallel-coordinates-plot.md), [facet plots](facet-plots.md) or [animations](animations.md) require many more lines of figure-specific graph objects code, whereas switching from one representation to another with Plotly Express usually involves changing just a few characters.

Expand Down
2 changes: 1 addition & 1 deletiondoc/python/graphing-multiple-chart-types.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -35,7 +35,7 @@ jupyter:

### Chart Types versus Trace Types

Plotly's [figure data structure](figure-structure.md) supports defining [subplots](subplots.md) of [various types](mixed-subplots.md) (e.g. [cartesian](axes.md), [polar](polar-chart.md), [3-dimensional](/3d-charts/), [maps](/maps/) etc) with attached traces of [various compatible types](figure-structure.md) (e.g. scatter, bar, choropleth, surface etc). This means that **Plotly figures are not constrained to representing a fixed set of "chart types"** such as scatter plots only or bar charts only or line charts only: any subplot can contain multiple traces of different types.
Plotly's [figure data structure](figure-structure.md) supports defining [subplots](subplots.md) of [various types](mixed-subplots.md) (e.g. [cartesian](axes.md), [polar](polar-chart.md), [3-dimensional](/python/3d-charts/), [maps](/python/maps/) etc) with attached traces of [various compatible types](figure-structure.md) (e.g. scatter, bar, choropleth, surface etc). This means that **Plotly figures are not constrained to representing a fixed set of "chart types"** such as scatter plots only or bar charts only or line charts only: any subplot can contain multiple traces of different types.


### Multiple Trace Types with Plotly Express
Expand Down
2 changes: 1 addition & 1 deletiondoc/python/hexbin-mapbox.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -37,7 +37,7 @@ jupyter:

This page details the use of a [figure factory](figure-factories.md). For more examples with Choropleth maps, see [this page](choropleth-maps.md).

In order to use mapbox styles that require a mapbox token, set the token with `plotly.express`. You can also use styles that do not require a mapbox token. See more information on [this page](mapbox-layers.md).
In order to use mapbox styles that require a mapbox token, set the token with `plotly.express`. You can also use styles that do not require a mapbox token. See more information on [this page](/python/mapbox-layers/).

```python
import plotly.figure_factory as ff
Expand Down
2 changes: 1 addition & 1 deletiondoc/python/horizontal-vertical-shapes.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -86,7 +86,7 @@ IFrame(snippet_url + 'horizontal-vertical-shapes', width='100%', height=1200)

#### Adding Text Annotations

[Text annotations](../text-and-annotations) can optionally be added to an autoshape
[Text annotations](text-and-annotations.md) can optionally be added to an autoshape
using the `annotation_text` keyword argument, and positioned using the `annotation_position` argument:

```python
Expand Down
2 changes: 1 addition & 1 deletiondoc/python/lines-on-tile-maps.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -133,7 +133,7 @@ fig.show()

The earlier examples using `px.line_map` and `go.Scattermap` use [Maplibre](https://maplibre.org/maplibre-gl-js/docs/) for rendering. These traces were introduced in Plotly.py 5.24 and are now the recommended way to draw lines on tile-based maps. There are also traces that use [Mapbox](https://docs.mapbox.com): `px.line_mapbox` and `go.Scattermapbox`

To plot on Mapbox maps with Plotly you _may_ need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](mapbox-layers.md) documentation for more information.
To plot on Mapbox maps with Plotly you _may_ need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](/python/mapbox-layers/) documentation for more information.

To draw a line on your map, you either can use [`px.line_mapbox`](reference/plotly-express.md#plotly.express.line_mapbox) in Plotly Express, or [`Scattermapbox`](reference/graph_objects/Scattermapbox.md) traces. Below we show you how to draw a line on Mapbox using Plotly Express.

Expand Down
2 changes: 1 addition & 1 deletiondoc/python/plotly-express.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -70,7 +70,7 @@ The Plotly Express API in general offers the following features:

* **A single entry point into `plotly`**: just `import plotly.express as px` and get access to [all the plotting functions](reference/plotly-express.md), plus [built-in demo datasets under `px.data`](reference/data.md) and [built-in color scales and sequences under `px.color`](reference/colors.md). Every PX function returns a `plotly.graph_objects.Figure` object, so you can edit it using all the same methods like [`update_layout` and `add_trace`](creating-and-updating-figures.md#updating-figures).
* **Sensible, Overridable Defaults**: PX functions will infer sensible defaults wherever possible, and will always let you override them.
* **Flexible Input Formats**: PX functions [accept input in a variety of formats](px-arguments.md), from `list`s and `dict`s to [long-form or wide-form `DataFrame`s](wide-form.md) to [`numpy` arrays and `xarrays`](imshow.md) to [GeoPandas `GeoDataFrames`](maps.md).
* **Flexible Input Formats**: PX functions [accept input in a variety of formats](px-arguments.md), from `list`s and `dict`s to [long-form or wide-form `DataFrame`s](wide-form.md) to [`numpy` arrays and `xarrays`](imshow.md) to [GeoPandas `GeoDataFrames`](/python/maps/).
* **Automatic Trace and Layout configuration**: PX functions will create one [trace](figure-structure.md) per animation frame for each unique combination of data values mapped to discrete color, symbol, line-dash, facet-row and/or facet-column. Traces' [`legendgroup` and `showlegend` attributes](legend.md) are set such that only one legend item appears per unique combination of discrete color, symbol and/or line-dash. Traces are automatically linked to a correctly-configured [subplot of the appropriate type](figure-structure.md).
* **Automatic Figure Labelling**: PX functions [label axes, legends and colorbars](figure-labels.md) based in the input `DataFrame` or `xarray`, and provide [extra control with the `labels` argument](styling-plotly-express.md).
* **Automatic Hover Labels**: PX functions populate the hover-label using the labels mentioned above, and provide [extra control with the `hover_name` and `hover_data` arguments](hover-text-and-formatting.md).
Expand Down
2 changes: 1 addition & 1 deletiondoc/python/tile-county-choropleth.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -224,7 +224,7 @@ fig.show()

The earlier examples using `px.choropleth_map` and `go.Choroplethmap` use [Maplibre](https://maplibre.org/maplibre-gl-js/docs/) for rendering. These traces were introduced in Plotly.py 5.24 and are now the recommended way to create tile-based choropleth maps. There are also choropleth traces that use [Mapbox](https://docs.mapbox.com): `px.choropleth_mapbox` and `go.Choroplethmapbox`

To plot on Mapbox maps with Plotly you _may_ need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](mapbox-layers.md) documentation for more information.
To plot on Mapbox maps with Plotly you _may_ need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](/python/mapbox-layers/) documentation for more information.

Here's an exmaple of using the Mapbox Light base map, which requires a free token.

Expand Down
2 changes: 1 addition & 1 deletiondoc/python/tile-scatter-maps.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -298,7 +298,7 @@ fig.show()

The earlier examples using `px.scatter_map` and `go.Scattermap` use [Maplibre](https://maplibre.org/maplibre-gl-js/docs/) for rendering. These traces were introduced in Plotly.py 5.24 and are now the recommended way to create scatter plots on tile-based maps. There are also traces that use [Mapbox](https://docs.mapbox.com): `px.scatter_mapbox` and `go.Scattermapbox`

To plot on Mapbox maps with Plotly you _may_ need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](mapbox-layers.md) documentation for more information.
To plot on Mapbox maps with Plotly you _may_ need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](/python/mapbox-layers/) documentation for more information.

Here's the first example rewritten to use `px.scatter_mapbox`.

Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp