@@ -921,20 +921,43 @@ def __init__(self, *args, **kwargs):
921921 Figure .__init__ = __init__ # override method!
922922
923923 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+ """
924929 try :
925930 grid_str = self ._grid_str
926931 except KeyError :
927- raise Exception ("Use tools.make_subplots "
932+ raise Exception ("Use plotly. tools.make_subplots "
928933 "to create a subplot grid." )
929934 print (grid_str )
930935 Figure .print_grid = print_grid
931936
932937 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+ """
933956 try :
934957 grid_ref = self ._grid_ref
935958 except KeyError :
936959 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 "
938961 "to create a subplot grid." )
939962 if row <= 0 :
940963 raise Exception ("Row value is out of range. "
0 commit comments