MatplotLibAPI 4.0.0__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.
Files changed (79) hide show
  1. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/PKG-INFO +4 -4
  2. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/README.md +3 -3
  3. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/examples/network.py +6 -3
  4. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/pyproject.toml +1 -1
  5. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/accessor.py +90 -377
  6. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/area.py +74 -46
  7. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/bar.py +16 -42
  8. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/base_plot.py +45 -21
  9. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/box_violin.py +14 -43
  10. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/bubble.py +3 -147
  11. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/composite.py +7 -4
  12. matplotlibapi-4.0.2/src/MatplotLibAPI/heatmap.py +261 -0
  13. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/histogram.py +11 -29
  14. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/network/__init__.py +2 -0
  15. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/network/core.py +45 -53
  16. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/network/plot.py +96 -7
  17. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/pie.py +9 -44
  18. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/pivot.py +9 -24
  19. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/table.py +0 -25
  20. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/timeserie.py +0 -27
  21. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/treemap.py +3 -1
  22. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/typing.py +1 -4
  23. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/utils.py +49 -0
  24. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/waffle.py +0 -39
  25. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/word_cloud.py +4 -53
  26. matplotlibapi-4.0.2/tests/test_area.py +77 -0
  27. matplotlibapi-4.0.2/tests/test_bar.py +34 -0
  28. matplotlibapi-4.0.2/tests/test_heatmap.py +65 -0
  29. matplotlibapi-4.0.2/tests/test_histogram.py +30 -0
  30. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_network.py +85 -2
  31. matplotlibapi-4.0.2/tests/test_network_preprocessing.py +117 -0
  32. matplotlibapi-4.0.2/tests/test_pie.py +31 -0
  33. matplotlibapi-4.0.2/tests/test_pivot.py +31 -0
  34. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_smoke.py +22 -0
  35. matplotlibapi-4.0.0/src/MatplotLibAPI/heatmap.py +0 -223
  36. matplotlibapi-4.0.0/tests/test_area.py +0 -17
  37. matplotlibapi-4.0.0/tests/test_bar.py +0 -17
  38. matplotlibapi-4.0.0/tests/test_heatmap.py +0 -27
  39. matplotlibapi-4.0.0/tests/test_histogram.py +0 -15
  40. matplotlibapi-4.0.0/tests/test_pie.py +0 -15
  41. matplotlibapi-4.0.0/tests/test_pivot.py +0 -15
  42. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/.github/dependabot.yml +0 -0
  43. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/.github/workflows/ci.yml +0 -0
  44. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/.github/workflows/python-publish.yml +0 -0
  45. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/.gitignore +0 -0
  46. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/.pre-commit-config.yaml +0 -0
  47. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/AGENTS.md +0 -0
  48. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/LICENSE +0 -0
  49. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/SECURITY.md +0 -0
  50. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/SUGGESTIONS.md +0 -0
  51. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/examples/__init__.py +0 -0
  52. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/examples/network.png +0 -0
  53. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/examples/sample_data.py +0 -0
  54. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/scripts/pre_commit.sh +0 -0
  55. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/__init__.py +0 -0
  56. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/mcp/__init__.py +0 -0
  57. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/mcp/metadata.py +0 -0
  58. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/mcp/renderers.py +0 -0
  59. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/mcp_server.py +0 -0
  60. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/network/constants.py +0 -0
  61. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/network/scaling.py +0 -0
  62. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/sankey.py +0 -0
  63. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/style_template.py +0 -0
  64. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/src/MatplotLibAPI/sunburst.py +0 -0
  65. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/__init__.py +0 -0
  66. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/conftest.py +0 -0
  67. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_box_violin.py +0 -0
  68. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_bubble.py +0 -0
  69. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_composite.py +0 -0
  70. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_dependencies.py +0 -0
  71. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_mcp_server.py +0 -0
  72. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_sankey.py +0 -0
  73. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_style_template.py +0 -0
  74. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_sunburst.py +0 -0
  75. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_table.py +0 -0
  76. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_timeseries.py +0 -0
  77. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_treemap.py +0 -0
  78. {matplotlibapi-4.0.0 → matplotlibapi-4.0.2}/tests/test_waffle.py +0 -0
  79. {matplotlibapi-4.0.0 → 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.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
- ).fplot(title='Country Statistics')
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
- ).fplot()
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.fplot(title='City Network', edge_weight_col='distance_km')
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
- ).fplot(title='Country Statistics')
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
- ).fplot()
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.fplot(title='City Network', edge_weight_col='distance_km')
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.fplot(title="Network 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()
@@ -3,7 +3,7 @@ requires = ["hatchling"]
3
3
  build-backend = "hatchling.build"
4
4
  [project]
5
5
  name = "MatplotLibAPI"
6
- version = "4.0.0"
6
+ version = "4.0.2"
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.8"
9
9
  dependencies = [