Skip to content

Commit 254cf13

Browse files
committed
sub 'grid_str' -> 'grid_ref':
- 'grid_ref' stores tuples of axis (x{},y{}) one per grid cell - thinking about using 'grid_ref' for fig._append_trace
1 parent dd16fa2 commit 254cf13

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

plotly/tools.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -784,12 +784,10 @@ def _checks(item, defaults):
784784
(height + vertical_spacing) * r)
785785
for c in col_seq]
786786
for r in row_seq]
787-
# Initialize the grid's string representation
788-
if print_grid:
789-
grid_str = [['' for column in range(columns)] for row in range(rows)]
790-
if insets:
791-
insets_str = ['' for inset in range(len(insets))]
792787

788+
# [grid_ref] Initialize the grid and insets' axis-reference lists
789+
grid_ref = [[None for c in range(cols)] for r in range(rows)]
790+
insets_ref = [None for inset in range(len(insets))] if insets else None
793791
fig = dict(layout=graph_objs.Layout()) # init layout object
794792

795793
# Function handling logic around 2d axis labels

0 commit comments

Comments
 (0)