py2ls 0.1.9.0__py3-none-any.whl → 0.1.9.1__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.
py2ls/data/.DS_Store CHANGED
Binary file
@@ -0,0 +1,145 @@
1
+ {
2
+ "c": [
3
+ "#474747",
4
+ "#FF2C00",
5
+ "#0C5DA5"
6
+ ],
7
+ "loc": {
8
+ "go": 0,
9
+ "xloc": [
10
+ 1,
11
+ 2,
12
+ 3
13
+ ]
14
+ },
15
+ "style": {
16
+ "export": null
17
+ },
18
+ "layer": [
19
+ "b",
20
+ "bx",
21
+ "e",
22
+ "v",
23
+ "s",
24
+ "l"
25
+ ],
26
+ "b": {
27
+ "go": 1,
28
+ "loc": "c",
29
+ "FaceColor": [
30
+ "#474747",
31
+ "#FF2C00",
32
+ "#0C5DA5"
33
+ ],
34
+ "FaceAlpha": 1,
35
+ "EdgeColor": "k",
36
+ "EdgeAlpha": 1,
37
+ "LineStyle": "-",
38
+ "LineWidth": 0.8,
39
+ "x_width": 0.5,
40
+ "ShowBaseLine": "off",
41
+ "hatch": null
42
+ },
43
+ "e": {
44
+ "go": 1,
45
+ "loc": "l",
46
+ "LineWidth": 1,
47
+ "CapLineWidth": 1,
48
+ "CapSize": 2,
49
+ "Marker": "none",
50
+ "LineStyle": "none",
51
+ "LineColor": "k",
52
+ "LineJoin": "round",
53
+ "MarkerSize": "auto",
54
+ "FaceColor": [
55
+ "#474747",
56
+ "#FF2C00",
57
+ "#0C5DA5"
58
+ ],
59
+ "MarkerEdgeColor": [
60
+ "none"
61
+ ],
62
+ "Visible": true,
63
+ "Orientation": "vertical",
64
+ "error": "sem",
65
+ "x_width": 0.1,
66
+ "cap_dir": "b"
67
+ },
68
+ "s": {
69
+ "go": 1,
70
+ "loc": "r",
71
+ "FaceColor": "w",
72
+ "cmap": null,
73
+ "FaceAlpha": 1,
74
+ "x_width": 0.1,
75
+ "Marker": "o",
76
+ "MarkerSize": 15,
77
+ "LineWidth": 0.8,
78
+ "MarkerEdgeColor": "k"
79
+ },
80
+ "l": {
81
+ "go": 1,
82
+ "LineStyle": "-",
83
+ "LineColor": "k",
84
+ "LineWidth": 0.5,
85
+ "LineAlpha": 0.5
86
+ },
87
+ "bx": {
88
+ "go": 0,
89
+ "loc": "r",
90
+ "FaceColor": [
91
+ "#474747",
92
+ "#FF2C00",
93
+ "#0C5DA5"
94
+ ],
95
+ "EdgeColor": "k",
96
+ "FaceAlpha": 0.85,
97
+ "EdgeAlpha": 1,
98
+ "LineStyle": "-",
99
+ "x_width": 0.2,
100
+ "ShowBaseLine": "off",
101
+ "Notch": false,
102
+ "Outliers": "on",
103
+ "OutlierMarker": "+",
104
+ "OutlierColor": "r",
105
+ "OutlierSize": 6,
106
+ "Whisker": 0.5,
107
+ "Orientation": "vertical",
108
+ "BoxLineWidth": 0.5,
109
+ "WhiskerLineStyle": "-",
110
+ "WhiskerLineColor": "k",
111
+ "WhiskerLineWidth": 0.5,
112
+ "Caps": true,
113
+ "CapLineColor": "k",
114
+ "CapLineWidth": 0.5,
115
+ "CapSize": 0.2,
116
+ "MedianLine": true,
117
+ "MedianLineStyle": "-",
118
+ "MedianStyle": "line",
119
+ "MedianLineColor": "k",
120
+ "MedianLineWidth": 2,
121
+ "MedianLineTop": false,
122
+ "MeanLine": false,
123
+ "showmeans": false,
124
+ "MeanLineStyle": "-",
125
+ "MeanLineColor": "w",
126
+ "MeanLineWidth": 2
127
+ },
128
+ "v": {
129
+ "go": 0,
130
+ "x_width": 0.3,
131
+ "loc": "r",
132
+ "EdgeColor": "none",
133
+ "FaceColor": [
134
+ "#474747",
135
+ "#FF2C00",
136
+ "#0C5DA5"
137
+ ],
138
+ "FaceAlpha": 0.3,
139
+ "BandWidth": "scott",
140
+ "Function": "pdf",
141
+ "Kernel": "gau",
142
+ "NumPoints": 500,
143
+ "BoundaryCorrection": "reflection"
144
+ }
145
+ }
@@ -0,0 +1,146 @@
1
+ {
2
+ "c": [
3
+ "#474747",
4
+ "#FF2C00",
5
+ "#0C5DA5"
6
+ ],
7
+ "loc": {
8
+ "go": 0,
9
+ "xloc": [
10
+ 1,
11
+ 2,
12
+ 3
13
+ ]
14
+ },
15
+ "style": {
16
+ "export": null
17
+ },
18
+ "layer": [
19
+ "b",
20
+ "bx",
21
+ "e",
22
+ "v",
23
+ "s",
24
+ "l"
25
+ ],
26
+ "b": {
27
+ "go": 0,
28
+ "loc": "c",
29
+ "FaceColor": [
30
+ "#474747",
31
+ "#FF2C00",
32
+ "#0C5DA5"
33
+ ],
34
+ "FaceAlpha": 1,
35
+ "EdgeColor": "k",
36
+ "EdgeAlpha": 1,
37
+ "LineStyle": "-",
38
+ "LineWidth": 0.8,
39
+ "x_width": 0.5,
40
+ "ShowBaseLine": "off",
41
+ "hatch": null
42
+ },
43
+ "e": {
44
+ "go": 1,
45
+ "loc": "c",
46
+ "LineWidth": 1,
47
+ "CapLineWidth": 1,
48
+ "CapSize": 2,
49
+ "Marker": "d",
50
+ "LineStyle": "none",
51
+ "LineColor": "k",
52
+ "LineJoin": "round",
53
+ "MarkerSize": 12,
54
+ "FaceColor": [
55
+ "#474747",
56
+ "#FF2C00",
57
+ "#0C5DA5"
58
+ ],
59
+ "MarkerEdgeColor": [
60
+ "none"
61
+ ],
62
+ "Visible": true,
63
+ "Orientation": "vertical",
64
+ "error": "sem",
65
+ "x_width": 0.1,
66
+ "cap_dir": "b"
67
+ },
68
+ "s": {
69
+ "go": 1,
70
+ "loc": "l",
71
+ "FaceColor": "w",
72
+ "cmap": null,
73
+ "FaceAlpha": 1,
74
+ "x_width": 0.1,
75
+ "Marker": "o",
76
+ "MarkerSize": 15,
77
+ "LineWidth": 0.8,
78
+ "MarkerEdgeColor": "k"
79
+ },
80
+ "l": {
81
+ "go": 0,
82
+ "LineStyle": "-",
83
+ "LineColor": "k",
84
+ "LineWidth": 0.5,
85
+ "LineAlpha": 0.5
86
+ },
87
+ "bx": {
88
+ "go": 1,
89
+ "loc": "r",
90
+ "FaceColor": [
91
+ "#474747",
92
+ "#FF2C00",
93
+ "#0C5DA5"
94
+ ],
95
+ "EdgeColor": "k",
96
+ "FaceAlpha": 0.85,
97
+ "EdgeAlpha": 1,
98
+ "LineStyle": "-",
99
+ "x_width": 0.1,
100
+ "ShowBaseLine": "off",
101
+ "Notch": false,
102
+ "Outliers": "on",
103
+ "OutlierMarker": "+",
104
+ "OutlierColor": "r",
105
+ "OutlierSize": 6,
106
+ "LineWidth": 0.5,
107
+ "Whisker": 0.5,
108
+ "Orientation": "vertical",
109
+ "BoxLineWidth": 0.5,
110
+ "WhiskerLineStyle": "-",
111
+ "WhiskerLineColor": "k",
112
+ "WhiskerLineWidth": 0.5,
113
+ "Caps": true,
114
+ "CapLineColor": "k",
115
+ "CapLineWidth": 0.5,
116
+ "CapSize": 0.1,
117
+ "MedianLine": true,
118
+ "MedianLineStyle": "-",
119
+ "MedianStyle": "line",
120
+ "MedianLineColor": "k",
121
+ "MedianLineWidth": 2.0,
122
+ "MedianLineTop": false,
123
+ "MeanLine": false,
124
+ "showmeans": false,
125
+ "MeanLineStyle": "-",
126
+ "MeanLineColor": "w",
127
+ "MeanLineWidth": 2.0
128
+ },
129
+ "v": {
130
+ "go": 0,
131
+ "x_width": 0.3,
132
+ "loc": "r",
133
+ "EdgeColor": "none",
134
+ "FaceColor": [
135
+ "#474747",
136
+ "#FF2C00",
137
+ "#0C5DA5"
138
+ ],
139
+ "FaceAlpha": 0.3,
140
+ "BandWidth": "scott",
141
+ "Function": "pdf",
142
+ "Kernel": "gau",
143
+ "NumPoints": 500,
144
+ "BoundaryCorrection": "reflection"
145
+ }
146
+ }
@@ -0,0 +1,146 @@
1
+ {
2
+ "c": [
3
+ "#474747",
4
+ "#FF2C00",
5
+ "#0C5DA5"
6
+ ],
7
+ "loc": {
8
+ "go": 0,
9
+ "xloc": [
10
+ 1,
11
+ 2,
12
+ 3
13
+ ]
14
+ },
15
+ "style": {
16
+ "export": null
17
+ },
18
+ "layer": [
19
+ "b",
20
+ "bx",
21
+ "e",
22
+ "v",
23
+ "s",
24
+ "l"
25
+ ],
26
+ "b": {
27
+ "go": 0,
28
+ "loc": "c",
29
+ "FaceColor": [
30
+ "#474747",
31
+ "#FF2C00",
32
+ "#0C5DA5"
33
+ ],
34
+ "FaceAlpha": 1,
35
+ "EdgeColor": "k",
36
+ "EdgeAlpha": 1,
37
+ "LineStyle": "-",
38
+ "LineWidth": 0.8,
39
+ "x_width": 0.05,
40
+ "ShowBaseLine": "off",
41
+ "hatch": null
42
+ },
43
+ "e": {
44
+ "go": 1,
45
+ "loc": "c",
46
+ "LineWidth": 1,
47
+ "CapLineWidth": 1,
48
+ "CapSize": 2,
49
+ "Marker": "o",
50
+ "LineStyle": "-",
51
+ "LineColor": "k",
52
+ "LineJoin": "round",
53
+ "MarkerSize": "auto",
54
+ "FaceColor": [
55
+ "#474747",
56
+ "#FF2C00",
57
+ "#0C5DA5"
58
+ ],
59
+ "MarkerEdgeColor": [
60
+ "none"
61
+ ],
62
+ "Visible": true,
63
+ "Orientation": "vertical",
64
+ "error": "sem",
65
+ "x_width": 0.1,
66
+ "cap_dir": "b"
67
+ },
68
+ "s": {
69
+ "go": 1,
70
+ "loc": "r",
71
+ "FaceColor": "w",
72
+ "cmap": null,
73
+ "FaceAlpha": 1,
74
+ "x_width": 0.1,
75
+ "Marker": "o",
76
+ "MarkerSize": 15,
77
+ "LineWidth": 0.8,
78
+ "MarkerEdgeColor": "k"
79
+ },
80
+ "l": {
81
+ "go": 1,
82
+ "LineStyle": "-",
83
+ "LineColor": "k",
84
+ "LineWidth": 0.5,
85
+ "LineAlpha": 0.5
86
+ },
87
+ "bx": {
88
+ "go": 0,
89
+ "loc": "r",
90
+ "FaceColor": [
91
+ "#474747",
92
+ "#FF2C00",
93
+ "#0C5DA5"
94
+ ],
95
+ "EdgeColor": "k",
96
+ "FaceAlpha": 0.85,
97
+ "EdgeAlpha": 1,
98
+ "LineStyle": "-",
99
+ "x_width": 0.1,
100
+ "ShowBaseLine": "off",
101
+ "Notch": false,
102
+ "Outliers": "on",
103
+ "OutlierMarker": "+",
104
+ "OutlierColor": "r",
105
+ "OutlierSize": 6,
106
+ "LineWidth": 0.5,
107
+ "Whisker": 0.5,
108
+ "Orientation": "vertical",
109
+ "BoxLineWidth": 0.5,
110
+ "WhiskerLineStyle": "-",
111
+ "WhiskerLineColor": "k",
112
+ "WhiskerLineWidth": 0.5,
113
+ "Caps": true,
114
+ "CapLineColor": "k",
115
+ "CapLineWidth": 0.5,
116
+ "CapSize": 0.1,
117
+ "MedianLine": true,
118
+ "MedianLineStyle": "-",
119
+ "MedianStyle": "line",
120
+ "MedianLineColor": "k",
121
+ "MedianLineWidth": 2.0,
122
+ "MedianLineTop": false,
123
+ "MeanLine": false,
124
+ "showmeans": false,
125
+ "MeanLineStyle": "-",
126
+ "MeanLineColor": "w",
127
+ "MeanLineWidth": 2.0
128
+ },
129
+ "v": {
130
+ "go": 1,
131
+ "x_width": 0.1,
132
+ "loc": "l",
133
+ "EdgeColor": "none",
134
+ "FaceColor": [
135
+ "#474747",
136
+ "#FF2C00",
137
+ "#0C5DA5"
138
+ ],
139
+ "FaceAlpha": 0.3,
140
+ "BandWidth": "scott",
141
+ "Function": "pdf",
142
+ "Kernel": "gau",
143
+ "NumPoints": 500,
144
+ "BoundaryCorrection": "reflection"
145
+ }
146
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "c": [
3
+ "#474747",
4
+ "#FF2C00",
5
+ "#0C5DA5"
6
+ ],
7
+ "loc": {
8
+ "go": 0,
9
+ "xloc": [
10
+ 1,
11
+ 2,
12
+ 3
13
+ ]
14
+ },
15
+ "style": {
16
+ "export": null
17
+ },
18
+ "layer": [
19
+ "s",
20
+ "e"
21
+ ],
22
+ "b": {
23
+ "go": 0,
24
+ "loc": "c",
25
+ "FaceColor": [
26
+ "#474747",
27
+ "#FF2C00",
28
+ "#0C5DA5"
29
+ ],
30
+ "FaceAlpha": 1,
31
+ "EdgeColor": "k",
32
+ "EdgeAlpha": 1,
33
+ "LineStyle": "-",
34
+ "LineWidth": 0.8,
35
+ "x_width": 0.2,
36
+ "ShowBaseLine": "off",
37
+ "hatch": null
38
+ },
39
+ "e": {
40
+ "go": 1,
41
+ "loc": "c",
42
+ "LineWidth": 1,
43
+ "CapLineWidth": 1,
44
+ "CapSize": 2,
45
+ "Marker": "d",
46
+ "LineStyle": "none",
47
+ "LineColor": "k",
48
+ "LineJoin": "round",
49
+ "MarkerSize": 12,
50
+ "FaceColor": [
51
+ "#474747",
52
+ "#FF2C00",
53
+ "#0C5DA5"
54
+ ],
55
+ "MarkerEdgeColor": [
56
+ "k"
57
+ ],
58
+ "Visible": true,
59
+ "Orientation": "vertical",
60
+ "error": "sem",
61
+ "x_width": 0.1,
62
+ "cap_dir": "b"
63
+ },
64
+ "s": {
65
+ "go": 0,
66
+ "loc": "rand",
67
+ "FaceColor": "w",
68
+ "cmap": null,
69
+ "FaceAlpha": 1,
70
+ "x_width": 0.05,
71
+ "Marker": "o",
72
+ "MarkerSize": 15,
73
+ "LineWidth": 0.8,
74
+ "MarkerEdgeColor": "k"
75
+ },
76
+ "l": {
77
+ "go": 0,
78
+ "LineStyle": "-",
79
+ "LineColor": "k",
80
+ "LineWidth": 0.5,
81
+ "LineAlpha": 0.5
82
+ },
83
+ "bx": {
84
+ "go": 1,
85
+ "loc": "c",
86
+ "FaceColor": [
87
+ "#474747",
88
+ "#FF2C00",
89
+ "#0C5DA5"
90
+ ],
91
+ "EdgeColor": "k",
92
+ "FaceAlpha": 0.85,
93
+ "EdgeAlpha": 1,
94
+ "LineStyle": "-",
95
+ "x_width": 0.1,
96
+ "ShowBaseLine": "off",
97
+ "Notch": false,
98
+ "Outliers": "on",
99
+ "OutlierMarker": "+",
100
+ "OutlierColor": "r",
101
+ "OutlierSize": 6,
102
+ "LineWidth": 0.5,
103
+ "Whisker": 0.5,
104
+ "Orientation": "vertical",
105
+ "BoxLineWidth": 0.5,
106
+ "WhiskerLineStyle": "-",
107
+ "WhiskerLineColor": "k",
108
+ "WhiskerLineWidth": 0.5,
109
+ "Caps": true,
110
+ "CapLineColor": "k",
111
+ "CapLineWidth": 0.5,
112
+ "CapSize": 0.1,
113
+ "MedianLine": true,
114
+ "MedianLineStyle": "-",
115
+ "MedianStyle": "line",
116
+ "MedianLineColor": "k",
117
+ "MedianLineWidth": 2.0,
118
+ "MedianLineTop": false,
119
+ "MeanLine": false,
120
+ "showmeans": false,
121
+ "MeanLineStyle": "-",
122
+ "MeanLineColor": "w",
123
+ "MeanLineWidth": 2.0
124
+ },
125
+ "v": {
126
+ "go": 0,
127
+ "x_width": 0.3,
128
+ "loc": "r",
129
+ "EdgeColor": "none",
130
+ "FaceColor": [
131
+ "#474747",
132
+ "#FF2C00",
133
+ "#0C5DA5"
134
+ ],
135
+ "FaceAlpha": 0.3,
136
+ "BandWidth": "scott",
137
+ "Function": "pdf",
138
+ "Kernel": "gau",
139
+ "NumPoints": 500,
140
+ "BoundaryCorrection": "reflection"
141
+ }
142
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "c": [
3
+ "#474747",
4
+ "#FF2C00",
5
+ "#0C5DA5"
6
+ ],
7
+ "loc": {
8
+ "go": 0,
9
+ "xloc": [
10
+ 1,
11
+ 2,
12
+ 3
13
+ ]
14
+ },
15
+ "style": {
16
+ "export": null
17
+ },
18
+ "layer": [
19
+ "s",
20
+ "e"
21
+ ],
22
+ "b": {
23
+ "go": 0,
24
+ "loc": "c",
25
+ "FaceColor": [
26
+ "#474747",
27
+ "#FF2C00",
28
+ "#0C5DA5"
29
+ ],
30
+ "FaceAlpha": 1,
31
+ "EdgeColor": "k",
32
+ "EdgeAlpha": 1,
33
+ "LineStyle": "-",
34
+ "LineWidth": 0.8,
35
+ "x_width": 0.2,
36
+ "ShowBaseLine": "off",
37
+ "hatch": null
38
+ },
39
+ "e": {
40
+ "go": 1,
41
+ "loc": "c",
42
+ "LineWidth": 1,
43
+ "CapLineWidth": 1,
44
+ "CapSize": 2,
45
+ "Marker": "d",
46
+ "LineStyle": "none",
47
+ "LineColor": "k",
48
+ "LineJoin": "round",
49
+ "MarkerSize": 12,
50
+ "FaceColor": [
51
+ "#474747",
52
+ "#FF2C00",
53
+ "#0C5DA5"
54
+ ],
55
+ "MarkerEdgeColor": [
56
+ "k"
57
+ ],
58
+ "Visible": true,
59
+ "Orientation": "vertical",
60
+ "error": "sem",
61
+ "x_width": 0.1,
62
+ "cap_dir": "b"
63
+ },
64
+ "s": {
65
+ "go": 1,
66
+ "loc": "c",
67
+ "FaceColor": "w",
68
+ "cmap": null,
69
+ "FaceAlpha": 1,
70
+ "x_width": 0.05,
71
+ "Marker": "o",
72
+ "MarkerSize": 15,
73
+ "LineWidth": 0.8,
74
+ "MarkerEdgeColor": "k"
75
+ },
76
+ "l": {
77
+ "go": 1,
78
+ "LineStyle": "-",
79
+ "LineColor": "k",
80
+ "LineWidth": 0.5,
81
+ "LineAlpha": 0.5
82
+ },
83
+ "bx": {
84
+ "go": 0,
85
+ "loc": "c",
86
+ "FaceColor": [
87
+ "#474747",
88
+ "#FF2C00",
89
+ "#0C5DA5"
90
+ ],
91
+ "EdgeColor": "k",
92
+ "FaceAlpha": 0.85,
93
+ "EdgeAlpha": 1,
94
+ "LineStyle": "-",
95
+ "x_width": 0.1,
96
+ "ShowBaseLine": "off",
97
+ "Notch": false,
98
+ "Outliers": "on",
99
+ "OutlierMarker": "+",
100
+ "OutlierColor": "r",
101
+ "OutlierSize": 6,
102
+ "LineWidth": 0.5,
103
+ "Whisker": 0.5,
104
+ "Orientation": "vertical",
105
+ "BoxLineWidth": 0.5,
106
+ "WhiskerLineStyle": "-",
107
+ "WhiskerLineColor": "k",
108
+ "WhiskerLineWidth": 0.5,
109
+ "Caps": true,
110
+ "CapLineColor": "k",
111
+ "CapLineWidth": 0.5,
112
+ "CapSize": 0.1,
113
+ "MedianLine": true,
114
+ "MedianLineStyle": "-",
115
+ "MedianStyle": "line",
116
+ "MedianLineColor": "k",
117
+ "MedianLineWidth": 2.0,
118
+ "MedianLineTop": false,
119
+ "MeanLine": false,
120
+ "showmeans": false,
121
+ "MeanLineStyle": "-",
122
+ "MeanLineColor": "w",
123
+ "MeanLineWidth": 2.0
124
+ },
125
+ "v": {
126
+ "go": 0,
127
+ "x_width": 0.3,
128
+ "loc": "r",
129
+ "EdgeColor": "none",
130
+ "FaceColor": [
131
+ "#474747",
132
+ "#FF2C00",
133
+ "#0C5DA5"
134
+ ],
135
+ "FaceAlpha": 0.3,
136
+ "BandWidth": "scott",
137
+ "Function": "pdf",
138
+ "Kernel": "gau",
139
+ "NumPoints": 500,
140
+ "BoundaryCorrection": "reflection"
141
+ }
142
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "c": [
3
+ "#474747",
4
+ "#FF2C00",
5
+ "#0C5DA5"
6
+ ],
7
+ "loc": {
8
+ "go": 0,
9
+ "xloc": [
10
+ 1,
11
+ 2,
12
+ 3
13
+ ]
14
+ },
15
+ "style": {
16
+ "export": null
17
+ },
18
+ "layer": [
19
+ "s",
20
+ "e"
21
+ ],
22
+ "b": {
23
+ "go": 0,
24
+ "loc": "c",
25
+ "FaceColor": [
26
+ "#474747",
27
+ "#FF2C00",
28
+ "#0C5DA5"
29
+ ],
30
+ "FaceAlpha": 1,
31
+ "EdgeColor": "k",
32
+ "EdgeAlpha": 1,
33
+ "LineStyle": "-",
34
+ "LineWidth": 0.8,
35
+ "x_width": 0.2,
36
+ "ShowBaseLine": "off",
37
+ "hatch": null
38
+ },
39
+ "e": {
40
+ "go": 1,
41
+ "loc": "c",
42
+ "LineWidth": 1,
43
+ "CapLineWidth": 1,
44
+ "CapSize": 2,
45
+ "Marker": "d",
46
+ "LineStyle": "none",
47
+ "LineColor": "k",
48
+ "LineJoin": "round",
49
+ "MarkerSize": 12,
50
+ "FaceColor": [
51
+ "#474747",
52
+ "#FF2C00",
53
+ "#0C5DA5"
54
+ ],
55
+ "MarkerEdgeColor": [
56
+ "k"
57
+ ],
58
+ "Visible": true,
59
+ "Orientation": "vertical",
60
+ "error": "sem",
61
+ "x_width": 0.1,
62
+ "cap_dir": "b"
63
+ },
64
+ "s": {
65
+ "go": 1,
66
+ "loc": "c",
67
+ "FaceColor": "w",
68
+ "cmap": null,
69
+ "FaceAlpha": 1,
70
+ "x_width": 0.05,
71
+ "Marker": "o",
72
+ "MarkerSize": 15,
73
+ "LineWidth": 0.8,
74
+ "MarkerEdgeColor": "k"
75
+ },
76
+ "l": {
77
+ "go": 1,
78
+ "LineStyle": "-",
79
+ "LineColor": "k",
80
+ "LineWidth": 0.5,
81
+ "LineAlpha": 0.5
82
+ },
83
+ "bx": {
84
+ "go": 0,
85
+ "loc": "c",
86
+ "FaceColor": [
87
+ "#474747",
88
+ "#FF2C00",
89
+ "#0C5DA5"
90
+ ],
91
+ "EdgeColor": "k",
92
+ "FaceAlpha": 0.85,
93
+ "EdgeAlpha": 1,
94
+ "LineStyle": "-",
95
+ "x_width": 0.1,
96
+ "ShowBaseLine": "off",
97
+ "Notch": false,
98
+ "Outliers": "on",
99
+ "OutlierMarker": "+",
100
+ "OutlierColor": "r",
101
+ "OutlierSize": 6,
102
+ "LineWidth": 0.5,
103
+ "Whisker": 0.5,
104
+ "Orientation": "vertical",
105
+ "BoxLineWidth": 0.5,
106
+ "WhiskerLineStyle": "-",
107
+ "WhiskerLineColor": "k",
108
+ "WhiskerLineWidth": 0.5,
109
+ "Caps": true,
110
+ "CapLineColor": "k",
111
+ "CapLineWidth": 0.5,
112
+ "CapSize": 0.1,
113
+ "MedianLine": true,
114
+ "MedianLineStyle": "-",
115
+ "MedianStyle": "line",
116
+ "MedianLineColor": "k",
117
+ "MedianLineWidth": 2.0,
118
+ "MedianLineTop": false,
119
+ "MeanLine": false,
120
+ "showmeans": false,
121
+ "MeanLineStyle": "-",
122
+ "MeanLineColor": "w",
123
+ "MeanLineWidth": 2.0
124
+ },
125
+ "v": {
126
+ "go": 0,
127
+ "x_width": 0.3,
128
+ "loc": "r",
129
+ "EdgeColor": "none",
130
+ "FaceColor": [
131
+ "#474747",
132
+ "#FF2C00",
133
+ "#0C5DA5"
134
+ ],
135
+ "FaceAlpha": 0.3,
136
+ "BandWidth": "scott",
137
+ "Function": "pdf",
138
+ "Kernel": "gau",
139
+ "NumPoints": 500,
140
+ "BoundaryCorrection": "reflection"
141
+ }
142
+ }
py2ls/plot.py CHANGED
@@ -3,12 +3,13 @@ import numpy as np
3
3
  import pandas as pd
4
4
  from matplotlib.colors import to_rgba
5
5
  from scipy.stats import gaussian_kde
6
-
6
+ import seaborn as sns
7
7
  import matplotlib
8
8
  import matplotlib.ticker as tck
9
9
  from cycler import cycler
10
10
  import logging
11
- from .ips import fsave
11
+ import os
12
+ from .ips import fsave, fload, mkdir
12
13
 
13
14
  # Suppress INFO messages from fontTools
14
15
  logging.getLogger("fontTools").setLevel(logging.WARNING)
@@ -475,12 +476,15 @@ def catplot(data, *args, **kwargs):
475
476
  data = df2array(data=data, x=x, y=y, hue=hue)
476
477
  xticklabels = []
477
478
  if hue is not None:
479
+ # for i in df[x].unique().tolist():
480
+ # for j in df[hue].unique().tolist():
481
+ # xticklabels.append(i + "-" + j)
478
482
  for i in df[x].unique().tolist():
479
- for j in df[hue].unique().tolist():
480
- xticklabels.append(i + "-" + j)
483
+ xticklabels.append(i)
481
484
  x_len = len(df[x].unique().tolist())
482
485
  hue_len = len(df[hue].unique().tolist())
483
486
  xticks = generate_xticks_with_gap(x_len, hue_len)
487
+ xticks_x_loc = generate_xticks_x_labels(x_len, hue_len)
484
488
  default_x_width = 0.85
485
489
  legend_hue = df[hue].unique().tolist()
486
490
  default_colors = get_color(hue_len)
@@ -488,18 +492,19 @@ def catplot(data, *args, **kwargs):
488
492
  for i in df[x].unique().tolist():
489
493
  xticklabels.append(i)
490
494
  xticks = np.arange(1, len(xticklabels) + 1).tolist()
495
+ xticks_x_loc = np.arange(1, len(xticklabels) + 1).tolist()
491
496
  legend_hue = xticklabels
492
497
  default_colors = get_color(len(xticklabels))
493
498
  default_x_width = 0.5
494
499
 
495
500
  # when the xticklabels are too long, rotate the labels a bit
496
501
 
497
- xangle = 30 if max([len(i) for i in xticklabels]) > 5 else 0
502
+ xangle = 30 if max([len(i) for i in xticklabels]) > 50 else 0
498
503
  if kw_figsets is not None:
499
504
  kw_figsets = {
500
505
  "ylabel": y,
501
506
  # "xlabel": x,
502
- "xticks": xticks,
507
+ "xticks": xticks_x_loc, # xticks,
503
508
  "xticklabels": xticklabels,
504
509
  "xangle": xangle,
505
510
  **kw_figsets,
@@ -508,7 +513,7 @@ def catplot(data, *args, **kwargs):
508
513
  kw_figsets = {
509
514
  "ylabel": y,
510
515
  # "xlabel": x,
511
- "xticks": xticks,
516
+ "xticks": xticks_x_loc, # xticks,
512
517
  "xticklabels": xticklabels,
513
518
  "xangle": xangle,
514
519
  }
@@ -536,9 +541,9 @@ def catplot(data, *args, **kwargs):
536
541
  opt["loc"].setdefault("xloc", xticks)
537
542
 
538
543
  # export setting
539
- opt.setdefault("export", {})
540
- opt["export"].setdefault("path", None)
541
- print(opt["export"])
544
+ opt.setdefault("style", {})
545
+ opt["style"].setdefault("export", None)
546
+ print(opt["style"])
542
547
 
543
548
  # opt.setdefault('layer', {})
544
549
  opt.setdefault("layer", ["b", "bx", "e", "v", "s", "l"])
@@ -572,7 +577,7 @@ def catplot(data, *args, **kwargs):
572
577
  opt["e"].setdefault("Visible", True)
573
578
  opt["e"].setdefault("Orientation", "vertical")
574
579
  opt["e"].setdefault("error", "sem")
575
- opt["e"].setdefault("x_width", opt["b"]["x_width"] / 5)
580
+ opt["e"].setdefault("x_width", default_x_width / 5)
576
581
  opt["e"].setdefault("cap_dir", "b")
577
582
 
578
583
  opt.setdefault("s", {})
@@ -581,7 +586,7 @@ def catplot(data, *args, **kwargs):
581
586
  opt["s"].setdefault("FaceColor", "w")
582
587
  opt["s"].setdefault("cmap", None)
583
588
  opt["s"].setdefault("FaceAlpha", 1)
584
- opt["s"].setdefault("x_width", opt["b"]["x_width"] / 5)
589
+ opt["s"].setdefault("x_width", default_x_width / 5)
585
590
  opt["s"].setdefault("Marker", "o")
586
591
  opt["s"].setdefault("MarkerSize", 15)
587
592
  opt["s"].setdefault("LineWidth", 0.8)
@@ -602,7 +607,7 @@ def catplot(data, *args, **kwargs):
602
607
  opt["bx"].setdefault("FaceAlpha", 0.85)
603
608
  opt["bx"].setdefault("EdgeAlpha", 1)
604
609
  opt["bx"].setdefault("LineStyle", "-")
605
- opt["bx"].setdefault("x_width", 0.2)
610
+ opt["bx"].setdefault("x_width", default_x_width / 5)
606
611
  opt["bx"].setdefault("ShowBaseLine", "off")
607
612
  opt["bx"].setdefault("Notch", False)
608
613
  opt["bx"].setdefault("Outliers", "on")
@@ -611,28 +616,29 @@ def catplot(data, *args, **kwargs):
611
616
  opt["bx"].setdefault("OutlierSize", 6)
612
617
  # opt['bx'].setdefault('PlotStyle', 'traditional')
613
618
  # opt['bx'].setdefault('FactorDirection', 'auto')
614
- opt["bx"].setdefault("Whisker", 0.5)
619
+ opt["bx"].setdefault("LineWidth", 0.5)
620
+ opt["bx"].setdefault("Whisker", opt["bx"]["LineWidth"])
615
621
  opt["bx"].setdefault("Orientation", "vertical")
616
- opt["bx"].setdefault("BoxLineWidth", 0.5)
622
+ opt["bx"].setdefault("BoxLineWidth", opt["bx"]["LineWidth"])
617
623
  opt["bx"].setdefault("FaceColor", "k")
618
624
  opt["bx"].setdefault("WhiskerLineStyle", "-")
619
625
  opt["bx"].setdefault("WhiskerLineColor", "k")
620
- opt["bx"].setdefault("WhiskerLineWidth", 0.5)
626
+ opt["bx"].setdefault("WhiskerLineWidth", opt["bx"]["LineWidth"])
621
627
  opt["bx"].setdefault("Caps", True)
622
628
  opt["bx"].setdefault("CapLineColor", "k")
623
- opt["bx"].setdefault("CapLineWidth", 0.5)
629
+ opt["bx"].setdefault("CapLineWidth", opt["bx"]["LineWidth"])
624
630
  opt["bx"].setdefault("CapSize", 0.2)
625
631
  opt["bx"].setdefault("MedianLine", True)
626
632
  opt["bx"].setdefault("MedianLineStyle", "-")
627
633
  opt["bx"].setdefault("MedianStyle", "line")
628
634
  opt["bx"].setdefault("MedianLineColor", "k")
629
- opt["bx"].setdefault("MedianLineWidth", 2)
635
+ opt["bx"].setdefault("MedianLineWidth", opt["bx"]["LineWidth"] * 4)
630
636
  opt["bx"].setdefault("MedianLineTop", False)
631
637
  opt["bx"].setdefault("MeanLine", False)
632
638
  opt["bx"].setdefault("showmeans", opt["bx"]["MeanLine"])
633
639
  opt["bx"].setdefault("MeanLineStyle", "-")
634
640
  opt["bx"].setdefault("MeanLineColor", "w")
635
- opt["bx"].setdefault("MeanLineWidth", 2)
641
+ opt["bx"].setdefault("MeanLineWidth", opt["bx"]["LineWidth"] * 4)
636
642
 
637
643
  # Violin plot options
638
644
  opt.setdefault("v", {})
@@ -648,6 +654,16 @@ def catplot(data, *args, **kwargs):
648
654
  opt["v"].setdefault("NumPoints", 500)
649
655
  opt["v"].setdefault("BoundaryCorrection", "reflection")
650
656
 
657
+ # load style:
658
+ style_use = kwargs.get("style_use", None)
659
+ if style_use:
660
+ try:
661
+ dir_curr_script = os.path.dirname(os.path.abspath(__file__))
662
+ dir_style = dir_curr_script + "/data/styles/"
663
+ style_load = fload(dir_style + style_use + ".json")
664
+ opt.update(style_load)
665
+ except:
666
+ print(f"cannot find the style'{style_name}'")
651
667
  data_m = np.nanmean(data, axis=0)
652
668
  nr, nc = data.shape
653
669
 
@@ -705,15 +721,19 @@ def catplot(data, *args, **kwargs):
705
721
  plot_violin(data, opt["v"], xloc, ax, label=None)
706
722
  elif all([layer == "l", opt["l"]["go"], opt["s"]["go"]]):
707
723
  plot_lines(data, opt["l"], opt["s"], ax)
708
-
724
+ else:
725
+ print("layers run some problems")
709
726
  if kw_figsets is not None:
710
727
  figsets(ax=ax, **kw_figsets)
711
728
  show_legend = kwargs.get("show_legend", True)
712
729
  if show_legend:
713
730
  ax.legend()
714
- export_style = kwargs.get("export_style", None)
715
- if export_style:
716
- fsave(export_style, opt)
731
+
732
+ style_export = kwargs.get("style_export", None)
733
+ if style_export and (style_export != style_use):
734
+ dir_curr_script = os.path.dirname(os.path.abspath(__file__))
735
+ dir_style = dir_curr_script + "/data/styles/"
736
+ fsave(dir_style + style_export + ".json", opt)
717
737
  return ax, opt
718
738
  else:
719
739
  col_names = data[col].unique().tolist()
@@ -729,10 +749,10 @@ def catplot(data, *args, **kwargs):
729
749
  # ax = axs[i][0] if len(col_names) > 1 else axs[0]
730
750
  if i < len(col_names):
731
751
  df_sub = data.loc[data[col] == col_names[i]]
732
- catplot(ax=ax, data=df_sub, **kwargs)
752
+ _, opt = catplot(ax=ax, data=df_sub, **kwargs)
733
753
  ax.set_title(col_names[i])
734
754
  print(f"Axis layout shape: {axs.shape}")
735
- return axs
755
+ return axs, opt
736
756
 
737
757
 
738
758
  def get_cmap():
@@ -1700,3 +1720,11 @@ def generate_xticks_with_gap(x_len, hue_len):
1700
1720
  positive_array = concatenated_array[concatenated_array > 0].tolist()
1701
1721
 
1702
1722
  return positive_array
1723
+
1724
+
1725
+ def generate_xticks_x_labels(x_len, hue_len):
1726
+ arrays = [
1727
+ np.arange(1, hue_len + 1) + hue_len * (x_len - i) + (x_len - i)
1728
+ for i in range(max(x_len, hue_len), 0, -1) # i iterates from 3 to 1
1729
+ ]
1730
+ return [np.mean(i) for i in arrays if np.mean(i) > 0]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2ls
3
- Version: 0.1.9.0
3
+ Version: 0.1.9.1
4
4
  Summary: py(thon)2(too)ls
5
5
  Author: Jianfeng
6
6
  Author-email: Jianfeng.Liu0413@gmail.com
@@ -126,22 +126,28 @@ py2ls/__init__.py,sha256=Nn8jTIvySX7t7DMJ8VNRVctTStgXGjHldOIdZ35PdW8,165
126
126
  py2ls/brain_atlas.py,sha256=w1o5EelRjq89zuFJUNSz4Da8HnTCwAwDAZ4NU4a-bAY,5486
127
127
  py2ls/chat.py,sha256=Yr22GoIvoWhpV3m4fdwV_I0Mn77La346_ymSinR-ORA,3793
128
128
  py2ls/correlators.py,sha256=RbOaJIPLCHJtUm5SFi_4dCJ7VFUPWR0PErfK3K26ad4,18243
129
- py2ls/data/.DS_Store,sha256=1lFlJ5EFymdzGAUAaI30vcaaLHt3F1LwpG7xILf9jsM,6148
129
+ py2ls/data/.DS_Store,sha256=iH2O541jT_5mlTPavY_d5V2prS9zhNx4Pv7yhmbwaHI,6148
130
130
  py2ls/data/db2ls_sql_chtsht.json,sha256=ls9d7Sm8TLeujanWHfHlWhU85Qz1KnAizO_9X3wUH7E,6933
131
131
  py2ls/data/docs_links.json,sha256=kXgbbWo0b8bfV4n6iuuUNLnZipIyLzokUO6Lzmf7nO4,101829
132
132
  py2ls/data/lang_code_iso639.json,sha256=qZiU7H2RLJjDMXK22C-jhwzLJCI5vKmampjB1ys4ek4,2157
133
+ py2ls/data/styles/style1.json,sha256=Q3tdH0Sf08FjNUZE5mELA45JEw3BXjSAL2nLfFDn1bU,3101
134
+ py2ls/data/styles/style2.json,sha256=2xhDv-_qQOKaODy8fWRoaQk_W5-I3EdA6uh4JNnINGg,3124
135
+ py2ls/data/styles/style3.json,sha256=0lHmjFGqlf1c7HLllsgGVNFkuEsqSCicBv-iOTB9hRk,3126
136
+ py2ls/data/styles/style4.json,sha256=G8thPHwmJyS3kDletrh3NkapZ03bNfey2-zpG4erBfk,3072
137
+ py2ls/data/styles/style5.json,sha256=0bqt3CYM1iBtu_7D8LmurnZ2mlrw-zOdUMUpnUADih4,3069
138
+ py2ls/data/styles/style6.json,sha256=0bqt3CYM1iBtu_7D8LmurnZ2mlrw-zOdUMUpnUADih4,3069
133
139
  py2ls/db2ls.py,sha256=MMfFX47aIPIyu7fU9aPvX9lbPRPYOpJ_VXwlnWk-8qo,13615
134
140
  py2ls/doc.py,sha256=xN3g1OWfoaGUhikbJ0NqbN5eKy1VZVvWwRlhHMgyVEc,4243
135
141
  py2ls/export_requirements.py,sha256=x2WgUF0jYKz9GfA1MVKN-MdsM-oQ8yUeC6Ua8oCymio,2325
136
142
  py2ls/freqanalysis.py,sha256=F4218VSPbgL5tnngh6xNCYuNnfR-F_QjECUUxrPYZss,32594
137
143
  py2ls/ips.py,sha256=N7MdOCgJXDQu73YkJQTtDN3RSntzXX7V0MOJ1NYBLEk,100572
138
144
  py2ls/netfinder.py,sha256=OMStrwMAASf1ajlyEfseoaEygo7G5WKBAFRE0LY15Lw,49477
139
- py2ls/plot.py,sha256=1hwNRxvI-oHwyvs6coupyl_xR6c3aLeIcgSnenl-i4Y,65406
145
+ py2ls/plot.py,sha256=kR8NcWUnzqCEi0r8ZPOaOtk-S5JUuLpjq7wsWSf39wc,66893
140
146
  py2ls/setuptools-70.1.0-py3-none-any.whl,sha256=2bi3cUVal8ip86s0SOvgspteEF8SKLukECi-EWmFomc,882588
141
147
  py2ls/sleep_events_detectors.py,sha256=bQA3HJqv5qnYKJJEIhCyhlDtkXQfIzqksnD0YRXso68,52145
142
148
  py2ls/stats.py,sha256=Wd9yCKQ_61QD29WMEgMuEcreFxF91NmlPW65iWT2B5w,39041
143
149
  py2ls/translator.py,sha256=bc5FB-wqC4TtQz9gyCP1mE38HqNRJ_pmuRIgKnAlMzM,30581
144
150
  py2ls/wb_detector.py,sha256=7y6TmBUj9exCZeIgBAJ_9hwuhkDh1x_-yg4dvNY1_GQ,6284
145
- py2ls-0.1.9.0.dist-info/METADATA,sha256=vmri4oGNRRS-eJxRHjWOd2pOd2xq3iyOUkgX9LJsVTA,20017
146
- py2ls-0.1.9.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
147
- py2ls-0.1.9.0.dist-info/RECORD,,
151
+ py2ls-0.1.9.1.dist-info/METADATA,sha256=XToL4jUZomQ3-3jUt-v5uSY8pFwD6YQu_qfnxLtvAog,20017
152
+ py2ls-0.1.9.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
153
+ py2ls-0.1.9.1.dist-info/RECORD,,