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.
Files changed (21) hide show
  1. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Timeserie.py +3 -4
  2. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/pdAccessor.py +17 -17
  3. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI.egg-info/PKG-INFO +3 -2
  4. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI.egg-info/SOURCES.txt +0 -1
  5. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/PKG-INFO +3 -2
  6. matplotlibapi-3.0.4/pyproject.toml +11 -0
  7. matplotlibapi-3.0.2/pyproject.toml +0 -3
  8. matplotlibapi-3.0.2/setup.py +0 -19
  9. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/LICENSE +0 -0
  10. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Bubble.py +0 -0
  11. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Composite.py +0 -0
  12. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Network.py +0 -0
  13. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Pivot.py +0 -0
  14. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Style.py +0 -0
  15. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/Table.py +0 -0
  16. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI/__init__.py +0 -0
  17. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI.egg-info/dependency_links.txt +0 -0
  18. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI.egg-info/requires.txt +1 -1
  19. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/MatplotLibAPI.egg-info/top_level.txt +0 -0
  20. {matplotlibapi-3.0.2 → matplotlibapi-3.0.4}/README.md +0 -0
  21. {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
- 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:
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
- 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)
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.2
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,7 +1,6 @@
1
1
  LICENSE
2
2
  README.md
3
3
  pyproject.toml
4
- setup.py
5
4
  MatplotLibAPI/Bubble.py
6
5
  MatplotLibAPI/Composite.py
7
6
  MatplotLibAPI/Network.py
@@ -1,13 +1,14 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: MatplotLibAPI
3
- Version: 3.0.2
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
+
@@ -1,3 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools", "wheel"]
3
- build-backend = "setuptools.build_meta"
@@ -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
@@ -1,5 +1,5 @@
1
1
  pandas
2
2
  matplotlib
3
+ networkx
3
4
  seaborn
4
5
  scikit-learn
5
- networkx
File without changes
File without changes