PyBarePlot 0.0.1__tar.gz → 0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyBarePlot
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: SVG chart generator CLI and Python module for creating visual charts with support for styling, legends, gradients, and layout customization.
5
5
  Home-page: https://github.com/mauricelambert/PyBarePlot
6
6
  Download-URL: https://mauricelambert.github.io/info/python/code/PyBarePlot.pyz
@@ -229,9 +229,9 @@ chart.plot_radar([big, sme, public], fill_opacity=0.2)
229
229
  chart.draw_legend([big, sme, public])
230
230
  chart.save("examples/radar.svg")
231
231
 
232
- phishing = Graph([DataPoint(v, name=n) for v, n in zip([36, 30, 16, 16], ["2023","2024","2025","2026"])], name="Phishing", default_color="#ff6384")
233
- creds = Graph([DataPoint(v, name=n) for v, n in zip([25, 22, 13, 13], ["2023","2024","2025","2026"])], name="Credentials", default_color="#36a2eb")
234
- vuln = Graph([DataPoint(v, name=n) for v, n in zip([16, 20, 20, 31], ["2023","2024","2025","2026"])], name="Vulns", default_color="#ff9f40")
232
+ phishing = Graph([DataPoint(v, name=n) for v, n in zip([36, 30, 16, 16], [2023, 2024, 2025, 2026])], name="Phishing", default_color="#ff6384")
233
+ creds = Graph([DataPoint(v, name=n) for v, n in zip([25, 22, 13, 13], [2023, 2024, 2025, 2026])], name="Credentials", default_color="#36a2eb")
234
+ vuln = Graph([DataPoint(v, name=n) for v, n in zip([16, 20, 20, 31], [2023, 2024, 2025, 2026])], name="Vulns", default_color="#ff9f40")
235
235
  chart = SVGChart(900, 450, margin_top=20, margin_bottom=30, theme="dark")
236
236
  chart.plot_lines([phishing, creds, vuln])
237
237
  chart.draw_legend([phishing, creds, vuln])
@@ -256,23 +256,23 @@ chart.save("examples/horizontal-bars.svg")
256
256
 
257
257
  ### Pie chart
258
258
 
259
- ![Pie chart](examples/pie.svg)
259
+ ![Pie chart](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/pie.svg)
260
260
 
261
261
  ### Radar chart
262
262
 
263
- ![Radar chart](examples/radar.svg)
263
+ ![Radar chart](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/radar.svg)
264
264
 
265
265
  ### Line chart
266
266
 
267
- ![Lines chart](examples/lines.svg)
267
+ ![Lines chart](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/lines.svg)
268
268
 
269
269
  ### Grouped bars
270
270
 
271
- ![Grouped bars](examples/grouped-bars.svg)
271
+ ![Grouped bars](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/grouped-bars.svg)
272
272
 
273
273
  ### Horizontal bars
274
274
 
275
- ![Horizontal bars](examples/horizontal-bars.svg)
275
+ ![Horizontal bars](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/horizontal-bars.svg)
276
276
 
277
277
  ## Links
278
278
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyBarePlot
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: SVG chart generator CLI and Python module for creating visual charts with support for styling, legends, gradients, and layout customization.
5
5
  Home-page: https://github.com/mauricelambert/PyBarePlot
6
6
  Download-URL: https://mauricelambert.github.io/info/python/code/PyBarePlot.pyz
@@ -229,9 +229,9 @@ chart.plot_radar([big, sme, public], fill_opacity=0.2)
229
229
  chart.draw_legend([big, sme, public])
230
230
  chart.save("examples/radar.svg")
231
231
 
232
- phishing = Graph([DataPoint(v, name=n) for v, n in zip([36, 30, 16, 16], ["2023","2024","2025","2026"])], name="Phishing", default_color="#ff6384")
233
- creds = Graph([DataPoint(v, name=n) for v, n in zip([25, 22, 13, 13], ["2023","2024","2025","2026"])], name="Credentials", default_color="#36a2eb")
234
- vuln = Graph([DataPoint(v, name=n) for v, n in zip([16, 20, 20, 31], ["2023","2024","2025","2026"])], name="Vulns", default_color="#ff9f40")
232
+ phishing = Graph([DataPoint(v, name=n) for v, n in zip([36, 30, 16, 16], [2023, 2024, 2025, 2026])], name="Phishing", default_color="#ff6384")
233
+ creds = Graph([DataPoint(v, name=n) for v, n in zip([25, 22, 13, 13], [2023, 2024, 2025, 2026])], name="Credentials", default_color="#36a2eb")
234
+ vuln = Graph([DataPoint(v, name=n) for v, n in zip([16, 20, 20, 31], [2023, 2024, 2025, 2026])], name="Vulns", default_color="#ff9f40")
235
235
  chart = SVGChart(900, 450, margin_top=20, margin_bottom=30, theme="dark")
236
236
  chart.plot_lines([phishing, creds, vuln])
237
237
  chart.draw_legend([phishing, creds, vuln])
@@ -256,23 +256,23 @@ chart.save("examples/horizontal-bars.svg")
256
256
 
257
257
  ### Pie chart
258
258
 
259
- ![Pie chart](examples/pie.svg)
259
+ ![Pie chart](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/pie.svg)
260
260
 
261
261
  ### Radar chart
262
262
 
263
- ![Radar chart](examples/radar.svg)
263
+ ![Radar chart](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/radar.svg)
264
264
 
265
265
  ### Line chart
266
266
 
267
- ![Lines chart](examples/lines.svg)
267
+ ![Lines chart](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/lines.svg)
268
268
 
269
269
  ### Grouped bars
270
270
 
271
- ![Grouped bars](examples/grouped-bars.svg)
271
+ ![Grouped bars](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/grouped-bars.svg)
272
272
 
273
273
  ### Horizontal bars
274
274
 
275
- ![Horizontal bars](examples/horizontal-bars.svg)
275
+ ![Horizontal bars](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/horizontal-bars.svg)
276
276
 
277
277
  ## Links
278
278
 
@@ -27,7 +27,7 @@ with support for styling, legends, gradients, and layout
27
27
  customization.
28
28
  """
29
29
 
30
- __version__ = "0.0.1"
30
+ __version__ = "0.0.2"
31
31
  __author__ = "Maurice Lambert"
32
32
  __author_email__ = "mauricelambert434@gmail.com"
33
33
  __maintainer__ = "Maurice Lambert"
@@ -3110,6 +3110,10 @@ def _apply_background_decorations(
3110
3110
  for g in graphs:
3111
3111
  g.apply_color_steps([(float(min_v), float(max_v), color)])
3112
3112
 
3113
+ if args.show_points:
3114
+ for graph in graphs:
3115
+ graph.show_points = True
3116
+
3113
3117
 
3114
3118
  def _apply_foreground_decorations(
3115
3119
  chart: SVGChart, args: Namespace, graphs: List[Graph]
@@ -3125,10 +3129,6 @@ def _apply_foreground_decorations(
3125
3129
  else:
3126
3130
  chart.draw_legend(graphs)
3127
3131
 
3128
- if args.show_points:
3129
- for graph in graphs:
3130
- graph.show_points = True
3131
-
3132
3132
 
3133
3133
  def _validate_args(args: Namespace, graphs: List[Graph]) -> None:
3134
3134
  """
@@ -182,9 +182,9 @@ chart.plot_radar([big, sme, public], fill_opacity=0.2)
182
182
  chart.draw_legend([big, sme, public])
183
183
  chart.save("examples/radar.svg")
184
184
 
185
- phishing = Graph([DataPoint(v, name=n) for v, n in zip([36, 30, 16, 16], ["2023","2024","2025","2026"])], name="Phishing", default_color="#ff6384")
186
- creds = Graph([DataPoint(v, name=n) for v, n in zip([25, 22, 13, 13], ["2023","2024","2025","2026"])], name="Credentials", default_color="#36a2eb")
187
- vuln = Graph([DataPoint(v, name=n) for v, n in zip([16, 20, 20, 31], ["2023","2024","2025","2026"])], name="Vulns", default_color="#ff9f40")
185
+ phishing = Graph([DataPoint(v, name=n) for v, n in zip([36, 30, 16, 16], [2023, 2024, 2025, 2026])], name="Phishing", default_color="#ff6384")
186
+ creds = Graph([DataPoint(v, name=n) for v, n in zip([25, 22, 13, 13], [2023, 2024, 2025, 2026])], name="Credentials", default_color="#36a2eb")
187
+ vuln = Graph([DataPoint(v, name=n) for v, n in zip([16, 20, 20, 31], [2023, 2024, 2025, 2026])], name="Vulns", default_color="#ff9f40")
188
188
  chart = SVGChart(900, 450, margin_top=20, margin_bottom=30, theme="dark")
189
189
  chart.plot_lines([phishing, creds, vuln])
190
190
  chart.draw_legend([phishing, creds, vuln])
@@ -209,23 +209,23 @@ chart.save("examples/horizontal-bars.svg")
209
209
 
210
210
  ### Pie chart
211
211
 
212
- ![Pie chart](examples/pie.svg)
212
+ ![Pie chart](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/pie.svg)
213
213
 
214
214
  ### Radar chart
215
215
 
216
- ![Radar chart](examples/radar.svg)
216
+ ![Radar chart](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/radar.svg)
217
217
 
218
218
  ### Line chart
219
219
 
220
- ![Lines chart](examples/lines.svg)
220
+ ![Lines chart](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/lines.svg)
221
221
 
222
222
  ### Grouped bars
223
223
 
224
- ![Grouped bars](examples/grouped-bars.svg)
224
+ ![Grouped bars](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/grouped-bars.svg)
225
225
 
226
226
  ### Horizontal bars
227
227
 
228
- ![Horizontal bars](examples/horizontal-bars.svg)
228
+ ![Horizontal bars](https://github.com/mauricelambert/PyBarePlot/blob/main/examples/horizontal-bars.svg)
229
229
 
230
230
  ## Links
231
231
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  [project]
6
6
  name = "PyBarePlot"
7
- version = "0.0.1"
7
+ version = "0.0.2"
8
8
  dependencies = []
9
9
  authors = [
10
10
  {name = "Maurice Lambert", email = "mauricelambert434@gmail.com"},
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = PyBarePlot
3
- version = 0.0.1
3
+ version = 0.0.2
4
4
  author = Maurice Lambert
5
5
  author_email = mauricelambert434@gmail.com
6
6
  maintainer = Maurice Lambert
File without changes
File without changes
File without changes