MatplotLibAPI 3.0.2__tar.gz → 3.0.4__tar.gz
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.
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Timeserie.py +3 -4
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/pdAccessor.py +17 -17
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI.egg-info/PKG-INFO +3 -2
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI.egg-info/SOURCES.txt +0 -1
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/PKG-INFO +3 -2
- matplotlibapi-3.0.4/pyproject.toml +11 -0
- matplotlibapi-3.0.2/pyproject.toml +0 -3
- matplotlibapi-3.0.2/setup.py +0 -19
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/LICENSE +0 -0
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Bubble.py +0 -0
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Composite.py +0 -0
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Network.py +0 -0
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Pivot.py +0 -0
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Style.py +0 -0
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Table.py +0 -0
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/__init__.py +0 -0
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI.egg-info/dependency_links.txt +0 -0
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI.egg-info/requires.txt +1 -1
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI.egg-info/top_level.txt +0 -0
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/README.md +0 -0
- {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/setup.cfg +0 -0
|
@@ -5,7 +5,7 @@ import pandas as pd
|
|
|
5
5
|
import matplotlib.pyplot as plt
|
|
6
6
|
from matplotlib.axes import Axes
|
|
7
7
|
import seaborn as sns
|
|
8
|
-
from .Style import DynamicFuncFormatter, StyleTemplate, string_formatter, _validate_panda, bmk_formatter,format_func
|
|
8
|
+
from .Style import DynamicFuncFormatter, StyleTemplate, string_formatter, _validate_panda, bmk_formatter, format_func
|
|
9
9
|
from typing import Optional
|
|
10
10
|
|
|
11
11
|
TIMESERIE_STYLE_TEMPLATE = StyleTemplate(
|
|
@@ -15,20 +15,19 @@ TIMESERIE_STYLE_TEMPLATE = StyleTemplate(
|
|
|
15
15
|
|
|
16
16
|
# region Line
|
|
17
17
|
|
|
18
|
-
|
|
19
18
|
def plot_timeserie(pd_df: pd.DataFrame,
|
|
20
19
|
label: str,
|
|
21
20
|
x: str,
|
|
22
21
|
y: str,
|
|
23
22
|
title: Optional[str] = None,
|
|
24
23
|
style: StyleTemplate = TIMESERIE_STYLE_TEMPLATE,
|
|
24
|
+
max_values: int = 100,
|
|
25
25
|
sort_by: Optional[str] = None,
|
|
26
26
|
ascending: bool = False,
|
|
27
27
|
ax: Optional[Axes] = None) -> Axes:
|
|
28
28
|
|
|
29
29
|
_validate_panda(pd_df, cols=[label, x, y], sort_by=sort_by)
|
|
30
|
-
style.format_funcs=format_func(style.format_funcs,label=label,x=x,y=y)
|
|
31
|
-
|
|
30
|
+
style.format_funcs = format_func(style.format_funcs, label=label, x=x, y=y)
|
|
32
31
|
|
|
33
32
|
df = pd_df[[label, x, y]].sort_values(by=[label, x])
|
|
34
33
|
df[x] = pd.to_datetime(df[x])
|
|
@@ -8,7 +8,7 @@ import pandas as pd
|
|
|
8
8
|
from .Style import StyleTemplate
|
|
9
9
|
from .Bubble import plot_bubble, BUBBLE_STYLE_TEMPLATE
|
|
10
10
|
from .Composite import plot_composite_bubble
|
|
11
|
-
from .Timeserie import plot_timeserie,TIMESERIE_STYLE_TEMPLATE
|
|
11
|
+
from .Timeserie import plot_timeserie, TIMESERIE_STYLE_TEMPLATE
|
|
12
12
|
from .Table import plot_table, TABLE_STYLE_TEMPLATE
|
|
13
13
|
from .Network import (Graph)
|
|
14
14
|
|
|
@@ -88,24 +88,24 @@ class MatPlotLibAccessor:
|
|
|
88
88
|
ascending=ascending)
|
|
89
89
|
|
|
90
90
|
def plot_timeserie(self,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
label: str,
|
|
92
|
+
x: str,
|
|
93
|
+
y: str,
|
|
94
|
+
title: Optional[str] = None,
|
|
95
|
+
style: StyleTemplate = TIMESERIE_STYLE_TEMPLATE,
|
|
96
|
+
max_values: int = 20,
|
|
97
|
+
sort_by: Optional[str] = None,
|
|
98
|
+
ascending: bool = False) -> Axes:
|
|
99
99
|
|
|
100
100
|
return plot_timeserie(pd_df=self._obj,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
label=label,
|
|
102
|
+
x=x,
|
|
103
|
+
y=y,
|
|
104
|
+
title=title,
|
|
105
|
+
style=style,
|
|
106
|
+
max_values=max_values,
|
|
107
|
+
sort_by=sort_by,
|
|
108
|
+
ascending=ascending)
|
|
109
109
|
|
|
110
110
|
def plot_network(self,
|
|
111
111
|
source: str = "source",
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: MatplotLibAPI
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.4
|
|
4
|
+
Requires-Python: >=3.7
|
|
4
5
|
Description-Content-Type: text/markdown
|
|
5
6
|
License-File: LICENSE
|
|
6
7
|
Requires-Dist: pandas
|
|
7
8
|
Requires-Dist: matplotlib
|
|
9
|
+
Requires-Dist: networkx
|
|
8
10
|
Requires-Dist: seaborn
|
|
9
11
|
Requires-Dist: scikit-learn
|
|
10
|
-
Requires-Dist: networkx
|
|
11
12
|
|
|
12
13
|
# MatplotLibAPI
|
|
13
14
|
Simple Wrapper
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: MatplotLibAPI
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.4
|
|
4
|
+
Requires-Python: >=3.7
|
|
4
5
|
Description-Content-Type: text/markdown
|
|
5
6
|
License-File: LICENSE
|
|
6
7
|
Requires-Dist: pandas
|
|
7
8
|
Requires-Dist: matplotlib
|
|
9
|
+
Requires-Dist: networkx
|
|
8
10
|
Requires-Dist: seaborn
|
|
9
11
|
Requires-Dist: scikit-learn
|
|
10
|
-
Requires-Dist: networkx
|
|
11
12
|
|
|
12
13
|
# MatplotLibAPI
|
|
13
14
|
Simple Wrapper
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
[project]
|
|
5
|
+
name = "MatplotLibAPI"
|
|
6
|
+
version="v3.0.4"
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
requires-python=">=3.7"
|
|
9
|
+
dependencies = ["pandas","matplotlib","networkx","seaborn","scikit-learn",]
|
|
10
|
+
|
|
11
|
+
|
matplotlibapi-3.0.2/setup.py
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
from setuptools import setup, find_packages
|
|
3
|
-
|
|
4
|
-
requirements = []
|
|
5
|
-
requirements_file = 'requirements.txt'
|
|
6
|
-
|
|
7
|
-
# Check if the file exists
|
|
8
|
-
if os.path.exists(requirements_file):
|
|
9
|
-
with open(requirements_file) as f:
|
|
10
|
-
requirements = f.read().splitlines()
|
|
11
|
-
|
|
12
|
-
setup(
|
|
13
|
-
name='MatplotLibAPI',
|
|
14
|
-
version='v3.0.2',
|
|
15
|
-
packages=find_packages(),
|
|
16
|
-
install_requires=requirements,
|
|
17
|
-
long_description=open('README.md').read(),
|
|
18
|
-
long_description_content_type='text/markdown',
|
|
19
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|