MatplotLibAPI 3.2.12__py3-none-any.whl → 3.2.13__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.
MatplotLibAPI/Bubble.py CHANGED
@@ -3,11 +3,15 @@
3
3
  from typing import Optional, Tuple
4
4
  import pandas as pd
5
5
  import matplotlib.pyplot as plt
6
+ from matplotlib.ticker import NullLocator
6
7
  from matplotlib.axes import Axes
7
8
  from matplotlib.figure import Figure
8
9
  import seaborn as sns
10
+
9
11
 
10
- from .StyleTemplate import DynamicFuncFormatter, StyleTemplate, generate_ticks, string_formatter, bmk_formatter, percent_formatter, format_func, validate_dataframe
12
+ from MatplotLibAPI.StyleTemplate import DynamicFuncFormatter, StyleTemplate, generate_ticks, string_formatter, bmk_formatter, percent_formatter, format_func, validate_dataframe
13
+
14
+ MAX_RESULTS = 50
11
15
 
12
16
  BUBBLE_STYLE_TEMPLATE = StyleTemplate(
13
17
  format_funcs={"label": string_formatter,
@@ -25,9 +29,9 @@ def aplot_bubble(
25
29
  x: str,
26
30
  y: str,
27
31
  z: str,
28
- title: Optional[str] = "Test",
32
+ title: Optional[str] = None,
29
33
  style: StyleTemplate = BUBBLE_STYLE_TEMPLATE,
30
- max_values: int = BUBBLE_STYLE_TEMPLATE,
34
+ max_values: int = MAX_RESULTS,
31
35
  center_to_mean: bool = False,
32
36
  sort_by: Optional[str] = None,
33
37
  ascending: bool = False,
@@ -86,6 +90,13 @@ def aplot_bubble(
86
90
  y_max = pd_df[y].max()
87
91
  y_mean = pd_df[y].mean()
88
92
  ax.set_yticks(generate_ticks(y_min, y_max, num_ticks=style.y_ticks))
93
+
94
+
95
+ if style.yscale == 'log':
96
+ ax.yaxis.set_minor_locator(NullLocator()) # Disable minor ticks for log scale
97
+ else:
98
+ ax.minorticks_off() # Disable minor ticks for linear scale
99
+
89
100
  ax.yaxis.grid(True, "major", linewidth=.5, color=style.font_color)
90
101
  if style.format_funcs.get("y"):
91
102
  ax.yaxis.set_major_formatter(
@@ -6,10 +6,10 @@ import matplotlib.pyplot as plt
6
6
  from matplotlib.figure import Figure
7
7
  import plotly.graph_objects as go
8
8
  from plotly.subplots import make_subplots
9
- from .Bubble import aplot_bubble, BUBBLE_STYLE_TEMPLATE
10
- from .Table import aplot_table
11
- from .Treemap import aplot_treemap, TREEMAP_STYLE_TEMPLATE
12
- from .StyleTemplate import StyleTemplate, format_func, validate_dataframe
9
+ from MatplotLibAPI.Bubble import aplot_bubble, BUBBLE_STYLE_TEMPLATE
10
+ from MatplotLibAPI.Table import aplot_table
11
+ from MatplotLibAPI.Treemap import aplot_treemap, TREEMAP_STYLE_TEMPLATE
12
+ from MatplotLibAPI.StyleTemplate import StyleTemplate, format_func, validate_dataframe
13
13
 
14
14
 
15
15
  def plot_composite_bubble(
MatplotLibAPI/Network.py CHANGED
@@ -14,7 +14,7 @@ from networkx import Graph
14
14
  from networkx.classes.graph import Graph
15
15
 
16
16
 
17
- from .StyleTemplate import StyleTemplate, string_formatter, format_func, validate_dataframe
17
+ from MatplotLibAPI.StyleTemplate import StyleTemplate, string_formatter, format_func, validate_dataframe
18
18
 
19
19
  NETWORK_STYLE_TEMPLATE = StyleTemplate(
20
20
  )
MatplotLibAPI/Pivot.py CHANGED
@@ -4,14 +4,12 @@ from typing import List, Optional, Union
4
4
 
5
5
  import pandas as pd
6
6
 
7
- import matplotlib.dates as mdates
8
7
  import matplotlib.pyplot as plt
9
8
  from matplotlib.axes import Axes
10
9
  from matplotlib.dates import DateFormatter, MonthLocator
11
10
 
11
+ from MatplotLibAPI.StyleTemplate import StyleTemplate, DynamicFuncFormatter, validate_dataframe, generate_ticks, string_formatter, percent_formatter, format_func
12
12
 
13
- from . import DynamicFuncFormatter, StyleTemplate, generate_ticks, string_formatter, percent_formatter, format_func
14
- from .. import validate_dataframe
15
13
 
16
14
  PIVOTBARS_STYLE_TEMPLATE = StyleTemplate(
17
15
  background_color='black',
@@ -99,10 +99,7 @@ def format_func(
99
99
  # region Style
100
100
 
101
101
 
102
- MAX_RESULTS = 50
103
- X_COL = "index"
104
- Y_COL = "overlap"
105
- Z_COL = "users"
102
+
106
103
  FIG_SIZE = (19.2, 10.8)
107
104
  BACKGROUND_COLOR = 'black'
108
105
  TEXT_COLOR = 'white'
MatplotLibAPI/Table.py CHANGED
@@ -4,7 +4,7 @@ import matplotlib.pyplot as plt
4
4
  from matplotlib.axes import Axes
5
5
  from matplotlib.figure import Figure
6
6
 
7
- from .StyleTemplate import StyleTemplate, string_formatter, validate_dataframe
7
+ from MatplotLibAPI.StyleTemplate import StyleTemplate, string_formatter, validate_dataframe
8
8
 
9
9
  TABLE_STYLE_TEMPLATE = StyleTemplate(
10
10
  background_color='black',
@@ -7,7 +7,7 @@ from matplotlib.figure import Figure
7
7
  from matplotlib.axes import Axes
8
8
  import seaborn as sns
9
9
 
10
- from .StyleTemplate import DynamicFuncFormatter, StyleTemplate, string_formatter, bmk_formatter, format_func, validate_dataframe
10
+ from MatplotLibAPI.StyleTemplate import DynamicFuncFormatter, StyleTemplate, string_formatter, bmk_formatter, format_func, validate_dataframe
11
11
 
12
12
 
13
13
  TIMESERIE_STYLE_TEMPLATE = StyleTemplate(
MatplotLibAPI/Treemap.py CHANGED
@@ -5,7 +5,7 @@ import pandas as pd
5
5
  from pandas import CategoricalDtype, BooleanDtype
6
6
  import plotly.graph_objects as go
7
7
 
8
- from .StyleTemplate import StyleTemplate, string_formatter, percent_formatter, validate_dataframe
8
+ from MatplotLibAPI.StyleTemplate import StyleTemplate, string_formatter, percent_formatter, validate_dataframe
9
9
 
10
10
 
11
11
  TREEMAP_STYLE_TEMPLATE = StyleTemplate(
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: MatplotLibAPI
3
- Version: 3.2.12
3
+ Version: 3.2.13
4
4
  Requires-Python: >=3.7
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -12,6 +12,7 @@ Requires-Dist: seaborn
12
12
  Requires-Dist: scikit-learn
13
13
  Requires-Dist: kaleido
14
14
  Requires-Dist: nbformat
15
+ Dynamic: license-file
15
16
 
16
17
  # MatplotLibAPI
17
18
  Simple pandas Dataframe to generate plots:
@@ -0,0 +1,14 @@
1
+ MatplotLibAPI/Bubble.py,sha256=mZx7kdq77BhaayLBBCByRaLuZx3o_ImOMZUdu2CglNc,5380
2
+ MatplotLibAPI/Composite.py,sha256=vPUMkAAL6c_U6I3z2BR-vmUwIKzOQZBbOwgGDQYlvaE,7354
3
+ MatplotLibAPI/Network.py,sha256=7R5u1tUIcino-AnC4qWB6qYRfm7PqItE0zJ_k8OD7xA,18803
4
+ MatplotLibAPI/Pivot.py,sha256=_-IVZnr4tZjAm1GElXLFqhMQKGbrjR8v-hjaN5kBcE8,7162
5
+ MatplotLibAPI/StyleTemplate.py,sha256=UKGCja1_aY5ZklSVgebZ3ir3MT3L4o8OXFPsh6GGyG0,10901
6
+ MatplotLibAPI/Table.py,sha256=2n4wnvtSyEWwoFz27Iwb4XDmrWo2M0xsXxmlBTZHhFo,2822
7
+ MatplotLibAPI/Timeserie.py,sha256=HdvErYyj9XBVpJBKu4G4FMp44kruB1gv8CJ8EyxLgHo,4965
8
+ MatplotLibAPI/Treemap.py,sha256=V_SSYeUGz3nSek9N55UBDnz-XA56arHyZqEcLXDwZyM,3408
9
+ MatplotLibAPI/__init__.py,sha256=x0a0oIgfLMpshmS7B8nsklwqn2IIeo21v3vbhsYSrcA,14058
10
+ matplotlibapi-3.2.13.dist-info/licenses/LICENSE,sha256=hMErKLb6YZR3lRR5zr-vxeFkvY69QAaafgSpZ5-P1dQ,1067
11
+ matplotlibapi-3.2.13.dist-info/METADATA,sha256=hpjDjjfsvbcpwubKzPEwz-PrlSxIqD7RDsKq7jweHKA,485
12
+ matplotlibapi-3.2.13.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
13
+ matplotlibapi-3.2.13.dist-info/top_level.txt,sha256=MrzbBjDEW48Vb6YhQIqpFYGOhHzQnEIM5Qy2xy2iqew,14
14
+ matplotlibapi-3.2.13.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.3.0)
2
+ Generator: setuptools (80.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,14 +0,0 @@
1
- MatplotLibAPI/Bubble.py,sha256=ZtOTWGAnJ1zy7bjKQ3OF985R-iZHvZOo_rG1dZMbP-Q,5116
2
- MatplotLibAPI/Composite.py,sha256=tbpHKR5uijjJPF-2_hzf4og7nHYSkLQ1e3yVBYlLN8Q,7302
3
- MatplotLibAPI/Network.py,sha256=zzizLBAMD-nV-1WGZTIoOQn3SVsvr9R8Ba2DTCyuTvA,18790
4
- MatplotLibAPI/Pivot.py,sha256=Bo7ZpkxqoE75e8vpSsKIT5X2Q7lLdfAyy46ox1fARbc,7183
5
- MatplotLibAPI/StyleTemplate.py,sha256=YtDsDIEYjpHqLuj1YXlmLUbBdxHfoq7ndQ1sG4WD1IA,10967
6
- MatplotLibAPI/Table.py,sha256=p_nHXRiC6dneBSf0j5nx-hBijBSXd7NBLmdBicFUGqQ,2809
7
- MatplotLibAPI/Timeserie.py,sha256=B03xjcBCgWVpkDQKvoyGtNjm6OLtCo1fINyXJrXeWM8,4952
8
- MatplotLibAPI/Treemap.py,sha256=1WYHV9eaU4zcXrwTIScQvsGrfgiuYg-aAoeIhTZVPKw,3395
9
- MatplotLibAPI/__init__.py,sha256=x0a0oIgfLMpshmS7B8nsklwqn2IIeo21v3vbhsYSrcA,14058
10
- MatplotLibAPI-3.2.12.dist-info/LICENSE,sha256=hMErKLb6YZR3lRR5zr-vxeFkvY69QAaafgSpZ5-P1dQ,1067
11
- MatplotLibAPI-3.2.12.dist-info/METADATA,sha256=Wy8x6jhJA7Nk4bWRG4cpA5_At9e0lIIeuvyfQ2F9GYQ,463
12
- MatplotLibAPI-3.2.12.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
13
- MatplotLibAPI-3.2.12.dist-info/top_level.txt,sha256=MrzbBjDEW48Vb6YhQIqpFYGOhHzQnEIM5Qy2xy2iqew,14
14
- MatplotLibAPI-3.2.12.dist-info/RECORD,,