MatplotLibAPI 4.0.4__tar.gz → 4.0.5__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.4 → matplotlibapi-4.0.5}/PKG-INFO +1 -1
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/pyproject.toml +1 -1
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_network.py +24 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/.github/dependabot.yml +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/.github/workflows/ci.yml +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/.github/workflows/python-publish.yml +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/.gitignore +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/.pre-commit-config.yaml +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/AGENTS.md +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/LICENSE +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/README.md +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/SECURITY.md +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/SUGGESTIONS.md +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/examples/__init__.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/examples/bubble.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/examples/network.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/examples/sample_data.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/scripts/pre_commit.sh +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/__init__.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/accessor.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/area.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/bar.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/base_plot.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/box_violin.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/bubble.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/composite.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/heatmap.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/histogram.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/mcp/__init__.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/mcp/metadata.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/mcp/renderers.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/mcp_server.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/network/__init__.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/network/constants.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/network/core.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/network/plot.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/network/scaling.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/pie.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/pivot.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/sankey.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/style_template.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/sunburst.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/table.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/timeserie.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/treemap.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/types.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/waffle.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/src/MatplotLibAPI/word_cloud.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/__init__.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/conftest.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_area.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_bar.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_box_violin.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_bubble.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_composite.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_dependencies.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_heatmap.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_histogram.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_mcp_server.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_network_preprocessing.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_pie.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_pivot.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_sankey.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_smoke.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_style_template.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_sunburst.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_table.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_timeseries.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_treemap.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_waffle.py +0 -0
- {matplotlibapi-4.0.4 → matplotlibapi-4.0.5}/tests/test_wordcloud.py +0 -0
|
@@ -121,6 +121,30 @@ def test_accessor_fplot_network_forwards_layout_seed(monkeypatch):
|
|
|
121
121
|
assert captured_layout_seed == [123]
|
|
122
122
|
|
|
123
123
|
|
|
124
|
+
def test_fplot_network_forwards_layout_seed_to_graph_fplot(monkeypatch):
|
|
125
|
+
"""Forward ``layout_seed`` from wrapper to ``NetworkGraph.fplot``."""
|
|
126
|
+
|
|
127
|
+
df = pd.DataFrame(
|
|
128
|
+
{
|
|
129
|
+
"source": ["a", "b", "c"],
|
|
130
|
+
"target": ["b", "c", "a"],
|
|
131
|
+
"weight": [1, 2, 3],
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
captured_layout_seed = []
|
|
135
|
+
|
|
136
|
+
def fake_fplot(self, *args, **kwargs): # type: ignore[override]
|
|
137
|
+
captured_layout_seed.append(kwargs.get("layout_seed"))
|
|
138
|
+
return plt.figure()
|
|
139
|
+
|
|
140
|
+
monkeypatch.setattr(NetworkGraph, "fplot", fake_fplot)
|
|
141
|
+
|
|
142
|
+
fig = fplot_network(df, layout_seed=99)
|
|
143
|
+
|
|
144
|
+
assert isinstance(fig, Figure)
|
|
145
|
+
assert captured_layout_seed == [99]
|
|
146
|
+
|
|
147
|
+
|
|
124
148
|
def test_softmax_matches_expected_probabilities():
|
|
125
149
|
"""Return softmax probabilities consistent with NumPy operations."""
|
|
126
150
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|