![]() ![]() Note that the recommended alternative to working with Python dictionaries is to create entire figures at once using Plotly Express and to manipulate the resulting aph_objects.Figure objects as described in this page, wherever possible, rather than to assemble figures bottom-up from underlying graph objects. The aph_objects module provides an automatically-generated hierarchy of classes called "graph objects" that may be used to represent figures, with a top-level class aph_objects.Figure. It contains a single bar trace and a title. ![]() The fig dictionary in the example below describes a figure. ![]() Figures As Dictionaries ¶Īt a low level, figures can be represented as dictionaries and displayed using functions from the plotly.io module. This page exists to document the structure of the data structure that these objects represent for users who wish to understand more about how to customize them, or assemble them from other aph_objects components. Note: the recommended entry-point into the plotly package is the high-level plotly.express module, also known as Plotly Express, which consists of Python functions which return fully-populated aph_objects.Figure objects. Figures can be represented in Python either as dicts or as instances of the aph_objects.Figure class, and are serialized as text in JavaScript Object Notation (JSON) before being passed to Plotly.js. The rendering process uses the Plotly.js JavaScript library under the hood although Python developers using this module very rarely need to interact with the Javascript library directly, if ever. charts, plots, maps and diagrams) represented by data structures also referred to as figures. The plotly Python package exists to create, manipulate and render graphical figures (i.e. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |