AutoStatLib 0.2.20__py3-none-any.whl → 0.2.21__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of AutoStatLib might be problematic. Click here for more details.
- AutoStatLib/AutoStatLib.py +1 -2
- AutoStatLib/StatPlots.py +39 -37
- AutoStatLib/_version.py +1 -1
- AutoStatLib/text_formatting.py +1 -1
- {autostatlib-0.2.20.dist-info → autostatlib-0.2.21.dist-info}/METADATA +1 -1
- autostatlib-0.2.21.dist-info/RECORD +14 -0
- autostatlib-0.2.20.dist-info/RECORD +0 -14
- {autostatlib-0.2.20.dist-info → autostatlib-0.2.21.dist-info}/WHEEL +0 -0
- {autostatlib-0.2.20.dist-info → autostatlib-0.2.21.dist-info}/licenses/LICENSE +0 -0
- {autostatlib-0.2.20.dist-info → autostatlib-0.2.21.dist-info}/top_level.txt +0 -0
AutoStatLib/AutoStatLib.py
CHANGED
|
@@ -30,8 +30,7 @@ class StatisticalAnalysis(StatisticalTests, NormalityTests, TextFormatting, Help
|
|
|
30
30
|
self.verbose = verbose
|
|
31
31
|
self.n_groups = len(self.groups_list)
|
|
32
32
|
self.groups_name = [groups_name[i % len(groups_name)]
|
|
33
|
-
for i in range(self.n_groups)] if groups_name else [f'Group {i+1}'
|
|
34
|
-
for i in range(self.n_groups)]
|
|
33
|
+
for i in range(self.n_groups)] if groups_name and groups_name != [''] else [f'Group {i+1}' for i in range(self.n_groups)]
|
|
35
34
|
|
|
36
35
|
self.warning_flag_non_numeric_data = False
|
|
37
36
|
self.summary = 'AutoStatLib v{}'.format(__version__)
|
AutoStatLib/StatPlots.py
CHANGED
|
@@ -168,9 +168,9 @@ class BaseStatPlot(Helpers):
|
|
|
168
168
|
linewidth=2,
|
|
169
169
|
widths=0.85,
|
|
170
170
|
vert=True,
|
|
171
|
-
showmeans=
|
|
172
|
-
showmedians=
|
|
173
|
-
showextrema=
|
|
171
|
+
showmeans=False,
|
|
172
|
+
showmedians=False,
|
|
173
|
+
showextrema=False,
|
|
174
174
|
points=200,
|
|
175
175
|
bw_method=0.5):
|
|
176
176
|
|
|
@@ -413,7 +413,7 @@ class BaseStatPlot(Helpers):
|
|
|
413
413
|
zorder=zorder - 1)
|
|
414
414
|
|
|
415
415
|
def add_errorbar_sd(self, ax, x,
|
|
416
|
-
capsize=
|
|
416
|
+
capsize=4,
|
|
417
417
|
ecolor='r',
|
|
418
418
|
linewidth=2,
|
|
419
419
|
zorder=3):
|
|
@@ -424,10 +424,12 @@ class BaseStatPlot(Helpers):
|
|
|
424
424
|
capsize=capsize*self.figure_scale_factor,
|
|
425
425
|
ecolor=ecolor,
|
|
426
426
|
linewidth=linewidth*self.figure_scale_factor,
|
|
427
|
+
elinewidth=linewidth*self.figure_scale_factor,
|
|
428
|
+
capthick=linewidth*self.figure_scale_factor,
|
|
427
429
|
zorder=zorder)
|
|
428
430
|
|
|
429
431
|
def add_errorbar_sem(self, ax, x,
|
|
430
|
-
capsize=
|
|
432
|
+
capsize=4,
|
|
431
433
|
ecolor='r',
|
|
432
434
|
linewidth=2,
|
|
433
435
|
zorder=3):
|
|
@@ -439,35 +441,40 @@ class BaseStatPlot(Helpers):
|
|
|
439
441
|
ecolor=ecolor,
|
|
440
442
|
linewidth=linewidth*self.figure_scale_factor,
|
|
441
443
|
elinewidth=linewidth*self.figure_scale_factor,
|
|
444
|
+
capthick=linewidth*self.figure_scale_factor,
|
|
442
445
|
zorder=zorder)
|
|
443
446
|
|
|
444
447
|
def add_mean_marker(self, ax, x,
|
|
445
448
|
marker='_',
|
|
446
449
|
markerfacecolor='#00000000',
|
|
447
450
|
markeredgecolor='r',
|
|
448
|
-
markersize=
|
|
449
|
-
|
|
451
|
+
markersize=20,
|
|
452
|
+
linewidth=2,
|
|
453
|
+
zorder=3):
|
|
450
454
|
# Overlay mean marker
|
|
451
455
|
ax.plot(x, self.mean[x],
|
|
452
456
|
marker=marker,
|
|
453
457
|
markerfacecolor=markerfacecolor,
|
|
454
458
|
markeredgecolor=markeredgecolor,
|
|
455
459
|
markersize=markersize*self.figure_scale_factor,
|
|
456
|
-
markeredgewidth=
|
|
460
|
+
markeredgewidth=linewidth*self.figure_scale_factor,
|
|
461
|
+
zorder=zorder)
|
|
457
462
|
|
|
458
463
|
def add_median_marker(self, ax, x,
|
|
459
|
-
marker='
|
|
460
|
-
markerfacecolor=
|
|
464
|
+
marker='o',
|
|
465
|
+
markerfacecolor="#FFFFFFFF",
|
|
461
466
|
markeredgecolor='r',
|
|
462
|
-
markersize=
|
|
463
|
-
|
|
467
|
+
markersize=6,
|
|
468
|
+
linewidth=2,
|
|
469
|
+
zorder=4):
|
|
464
470
|
# Overlay median marker
|
|
465
471
|
ax.plot(x, self.median[x],
|
|
466
472
|
marker=marker,
|
|
467
473
|
markerfacecolor=markerfacecolor,
|
|
468
474
|
markeredgecolor=markeredgecolor,
|
|
469
475
|
markersize=markersize*self.figure_scale_factor,
|
|
470
|
-
markeredgewidth=
|
|
476
|
+
markeredgewidth=linewidth*self.figure_scale_factor,
|
|
477
|
+
zorder=zorder)
|
|
471
478
|
|
|
472
479
|
def add_significance_bars(self, ax,
|
|
473
480
|
linewidth=2,
|
|
@@ -628,19 +635,18 @@ class BaseStatPlot(Helpers):
|
|
|
628
635
|
|
|
629
636
|
class BarStatPlot(BaseStatPlot):
|
|
630
637
|
|
|
631
|
-
def plot(self):
|
|
638
|
+
def plot(self, linewidth=1.8):
|
|
632
639
|
fig, ax = self.setup_figure()
|
|
633
|
-
|
|
634
|
-
|
|
640
|
+
|
|
635
641
|
for x in range(len(self.data_groups)):
|
|
636
642
|
|
|
637
643
|
# Create a bar for given group.
|
|
638
|
-
self.add_barplot(ax, x)
|
|
644
|
+
self.add_barplot(ax, x, linewidth=linewidth)
|
|
639
645
|
|
|
640
646
|
# Overlay errbars, and markers.
|
|
641
|
-
self.add_median_marker(ax, x)
|
|
642
|
-
self.add_mean_marker(ax, x)
|
|
643
|
-
self.add_errorbar_sd(ax, x)
|
|
647
|
+
self.add_median_marker(ax, x, linewidth=linewidth)
|
|
648
|
+
self.add_mean_marker(ax, x, linewidth=linewidth)
|
|
649
|
+
self.add_errorbar_sd(ax, x, linewidth=linewidth)
|
|
644
650
|
|
|
645
651
|
self.add_swarm(ax)
|
|
646
652
|
self.add_significance_bars(ax, linewidth)
|
|
@@ -661,9 +667,8 @@ class ViolinStatPlot(BaseStatPlot):
|
|
|
661
667
|
https://seaborn.pydata.org/archive/0.11/generated/seaborn.violinplot.html
|
|
662
668
|
'''
|
|
663
669
|
|
|
664
|
-
def plot(self):
|
|
670
|
+
def plot(self, linewidth=1.8):
|
|
665
671
|
fig, ax = self.setup_figure()
|
|
666
|
-
linewidth = 2
|
|
667
672
|
|
|
668
673
|
for x in range(len(self.data_groups)):
|
|
669
674
|
|
|
@@ -671,9 +676,9 @@ class ViolinStatPlot(BaseStatPlot):
|
|
|
671
676
|
self.add_violinplot(ax, x)
|
|
672
677
|
|
|
673
678
|
# Overlay errbars and markers.
|
|
674
|
-
self.add_median_marker(ax, x)
|
|
675
|
-
self.add_mean_marker(ax, x)
|
|
676
|
-
|
|
679
|
+
self.add_median_marker(ax, x, linewidth=linewidth)
|
|
680
|
+
self.add_mean_marker(ax, x, linewidth=linewidth)
|
|
681
|
+
self.add_errorbar_sd(ax, x, linewidth=linewidth)
|
|
677
682
|
|
|
678
683
|
self.add_swarm(ax)
|
|
679
684
|
self.add_significance_bars(ax, linewidth)
|
|
@@ -686,9 +691,8 @@ class ViolinStatPlot(BaseStatPlot):
|
|
|
686
691
|
|
|
687
692
|
class BoxStatPlot(BaseStatPlot):
|
|
688
693
|
|
|
689
|
-
def plot(self):
|
|
694
|
+
def plot(self, linewidth=1.8):
|
|
690
695
|
fig, ax = self.setup_figure()
|
|
691
|
-
linewidth = 2
|
|
692
696
|
|
|
693
697
|
self.add_boxplot(ax)
|
|
694
698
|
self.add_swarm(ax)
|
|
@@ -699,16 +703,15 @@ class BoxStatPlot(BaseStatPlot):
|
|
|
699
703
|
|
|
700
704
|
class ScatterStatPlot(BaseStatPlot):
|
|
701
705
|
|
|
702
|
-
def plot(self):
|
|
706
|
+
def plot(self, linewidth=1.8):
|
|
703
707
|
fig, ax = self.setup_figure()
|
|
704
|
-
linewidth = 2
|
|
705
708
|
|
|
706
709
|
for x in range(len(self.data_groups)):
|
|
707
710
|
|
|
708
711
|
# Overlay errbars, and markers.
|
|
709
|
-
self.add_median_marker(ax, x)
|
|
710
|
-
self.add_mean_marker(ax, x)
|
|
711
|
-
self.add_errorbar_sd(ax, x)
|
|
712
|
+
self.add_median_marker(ax, x, linewidth=linewidth)
|
|
713
|
+
self.add_mean_marker(ax, x, linewidth=linewidth)
|
|
714
|
+
self.add_errorbar_sd(ax, x, linewidth=linewidth)
|
|
712
715
|
|
|
713
716
|
self.add_scatter(ax)
|
|
714
717
|
self.add_significance_bars(ax, linewidth)
|
|
@@ -721,16 +724,15 @@ class ScatterStatPlot(BaseStatPlot):
|
|
|
721
724
|
|
|
722
725
|
class SwarmStatPlot(BaseStatPlot):
|
|
723
726
|
|
|
724
|
-
def plot(self):
|
|
727
|
+
def plot(self, linewidth=1.8):
|
|
725
728
|
fig, ax = self.setup_figure()
|
|
726
|
-
linewidth = 2
|
|
727
729
|
|
|
728
730
|
for x in range(len(self.data_groups)):
|
|
729
731
|
|
|
730
732
|
# Overlay errbars, and markers.
|
|
731
|
-
self.add_median_marker(ax, x)
|
|
732
|
-
self.add_mean_marker(ax, x)
|
|
733
|
-
self.add_errorbar_sd(ax, x)
|
|
733
|
+
self.add_median_marker(ax, x, linewidth=linewidth)
|
|
734
|
+
self.add_mean_marker(ax, x, linewidth=linewidth)
|
|
735
|
+
self.add_errorbar_sd(ax, x, linewidth=linewidth)
|
|
734
736
|
|
|
735
737
|
self.add_swarm(ax)
|
|
736
738
|
self.add_significance_bars(ax, linewidth)
|
AutoStatLib/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# AutoStatLib package version:
|
|
2
|
-
__version__ = "0.2.
|
|
2
|
+
__version__ = "0.2.21"
|
AutoStatLib/text_formatting.py
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
AutoStatLib/AutoStatLib.py,sha256=nJNBdw9pL5hKDpbuG6f5LvjjqUdm5KUcZ6VukFjYa8c,10423
|
|
2
|
+
AutoStatLib/StatPlots.py,sha256=UzeScZyGeSq3Pxsxh0JkbAaM_pKBtOMcX76R9sRf4Wk,29161
|
|
3
|
+
AutoStatLib/__init__.py,sha256=r7VdcL7F4UCRxEFh8WFBd9y61KavX_qt7fFbKjtjfjo,137
|
|
4
|
+
AutoStatLib/__main__.py,sha256=0OIv5sqFNI-diyHFtYL6HPcYrOWdLiqYYOO_nxrHuTk,283
|
|
5
|
+
AutoStatLib/_version.py,sha256=Kk1FtClQ_RuIovxiSUaax8UPfVvqGQGiZXeTkYxF94M,54
|
|
6
|
+
AutoStatLib/helpers.py,sha256=UqIKVQXA6l2pffX6hVOzc_7VYbNxP5IwRE0uZbtvsBI,4006
|
|
7
|
+
AutoStatLib/normality_tests.py,sha256=TYeKpfpJRzOHvDZucObuZhPktjiZpSZwh381eJ8ENC4,2381
|
|
8
|
+
AutoStatLib/statistical_tests.py,sha256=9fqd9_1mvm9snLrrNq9Summ-olrPgA2F8siOy7a12Y4,7290
|
|
9
|
+
AutoStatLib/text_formatting.py,sha256=Nb3sz33jVsmqXYaamnEOXY_SaxoqpQChc9KgoK5i1NE,3551
|
|
10
|
+
autostatlib-0.2.21.dist-info/licenses/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
|
11
|
+
autostatlib-0.2.21.dist-info/METADATA,sha256=c3pont51YFC4EXzPyyL9iRlIKRWxEGMa_1L2UsJ5CP8,36979
|
|
12
|
+
autostatlib-0.2.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
+
autostatlib-0.2.21.dist-info/top_level.txt,sha256=BuHzVyE2andc7RwD_UPmDjLl9CUAyBH6WHZGjaIReUI,12
|
|
14
|
+
autostatlib-0.2.21.dist-info/RECORD,,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
AutoStatLib/AutoStatLib.py,sha256=sFxGlWjXI5_qnJTFU6weaP2Uo2f755rPVsqSTyUnyXA,10486
|
|
2
|
-
AutoStatLib/StatPlots.py,sha256=1kDy_FePmd9xOUfXDPE80ew7AY6EksqkJPjSORHz7Ls,28610
|
|
3
|
-
AutoStatLib/__init__.py,sha256=r7VdcL7F4UCRxEFh8WFBd9y61KavX_qt7fFbKjtjfjo,137
|
|
4
|
-
AutoStatLib/__main__.py,sha256=0OIv5sqFNI-diyHFtYL6HPcYrOWdLiqYYOO_nxrHuTk,283
|
|
5
|
-
AutoStatLib/_version.py,sha256=gZe9zMvM0WabwWI4ZRzAVe07HF8Xqk1RX1TKeHoNLyU,54
|
|
6
|
-
AutoStatLib/helpers.py,sha256=UqIKVQXA6l2pffX6hVOzc_7VYbNxP5IwRE0uZbtvsBI,4006
|
|
7
|
-
AutoStatLib/normality_tests.py,sha256=TYeKpfpJRzOHvDZucObuZhPktjiZpSZwh381eJ8ENC4,2381
|
|
8
|
-
AutoStatLib/statistical_tests.py,sha256=9fqd9_1mvm9snLrrNq9Summ-olrPgA2F8siOy7a12Y4,7290
|
|
9
|
-
AutoStatLib/text_formatting.py,sha256=DyQnS3wCrmiPfCQhMcafAnfJIo433jmiOAB68CUVf8o,3549
|
|
10
|
-
autostatlib-0.2.20.dist-info/licenses/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
|
11
|
-
autostatlib-0.2.20.dist-info/METADATA,sha256=UUewtPqPTdYQgIzlJxib88k1j1SSdeAdQJFoMEfyHqk,36979
|
|
12
|
-
autostatlib-0.2.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
-
autostatlib-0.2.20.dist-info/top_level.txt,sha256=BuHzVyE2andc7RwD_UPmDjLl9CUAyBH6WHZGjaIReUI,12
|
|
14
|
-
autostatlib-0.2.20.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|