MCPcopy Index your code
hub / github.com/plotly/plotly.py / _get_cell_str

Function _get_cell_str

plotly/_subplots.py:1293–1300  ·  view source on GitHub ↗
(r, c, subplot_refs)

Source from the content-addressed store, hash-verified

1291
1292 # Define cell string as function of (r, c) and grid_ref
1293 def _get_cell_str(r, c, subplot_refs):
1294 layout_keys = sorted({k for ref in subplot_refs for k in ref.layout_keys})
1295
1296 ref_str = ",".join(layout_keys)
1297
1298 # Replace yaxis2 -> y2
1299 ref_str = ref_str.replace("axis", "")
1300 return "({r},{c}) {ref}".format(r=r + 1, c=c + 1, ref=ref_str)
1301
1302 # Find max len of _cell_str, add define a padding function
1303 cell_len = (

Callers 1

_build_grid_strFunction · 0.85

Calls 2

replaceMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected