@@ -921,20 +921,43 @@ def __init__(self, *args, **kwargs):
921
921
Figure .__init__ = __init__ # override method!
922
922
923
923
def print_grid (self ):
924
+ """Print a visual layout of the figure's axes arrangement.
925
+
926
+ This is only valid for figures that are created
927
+ with plotly.tools.make_subplots.
928
+ """
924
929
try :
925
930
grid_str = self ._grid_str
926
931
except KeyError :
927
- raise Exception ("Use tools.make_subplots "
932
+ raise Exception ("Use plotly. tools.make_subplots "
928
933
"to create a subplot grid." )
929
934
print (grid_str )
930
935
Figure .print_grid = print_grid
931
936
932
937
def append_trace (self , trace , row , col ):
938
+ """ Helper function to add a data traces to your figure
939
+ that is bound to axes at the row, col index.
940
+
941
+ The row, col index is generated from figures created with
942
+ plotly.tools.make_subplots and can be viewed with Figure.print_grid.
943
+
944
+ Arguments:
945
+
946
+ trace (plotly trace object):
947
+ The data trace to be bound.
948
+
949
+ row (int):
950
+ Subplot row index on the subplot grid (see Figure.print_grid)
951
+
952
+ col (int):
953
+ Subplot column index on the subplot grid (see Figure.print_grid)
954
+
955
+ """
933
956
try :
934
957
grid_ref = self ._grid_ref
935
958
except KeyError :
936
959
raise Exception ("In order to use Figure.append_trace, "
937
- "you must first use tools.make_subplots "
960
+ "you must first use plotly. tools.make_subplots "
938
961
"to create a subplot grid." )
939
962
if row <= 0 :
940
963
raise Exception ("Row value is out of range. "
0 commit comments