ptvis.attach_polar_bar_cells

ptvis.attach_polar_bar_cells(fig, elements, radii, radius_min=None, radius_max=None, hole_diameter=0.0, hole_texts=None, texts=None, text_colorway=None, colors=None, color_conversion=None, color_guide=None, tooltip=None, labels=None, formats=None, table_layout=None, row=None, col=None)[source]

Attach the periodic table with polar bar chart cells.

Parameters:
  • fig (plotly.graph_objects.Figure) – Figure object to which the periodic table is attached.

  • elements (series-like of ptvis.Element) – Chemical elements where sectors are drawn.

  • radii (series-like of float) – Values determining radii of sectors.

  • radius_min (float, optional) – Value of the radii argument corresponding to the hole radius. If not given, the smaller of zero and the minimum of the argument is used.

  • radius_max (float, optional) – Value of the radii argument corresponding to the largest possible cell radius. If not given, the larger of zero and the maximum of the argument is used.

  • hole_diameter (float, optional) – Diameter of a hole of a cell relative to the largest possible cell diameter.

  • hole_texts (mapping, optional) – Texts written in cell holes.

  • texts (series-like of str, optional) – Texts of sectors.

  • text_colorway (collection of str, optional) – Candidates for text colors. A color of the highest contrast ratio to a sector color is selected.

  • colors (series-like, optional) – Values determining colors of sectors.

  • color_conversion (ptvis.color.BaseColorConversion, optional) – Conversion from the colors argument to colors. If not given, use a ptvis.color.ContinuousColorConversion object for a numerical colors argument and a ptvis.color.CategoricalColorConversion object for a non-numerical colors argument.

  • color_guide (mapping, optional) – Attributes of a color guide. If not given, a color guide is not added.

  • tooltip (mapping, optional) – Tooltip contents. The key is a label of data and the value is bool or series-like. The value of bool controls whether an item is shown. The series-like value is extra data.

  • labels (mapping, optional) – Labels of data. The key is a default label.

  • formats (mapping, optional) – Formats of data. The key is a default label of data.

  • table_layout (ptvis.layouts.BaseTableLayout, optional) – Layout of the periodic table.

  • row (int, optional) – Row where the periodic table is attached.

  • col (int, optional) – Column where the periodic table is attached.