@@ -3183,7 +3183,7 @@ def interactive_plots(cls):
31833183 >>> table.plot('days') # doctest: +SKIP
31843184 <plotly interactive line graph with days as x-axis and lines for price and projection>
31853185 """
3186- global _INTERACTIVE_PLOTS
3186+
31873187 _INTERACTIVE_PLOTS = True
31883188 if go is None or make_subplots is None :
31893189 cls ._import_plotly ()
@@ -3217,7 +3217,7 @@ def static_plots(cls):
32173217 >>> table.plot('days') # doctest: +SKIP
32183218 <matplotlib line graph with days as x-axis and lines for price and projection>
32193219 """
3220- global _INTERACTIVE_PLOTS
3220+
32213221 _INTERACTIVE_PLOTS = False
32223222
32233223 def plot (self , column_for_xticks = None , select = None , overlay = True , width = None , height = None , ** vargs ):
@@ -3265,7 +3265,7 @@ def plot(self, column_for_xticks=None, select=None, overlay=True, width=None, he
32653265 >>> table.plot('days', 'price') # doctest: +SKIP
32663266 <line graph with days as x-axis and line for price>
32673267 """
3268- global _INTERACTIVE_PLOTS
3268+
32693269 if _INTERACTIVE_PLOTS :
32703270 return self .iplot (column_for_xticks , select , overlay , width , height , ** vargs )
32713271
@@ -3586,7 +3586,7 @@ def bar(self, column_for_categories=None, select=None, overlay=True, width=None,
35863586 See http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.bar
35873587 for additional arguments that can be passed into vargs.
35883588 """
3589- global _INTERACTIVE_PLOTS
3589+
35903590 if _INTERACTIVE_PLOTS :
35913591 show = vargs .pop ('show' , True )
35923592 return self .ibar (
@@ -3780,7 +3780,7 @@ def barh(self, column_for_categories=None, select=None, overlay=True, width=None
37803780 >>> t.barh('Furniture', make_array(1, 2)) # doctest: +SKIP
37813781 <bar graph with furniture as categories and bars for count and price>
37823782 """
3783- global _INTERACTIVE_PLOTS
3783+
37843784 if _INTERACTIVE_PLOTS :
37853785 show = vargs .pop ('show' , True )
37863786 return self .ibarh (
@@ -4015,7 +4015,7 @@ def scatter(self, column_for_x, select=None, overlay=True, fit_line=False,
40154015 >>> table.scatter('x', fit_line=True) # doctest: +SKIP
40164016 <scatterplot of values in y and z on x with lines of best fit>
40174017 """
4018- global _INTERACTIVE_PLOTS
4018+
40194019 if _INTERACTIVE_PLOTS :
40204020 return self .iscatter (
40214021 column_for_x = column_for_x ,
@@ -4404,7 +4404,7 @@ def scatter3d(self, column_for_x, column_for_y, select=None, overlay=True, fit_l
44044404 <plotly 3D scatterplot of values in z1 on x and y>
44054405 <plotly 3D scatterplot of values in z2 on x and y
44064406 """
4407- global _INTERACTIVE_PLOTS
4407+
44084408
44094409 # can't use scatter3d if not interactive mode; just a wrapper for iscatter3d
44104410 if not _INTERACTIVE_PLOTS :
@@ -5355,7 +5355,7 @@ def hist(self, *columns, overlay=True, bins=None, bin_column=None, unit=None, co
53555355 raise ValueError ("You can't specify both normed and density. "
53565356 "Use one or the other." )
53575357
5358- global _INTERACTIVE_PLOTS
5358+
53595359 if _INTERACTIVE_PLOTS :
53605360 if "shade_split" not in vargs :
53615361 vargs ["shade_split" ] = "split"
0 commit comments