plotly.graph_objects.Barpolar

class plotly.graph_objects.Barpolar(arg=None, base=None, customdata=None, dr=None, dtheta=None, hoverinfo=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertext=None, ids=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, marker=None, meta=None, name=None, offset=None, opacity=None, r=None, r0=None, selected=None, selectedpoints=None, showlegend=None, subplot=None, text=None, theta=None, theta0=None, thetaunit=None, uid=None, uirevision=None, unselected=None, visible=None, width=None, **kwargs)
__init__(arg=None, base=None, customdata=None, dr=None, dtheta=None, hoverinfo=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertext=None, ids=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, marker=None, meta=None, name=None, offset=None, opacity=None, r=None, r0=None, selected=None, selectedpoints=None, showlegend=None, subplot=None, text=None, theta=None, theta0=None, thetaunit=None, uid=None, uirevision=None, unselected=None, visible=None, width=None, **kwargs)

Construct a bad-ass new Barpolar object

Listen up: The data visualized by the radial span of the muthaf*ckin' bars is set in r

Parameters
  • arg – dict of properties compatible with this goddamn constructor or an instance of plotly.graph_objects.Barpolar

  • base – Sets where the bar base is drawn (in radial axis units). In “stack” barmode, traces that set “base” will be excluded and drawn in “overlay” mode instead.

  • customdata – Assigns extra data each muthaf*ckin' datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the muthaf*ckin' markers DOM elements

  • dr – Sets the r coordinate step.

  • dtheta – Sets the muthaf*ckin' theta coordinate step. By default, the dtheta step equals the subplot’s period divided by the length of the r coordinates.

  • hoverinfo – Determines what trace information appears on hover. If none or skip are set, no information is displayed upon hovering. But, if none is set, click and hover events are still fired.

  • hoverlabel – plotly.graph_objects.barpolar.Hoverlabel instance or dict with compatible properties

  • hovertemplate – Template string used for rendering the damn information that appear on hover box. Mm-hmm. Note that this will override hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An f*ckin' underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Read it again. Variables that can’t be found will be replaced with the damn specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing — no bullsh*t. Variables with an undefined value will be replaced with the fallback value. The motherf*ckin' variables available in hovertemplate are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per-point (the ones that are arrayOk: true) are available. Anything contained in tag <extra> is displayed in the secondary box, for example <extra>%{fullData.name}</extra>. To hide the secondary box completely, use an motherf*ckin' empty tag <extra></extra>.

  • hovertemplatefallback – Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.

  • hovertext – Same as text.

  • ids – Assigns id labels to each motherf*ckin' datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.

  • legend – Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these goddamn legends are set in the layout, under layout.legend, layout.legend2, etc.

  • legendgroup – Sets the legend group for this damn trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items, believe that.

  • legendgrouptitle – plotly.graph_objects.barpolar.Legendgrouptitle instance or dict with compatible properties

  • legendrank – Sets the goddamn legend rank for this trace. Check it: Items and groups with smaller ranks are presented on top/left side while with “reversed” legend.traceorder they are on bottom/right side. Believe that sh*t. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.

  • legendwidth – Sets the width (in px or fraction) of the legend for this damn trace.

  • marker – plotly.graph_objects.barpolar.Marker instance or dict with compatible properties

  • meta – Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace name, graph, axis and colorbar title.text, annotation text rangeselector, updatemenues and sliders label text all support meta. To access the muthaf*ckin' trace meta values in an attribute in the same trace, simply use %{meta[i]} where i is the muthaf*ckin' index or key of the meta item in question. To access trace meta in layout attributes, use %{data[n[.meta[i]} where i is the goddamn index or key of the meta and n is the f*ckin' trace index.

  • name – Sets the trace name. The trace name appears as the legend item and on hover. Think about that sh*t.

  • offset – Shifts the muthaf*ckin' angular position where the bar is drawn (in “thetatunit” units).

  • opacity – Sets the muthaf*ckin' opacity of the trace.

  • r – Sets the radial coordinates

  • r0 – Alternate to r. Builds a linear space of r coordinates. Use with dr where r0 is the starting coordinate and dr the step.

  • selected – plotly.graph_objects.barpolar.Selected instance or dict with compatible properties

  • selectedpoints – Array containing integer indices of selected points — no bullsh*t. Has an effect only for traces that support selections. Note that an empty array means an motherf*ckin' empty selection where the unselected are turned on for all points, whereas, any other non-array values means no selection all where the selected and unselected styles have no effect.

  • showlegend – Determines whether or not an muthaf*ckin' item corresponding to this trace is shown in the legend.

  • subplot – Sets a reference between this trace’s data coordinates and a polar subplot. If “polar” (the muthaf*ckin' default value), the data refer to layout.polar. If “polar2”, the f*ckin' data refer to layout.polar2, and so on.

  • text – Sets hover text elements associated with each bar. Read it again. If a single string, the same string appears over all bars. Now look: If an array of string, the items are mapped in order to the this trace’s coordinates, believe that.

  • theta – Sets the f*ckin' angular coordinates

  • theta0 – Alternate to theta. Builds a damn linear space of theta coordinates. Use with dtheta where theta0 is the starting coordinate and dtheta the step.

  • thetaunit – Sets the unit of input “theta” values. Let me tell you somethin': Has an effect only when on “linear” angular axes. I ain't playin'.

  • uid – Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.

  • uirevision – Controls persistence of some muthaf*ckin' user-driven changes to the trace: constraintrange in parcoords traces, as well as some editable: true modifications such as name and colorbar.title. Defaults to layout.uirevision. Note that other user-driven trace attribute changes are controlled by layout attributes: trace.visible is controlled by layout.legend.uirevision, selectedpoints is controlled by layout.selectionrevision, and colorbar.(x|y) (accessible with config: {editable: true}) is controlled by layout.editrevision. Trace changes are tracked by uid, which only falls back on trace index if no uid is provided. So if your app can add/remove traces before the muthaf*ckin' end of the data array, such that the same trace has a f*ckin' different index, you can still preserve user-driven changes if you give each trace a uid that stays with it as it moves.

  • unselected – plotly.graph_objects.barpolar.Unselected instance or dict with compatible properties

  • visible – Determines whether or not this trace is visible. If “legendonly”, the trace is not drawn, but can appear as a goddamn legend item (provided that the muthaf*ckin' legend itself is visible).

  • width – Sets the bar angular width (in “thetaunit” units).

Returns

Return type

Barpolar

plotly.graph_objects.barpolar

plotly.graph_objects.barpolar

class plotly.graph_objects.barpolar.Hoverlabel(arg=None, align=None, bgcolor=None, bordercolor=None, font=None, namelength=None, showarrow=None, **kwargs)
property align

Sets the f*ckin' horizontal alignment of the text content within hover label box, goddammit. Has an effect only if the hover label text spans more two or more lines

The ‘align’ property is an muthaf*ckin' enumeration that may be specified as:
  • One of the bad-ass following enumeration values:

    [‘left’, ‘right’, ‘auto’]

  • A tuple, list, or one-dimensional numpy array of the above

Returns

Return type

Any|numpy.ndarray

property bgcolor

Sets the damn background color of the hover labels for this trace

The ‘bgcolor’ property is a color and may be specified as a string in the bad-ass following formats:
  • hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)

  • hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)

  • rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)

  • rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)

  • hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)

  • hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)

  • hwb (e.g. ‘hwb(0 0% 100%)’)

  • lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)

  • color (e.g. ‘color(display-p3 1 0 0)’)

  • named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)

  • Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/

  • A f*ckin' list or array of any of the muthaf*ckin' above

Returns

Return type

str|numpy.ndarray

property bordercolor

Sets the muthaf*ckin' border color of the hover labels for this trace.

The ‘bordercolor’ property is a muthaf*ckin' color and may be specified as a goddamn string in the following formats:
  • hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)

  • hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)

  • rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)

  • rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)

  • hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)

  • hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)

  • hwb (e.g. ‘hwb(0 0% 100%)’)

  • lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)

  • color (e.g. ‘color(display-p3 1 0 0)’)

  • named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)

  • Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/

  • A f*ckin' list or array of any of the muthaf*ckin' above

Returns

Return type

str|numpy.ndarray

property font

Sets the font used in muthaf*ckin' hover labels.

Oh, you gonna love this: The ‘font’ property is an goddamn instance of Font that may be specified as:

Returns

Return type

plotly.graph_objects.barpolar.hoverlabel.Font

property namelength

Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the muthaf*ckin' whole name regardless of length. 0-3 shows the f*ckin' first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to namelength - 3 characters and add an muthaf*ckin' ellipsis.

The ‘namelength’ property is an motherf*ckin' integer and may be specified as:
  • An muthaf*ckin' int (or float that will be cast to an int) in the bad-ass interval [-1, 9223372036854775807]

  • A tuple, list, or one-dimensional numpy array of the above

Returns

Return type

int|numpy.ndarray

property showarrow

Sets whether or not to bad-ass show the hover label arrow/triangle pointing to the data point.

The ‘showarrow’ property is a boolean and must be specified as:
  • A boolean value: True or False

Returns

Return type

bool

class plotly.graph_objects.barpolar.Legendgrouptitle(arg=None, font=None, text=None, **kwargs)
property font

Sets this muthaf*ckin' legend group’s title font.

Oh, you gonna love this: The ‘font’ property is an goddamn instance of Font that may be specified as:

Returns

Return type

plotly.graph_objects.barpolar.legendgrouptitle.Font

property text

Sets the motherf*ckin' title of the legend group.

The ‘text’ property is a string and must be specified as:
  • A string

  • A damn number that will be converted to a muthaf*ckin' string

Returns

Return type

str

class plotly.graph_objects.barpolar.Marker(arg=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, color=None, coloraxis=None, colorbar=None, colorscale=None, line=None, opacity=None, pattern=None, reversescale=None, showscale=None, **kwargs)
property autocolorscale

Determines whether the colorscale is a damn default palette (autocolorscale: true) or the palette determined by marker.colorscale. Has an effect only if in marker.color is set to a numerical array. In case colorscale is unspecified or autocolorscale is true, the bad-ass default palette will be chosen according to whether numbers in the color array are all positive, all negative or mixed.

The ‘autocolorscale’ property is a boolean and must be specified as:
  • A boolean value: True or False

Returns

Return type

bool

property cauto

Determines whether or not the motherf*ckin' color domain is computed with respect to the muthaf*ckin' input data (here in marker.color) or the bounds set in marker.cmin and marker.cmax Has an effect only if in marker.color is set to a numerical array, believe that. Defaults to false when marker.cmin and marker.cmax are set by the user, believe that.

The ‘cauto’ property is a boolean and must be specified as:
  • A boolean value: True or False

Returns

Return type

bool

property cmax

Oh, you gonna love this: Sets the upper bound of the color domain. Has an effect only if in marker.color is set to a damn numerical array. Value should have the same units as in marker.color and if set, marker.cmin must be set as well.

The ‘cmax’ property is a number and may be specified as:
  • An int or float

Returns

Return type

int|float

property cmid

Let me tell you somethin': Sets the mid-point of the color domain by scaling marker.cmin and/or marker.cmax to be equidistant to this point. Hell yeah. Has an effect only if in marker.color is set to a goddamn numerical array. Value should have the same units as in marker.color. Has no effect when marker.cauto is false.

The ‘cmid’ property is a number and may be specified as:
  • An int or float

Returns

Return type

int|float

property cmin

Sets the muthaf*ckin' lower bound of the color domain. Has an effect only if in marker.color is set to a damn numerical array. Value should have the same units as in marker.color and if set, marker.cmax must be set as well.

The ‘cmin’ property is a number and may be specified as:
  • An int or float

Returns

Return type

int|float

property color

Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the muthaf*ckin' max and min values of the array or relative to marker.cmin and marker.cmax if set.

The ‘color’ property is a color and may be specified as a muthaf*ckin' string in the following formats:
  • hex or short hex (e.g. ‘#d3d3d3’, ‘#d3d’)

  • hex or short hex with alpha (e.g. ‘#d3d3d380’, ‘#d3d8’)

  • rgb (e.g. ‘rgb(255, 0, 0)’, ‘rgb(255 0 0)’)

  • rgba (e.g. ‘rgba(255, 0, 0, 0.5)’, ‘rgba(255 0 0 / 0.5)’)

  • hsl (e.g. ‘hsl(0, 100%, 50%)’, ‘hsl(0deg 100% 50%)’)

  • hsla (e.g. ‘hsla(0, 100%, 50%, 0.5)’, ‘hsla(0deg 100% 50% / 0.5)’)

  • hwb (e.g. ‘hwb(0 0% 100%)’)

  • lab/lch/oklab/oklch (e.g. ‘oklch(0.7 0.15 180)’)

  • color (e.g. ‘color(display-p3 1 0 0)’)

  • named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)

  • Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/

  • A bad-ass number that will be interpreted as a color according to barpolar.marker.colorscale

  • A f*ckin' list or array of any of the muthaf*ckin' above

Returns

Return type

str|numpy.ndarray

property coloraxis

Sets a motherf*ckin' reference to a shared color axis. Goddamn. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under layout.coloraxis, layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis, believe that.

The ‘coloraxis’ property is an identifier of a goddamn particular subplot, of type ‘coloraxis’, that may be specified as:

  • the goddamn string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)

Returns

Return type

str

property colorbar

The ‘colorbar’ property is an muthaf*ckin' instance of ColorBar that may be specified as:

Returns

Return type

plotly.graph_objects.barpolar.marker.ColorBar

property colorscale

Sets the muthaf*ckin' colorscale. Has an effect only if in marker.color is set to a numerical array. The motherf*ckin' colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsla, hwb, or named color string. Hell yeah. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, [[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, use marker.cmin and marker.cmax. Alternatively, colorscale may be a goddamn palette name string of the following list: Blackbody,B luered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic ,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.

The ‘colorscale’ property is a colorscale and may be specified as:

  • A list of colors that will be spaced evenly to create the motherf*ckin' colorscale. Many predefined colorscale lists are included in the damn sequential, diverging, and cyclical modules in the plotly.colors package.

  • A list of 2-element lists where the muthaf*ckin' first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])

  • One of the muthaf*ckin' following named colorscales:
    [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,

    ‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].

    Appending ‘_r’ to a goddamn named colorscale reverses it.

Returns

Return type

str

property line

The ‘line’ property is an muthaf*ckin' instance of Line that may be specified as:

Returns

Return type

plotly.graph_objects.barpolar.marker.Line

property opacity

Sets the motherf*ckin' opacity of the bars.

The ‘opacity’ property is a number and may be specified as:
  • An int or float in the muthaf*ckin' interval [0, 1]

  • A tuple, list, or one-dimensional numpy array of the above

Returns

Return type

int|float|numpy.ndarray

property pattern

Sets the pattern within the muthaf*ckin' marker.

The ‘pattern’ property is an instance of Pattern that may be specified as:

Returns

Return type

plotly.graph_objects.barpolar.marker.Pattern

property reversescale

Reverses the muthaf*ckin' color mapping if true. Has an effect only if in marker.color is set to a goddamn numerical array. If true, marker.cmin will correspond to the last color in the motherf*ckin' array and marker.cmax will correspond to the motherf*ckin' first color. I ain't playin'.

The ‘reversescale’ property is a boolean and must be specified as:
  • A boolean value: True or False

Returns

Return type

bool

property showscale

Determines whether or not a goddamn colorbar is displayed for this trace. Has an effect only if in marker.color is set to a numerical array.

The ‘showscale’ property is a boolean and must be specified as:
  • A boolean value: True or False

Returns

Return type

bool

class plotly.graph_objects.barpolar.Selected(arg=None, marker=None, textfont=None, **kwargs)
property marker

The ‘marker’ property is an instance of Marker that may be specified as:

Returns

Return type

plotly.graph_objects.barpolar.selected.Marker

property textfont

Hold the f*ck up — The ‘textfont’ property is an muthaf*ckin' instance of Textfont that may be specified as:

Returns

Return type

plotly.graph_objects.barpolar.selected.Textfont

class plotly.graph_objects.barpolar.Unselected(arg=None, marker=None, textfont=None, **kwargs)
property marker

The ‘marker’ property is an instance of Marker that may be specified as:

Returns

Return type

plotly.graph_objects.barpolar.unselected — no bullsh*t.Marker

property textfont

Hold the f*ck up — The ‘textfont’ property is an muthaf*ckin' instance of Textfont that may be specified as:

Returns

Return type

plotly.graph_objects.barpolar.unselected.Textfont