MatplotLibAPI 3.0.2__py3-none-any.whl → 3.0.4__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.
@@ -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",
@@ -0,0 +1,14 @@
1
+ Metadata-Version: 2.1
2
+ Name: MatplotLibAPI
3
+ Version: 3.0.4
4
+ Requires-Python: >=3.7
5
+ Description-Content-Type: text/markdown
6
+ License-File: LICENSE
7
+ Requires-Dist: pandas
8
+ Requires-Dist: matplotlib
9
+ Requires-Dist: networkx
10
+ Requires-Dist: seaborn
11
+ Requires-Dist: scikit-learn
12
+
13
+ # MatplotLibAPI
14
+ Simple Wrapper
@@ -4,11 +4,11 @@ MatplotLibAPI/Network.py,sha256=fq1-LfDKy3oC5JzqU7IyZudgR2plmziigjpm2TzEA3U,1328
4
4
  MatplotLibAPI/Pivot.py,sha256=8jRYdlvw8otrJ1hYBAaKQJoN84xe-YfroXmgRLykMmQ,7162
5
5
  MatplotLibAPI/Style.py,sha256=xtw71VWHSQEvts1nJdKR0c_9Rqef6EGkyyvgdTK5M7c,4632
6
6
  MatplotLibAPI/Table.py,sha256=Az5uX-ViqzJPTBym4QnUzn5PD5LEsVzQ9WohcSDFcK4,1990
7
- MatplotLibAPI/Timeserie.py,sha256=KOAK6cewddQWLFOFy98Db3BTNjWfv9TfJlPiJDybK84,3386
7
+ MatplotLibAPI/Timeserie.py,sha256=HRFHs_WzaZzLmWVVMBKVMP5M3oglsr1R9Ni53X7_HLI,3432
8
8
  MatplotLibAPI/__init__.py,sha256=-i49Ta56gER88f6R_BDOo-JiLc5UUGvxHg2aHdJv0PQ,457
9
- MatplotLibAPI/pdAccessor.py,sha256=OT03Z8V7ijWux0984IIuQegyobCSg_bhyGhtdejVs9I,4765
10
- MatplotLibAPI-3.0.2.dist-info/LICENSE,sha256=hMErKLb6YZR3lRR5zr-vxeFkvY69QAaafgSpZ5-P1dQ,1067
11
- MatplotLibAPI-3.0.2.dist-info/METADATA,sha256=H6N2R9VuSKlnIaB9Rp5z6ft3D7Xd-6AJBXP_MM3lJHg,151
12
- MatplotLibAPI-3.0.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
13
- MatplotLibAPI-3.0.2.dist-info/top_level.txt,sha256=MrzbBjDEW48Vb6YhQIqpFYGOhHzQnEIM5Qy2xy2iqew,14
14
- MatplotLibAPI-3.0.2.dist-info/RECORD,,
9
+ MatplotLibAPI/pdAccessor.py,sha256=7R4QoZDHFkf67rn1zDxJMkghQa-BUPu6Fy7TXVT9-OQ,4844
10
+ MatplotLibAPI-3.0.4.dist-info/LICENSE,sha256=hMErKLb6YZR3lRR5zr-vxeFkvY69QAaafgSpZ5-P1dQ,1067
11
+ MatplotLibAPI-3.0.4.dist-info/METADATA,sha256=spXzV0K_jdy4D5-4oi4plFlFaltrVQRjtsJUXbbCH90,297
12
+ MatplotLibAPI-3.0.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
13
+ MatplotLibAPI-3.0.4.dist-info/top_level.txt,sha256=MrzbBjDEW48Vb6YhQIqpFYGOhHzQnEIM5Qy2xy2iqew,14
14
+ MatplotLibAPI-3.0.4.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: MatplotLibAPI
3
- Version: 3.0.2
4
- Description-Content-Type: text/markdown
5
- License-File: LICENSE
6
-
7
- # MatplotLibAPI
8
- Simple Wrapper