You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***进入 `plotly`的单一入口**: just`import plotly.express as px`and get access to [all the plotting functions](https://plotly.com/python-api-reference/plotly.express.html), plus [built-in demo datasets under `px.data`](https://plotly.com/python-api-reference/generated/plotly.data.html#module-plotly.data)and [built-in color scales and sequences under `px.color`](https://plotly.com/python-api-reference/generated/plotly.colors.html#module-plotly.colors). 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`](https://plotly.com/python/creating-and-updating-figures/#updating-figures).
78
-
***Sensible, Overridable Defaults**: PX functions will infer sensible defaults wherever possible, and will always let you override them.
79
-
***Flexible Input Formats**: PX functions [accept input in a variety of formats](/python/px-arguments/), from`list`s and`dict`s to [long-form or wide-form Pandas `DataFrame`s](/python/wide-form/) to [`numpy`arrays and `xarrays`](/python/imshow/) to[GeoPandas `GeoDataFrames`](/python/maps/).
***Automatic Trace and Layout configuration**: PX functions will create one [trace](/python/figure-structure) 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](https://plotly.com/python/legend/) 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](/python/figure-structure).
81
81
***Automatic Figure Labelling**: PX functions [label axes, legends and colorbars](https://plotly.com/python/figure-labels/) based in the input `DataFrame` or `xarray`, and provide [extra control with the `labels` argument](/python/styling-plotly-express/).
82
82
***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](/python/hover-text-and-formatting/).
0 commit comments