MatplotLibAPI 4.0.1__tar.gz → 4.0.2__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-4.0.1 → matplotlibapi-4.0.2}/PKG-INFO +4 -4
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/README.md +3 -3
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/examples/network.py +6 -3
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/pyproject.toml +1 -1
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/accessor.py +90 -377
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/area.py +5 -35
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/bar.py +0 -34
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/base_plot.py +45 -21
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/box_violin.py +3 -38
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/bubble.py +3 -148
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/composite.py +7 -4
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/heatmap.py +69 -54
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/histogram.py +0 -20
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/network/__init__.py +2 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/network/core.py +45 -54
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/network/plot.py +95 -6
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/pie.py +0 -36
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/pivot.py +0 -23
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/table.py +0 -26
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/timeserie.py +0 -28
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/treemap.py +3 -1
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/typing.py +1 -4
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/utils.py +26 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/waffle.py +0 -40
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/word_cloud.py +4 -54
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_heatmap.py +4 -2
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_network.py +85 -2
- matplotlibapi-4.0.2/tests/test_network_preprocessing.py +117 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/.github/dependabot.yml +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/.github/workflows/ci.yml +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/.github/workflows/python-publish.yml +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/.gitignore +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/.pre-commit-config.yaml +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/AGENTS.md +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/LICENSE +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/SECURITY.md +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/SUGGESTIONS.md +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/examples/__init__.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/examples/network.png +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/examples/sample_data.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/scripts/pre_commit.sh +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/__init__.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/mcp/__init__.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/mcp/metadata.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/mcp/renderers.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/mcp_server.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/network/constants.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/network/scaling.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/sankey.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/style_template.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/src/MatplotLibAPI/sunburst.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/__init__.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/conftest.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_area.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_bar.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_box_violin.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_bubble.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_composite.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_dependencies.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_histogram.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_mcp_server.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_pie.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_pivot.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_sankey.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_smoke.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_style_template.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_sunburst.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_table.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_timeseries.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_treemap.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_waffle.py +0 -0
- {matplotlibapi-4.0.1 → matplotlibapi-4.0.2}/tests/test_wordcloud.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MatplotLibAPI
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.2
|
|
4
4
|
License-File: LICENSE
|
|
5
5
|
Requires-Python: >=3.8
|
|
6
6
|
Requires-Dist: kaleido
|
|
@@ -66,7 +66,7 @@ fig = Bubble(
|
|
|
66
66
|
x='gdp_per_capita',
|
|
67
67
|
y='population',
|
|
68
68
|
z='population',
|
|
69
|
-
).
|
|
69
|
+
).fplot_w(title='Country Statistics')
|
|
70
70
|
|
|
71
71
|
# Display the plot
|
|
72
72
|
plt.show()
|
|
@@ -178,7 +178,7 @@ fig = Bubble(
|
|
|
178
178
|
x='gdp_per_capita',
|
|
179
179
|
y='life_expectancy',
|
|
180
180
|
z='population',
|
|
181
|
-
).
|
|
181
|
+
).fplot_w()
|
|
182
182
|
fig.show()
|
|
183
183
|
```
|
|
184
184
|
|
|
@@ -195,7 +195,7 @@ graph = NetworkGraph.from_pandas_edgelist(
|
|
|
195
195
|
target='city_b',
|
|
196
196
|
edge_weight_col='distance_km',
|
|
197
197
|
)
|
|
198
|
-
fig = graph.
|
|
198
|
+
fig = graph.fplot_w(title='City Network', edge_weight_col='distance_km')
|
|
199
199
|
fig.show()
|
|
200
200
|
```
|
|
201
201
|
|
|
@@ -39,7 +39,7 @@ fig = Bubble(
|
|
|
39
39
|
x='gdp_per_capita',
|
|
40
40
|
y='population',
|
|
41
41
|
z='population',
|
|
42
|
-
).
|
|
42
|
+
).fplot_w(title='Country Statistics')
|
|
43
43
|
|
|
44
44
|
# Display the plot
|
|
45
45
|
plt.show()
|
|
@@ -151,7 +151,7 @@ fig = Bubble(
|
|
|
151
151
|
x='gdp_per_capita',
|
|
152
152
|
y='life_expectancy',
|
|
153
153
|
z='population',
|
|
154
|
-
).
|
|
154
|
+
).fplot_w()
|
|
155
155
|
fig.show()
|
|
156
156
|
```
|
|
157
157
|
|
|
@@ -168,7 +168,7 @@ graph = NetworkGraph.from_pandas_edgelist(
|
|
|
168
168
|
target='city_b',
|
|
169
169
|
edge_weight_col='distance_km',
|
|
170
170
|
)
|
|
171
|
-
fig = graph.
|
|
171
|
+
fig = graph.fplot_w(title='City Network', edge_weight_col='distance_km')
|
|
172
172
|
fig.show()
|
|
173
173
|
```
|
|
174
174
|
|
|
@@ -10,6 +10,7 @@ from matplotlib.figure import Figure
|
|
|
10
10
|
import pandas as pd
|
|
11
11
|
|
|
12
12
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "src"))
|
|
13
|
+
from MatplotLibAPI.network import NetworkGraph
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
def generate_sample_network_data() -> pd.DataFrame:
|
|
@@ -25,17 +26,19 @@ def generate_sample_network_data() -> pd.DataFrame:
|
|
|
25
26
|
|
|
26
27
|
def plot_sample_network_data() -> Figure:
|
|
27
28
|
"""Load a sample DataFrame for testing."""
|
|
28
|
-
from MatplotLibAPI.network import NetworkGraph
|
|
29
29
|
|
|
30
30
|
pd_df = generate_sample_network_data()
|
|
31
31
|
graph = NetworkGraph.from_pandas_edgelist(
|
|
32
32
|
pd_df, source="city_a", target="city_b", edge_weight_col="distance_km"
|
|
33
33
|
)
|
|
34
|
-
plot_fig = graph.
|
|
34
|
+
plot_fig = graph.fplot_w(title="Network Graph")
|
|
35
35
|
|
|
36
36
|
return plot_fig
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
if __name__ == "__main__":
|
|
40
|
+
plot_df = generate_sample_network_data()
|
|
41
|
+
f = plot_df.mpl.fplot_network(
|
|
42
|
+
source="city_a", target="city_b", edge_weight_col="distance_km"
|
|
43
|
+
)
|
|
40
44
|
plot_fig = plot_sample_network_data()
|
|
41
|
-
plot_fig.show()
|