@@ -167,7 +167,7 @@ def __init__(self, data, kind=None, by=None, subplots=False, sharex=True,
167
167
figsize = None , grid = True , legend = True , rot = None ,
168
168
ax = None , fig = None , title = None , xlim = None , ylim = None ,
169
169
xticks = None , yticks = None ,
170
- sort_columns = True , fontsize = None , ** kwds ):
170
+ sort_columns = False , fontsize = None , ** kwds ):
171
171
172
172
self .data = data
173
173
self .by = by
@@ -362,13 +362,22 @@ def _get_xticks(self):
362
362
363
363
return x
364
364
365
+ def _get_plot_function (self ):
366
+ if self .logy :
367
+ plotf = self .plt .Axes .semilogy
368
+ elif self .logx :
369
+ plotf = self .plt .Axes .semilogx
370
+ elif self .loglog :
371
+ plotf = self .plt .Axes .loglog
372
+ else :
373
+ plotf = self .plt .Axes .plot
374
+
375
+ return plotf
376
+
365
377
class KdePlot (MPLPlot ):
366
378
def __init__ (self , data , ** kwargs ):
367
379
MPLPlot .__init__ (self , data , ** kwargs )
368
380
369
- def _get_plot_function (self ):
370
- return self .plt .Axes .plot
371
-
372
381
def _make_plot (self ):
373
382
from scipy .stats import gaussian_kde
374
383
plotf = self ._get_plot_function ()
@@ -412,18 +421,6 @@ def has_ts_index(self):
412
421
return has_freq or has_inferred
413
422
return False
414
423
415
- def _get_plot_function (self ):
416
- if self .logy :
417
- plotf = self .plt .Axes .semilogy
418
- elif self .logx :
419
- plotf = self .plt .Axes .semilogx
420
- elif self .loglog :
421
- plotf = self .plt .Axes .loglog
422
- else :
423
- plotf = self .plt .Axes .plot
424
-
425
- return plotf
426
-
427
424
def _make_plot (self ):
428
425
# this is slightly deceptive
429
426
if self .use_index and self .has_ts_index :
@@ -492,7 +489,7 @@ def _make_ts_plot(self, data, **kwargs):
492
489
tsplot (data [col ], plotf , ax = ax , label = label , ** kwargs )
493
490
ax .grid (self .grid )
494
491
495
- self .fig .subplots_adjust (wspace = 0 , hspace = 0 )
492
+ # self.fig.subplots_adjust(wspace=0, hspace=0)
496
493
497
494
498
495
def _post_plot_logic (self ):
@@ -595,7 +592,7 @@ def _make_plot(self):
595
592
ax .legend (patches , labels , loc = 'best' ,
596
593
title = self .legend_title )
597
594
598
- self .fig .subplots_adjust (top = 0.8 , wspace = 0 , hspace = 0 )
595
+ # self.fig.subplots_adjust(top=0.8, wspace=0, hspace=0)
599
596
600
597
def _post_plot_logic (self ):
601
598
for ax in self .axes :
@@ -629,7 +626,7 @@ def plot_frame(frame=None, subplots=False, sharex=True, sharey=False,
629
626
xlim = None , ylim = None , logy = False ,
630
627
xticks = None , yticks = None ,
631
628
kind = 'line' ,
632
- sort_columns = True , fontsize = None , ** kwds ):
629
+ sort_columns = False , fontsize = None , ** kwds ):
633
630
"""
634
631
Make line or bar plot of DataFrame's series with the index on the x-axis
635
632
using matplotlib / pylab.
@@ -646,7 +643,7 @@ def plot_frame(frame=None, subplots=False, sharex=True, sharey=False,
646
643
Use index as ticks for x axis
647
644
stacked : boolean, default False
648
645
If True, create stacked bar plot. Only valid for DataFrame input
649
- sort_columns: boolean, default True
646
+ sort_columns: boolean, default False
650
647
Sort column names to determine plot ordering
651
648
title : string
652
649
Title to use for the plot
0 commit comments