plotly-print 0.2.0__tar.gz → 0.2.3__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 (112) hide show
  1. plotly_print-0.2.3/.cursor/rules/global.mdc +52 -0
  2. plotly_print-0.2.3/.cursor/rules/javascript.mdc +34 -0
  3. plotly_print-0.2.3/.cursor/rules/map.mdc +34 -0
  4. plotly_print-0.2.3/.cursorignore +2 -0
  5. plotly_print-0.2.3/AGENTS.md +17 -0
  6. {plotly_print-0.2.0 → plotly_print-0.2.3}/PKG-INFO +67 -62
  7. {plotly_print-0.2.0 → plotly_print-0.2.3}/README.md +66 -61
  8. {plotly_print-0.2.0 → plotly_print-0.2.3}/assets/benchmarks/benchmark_summary.json +97 -87
  9. plotly_print-0.2.3/assets/benchmarks/compare_annotations_arrowheads.png +0 -0
  10. plotly_print-0.2.3/assets/benchmarks/compare_annotations_long_arrows.png +0 -0
  11. plotly_print-0.2.3/assets/benchmarks/compare_bar.png +0 -0
  12. plotly_print-0.2.3/assets/benchmarks/compare_barpolar.png +0 -0
  13. plotly_print-0.2.3/assets/benchmarks/compare_box.png +0 -0
  14. plotly_print-0.2.3/assets/benchmarks/compare_candlestick.png +0 -0
  15. plotly_print-0.2.3/assets/benchmarks/compare_carpet.png +0 -0
  16. plotly_print-0.2.3/assets/benchmarks/compare_contour.png +0 -0
  17. plotly_print-0.2.3/assets/benchmarks/compare_funnel.png +0 -0
  18. plotly_print-0.2.3/assets/benchmarks/compare_funnelarea.png +0 -0
  19. plotly_print-0.2.3/assets/benchmarks/compare_heatmap.png +0 -0
  20. plotly_print-0.2.3/assets/benchmarks/compare_histogram.png +0 -0
  21. plotly_print-0.2.3/assets/benchmarks/compare_histogram2d.png +0 -0
  22. plotly_print-0.2.3/assets/benchmarks/compare_icicle.png +0 -0
  23. plotly_print-0.2.3/assets/benchmarks/compare_indicator.png +0 -0
  24. plotly_print-0.2.3/assets/benchmarks/compare_ohlc.png +0 -0
  25. plotly_print-0.2.3/assets/benchmarks/compare_parcats.png +0 -0
  26. plotly_print-0.2.3/assets/benchmarks/compare_pie.png +0 -0
  27. plotly_print-0.2.3/assets/benchmarks/compare_rotated_ticks_45.png +0 -0
  28. plotly_print-0.2.3/assets/benchmarks/compare_rotated_ticks_90.png +0 -0
  29. plotly_print-0.2.3/assets/benchmarks/compare_sankey.png +0 -0
  30. plotly_print-0.2.3/assets/benchmarks/compare_scatter_line.png +0 -0
  31. plotly_print-0.2.3/assets/benchmarks/compare_scatterpolar.png +0 -0
  32. plotly_print-0.2.3/assets/benchmarks/compare_scatterternary.png +0 -0
  33. plotly_print-0.2.3/assets/benchmarks/compare_sunburst.png +0 -0
  34. plotly_print-0.2.3/assets/benchmarks/compare_table.png +0 -0
  35. plotly_print-0.2.3/assets/benchmarks/compare_table_markup.png +0 -0
  36. plotly_print-0.2.3/assets/benchmarks/compare_treemap.png +0 -0
  37. plotly_print-0.2.3/assets/benchmarks/compare_violin.png +0 -0
  38. plotly_print-0.2.3/assets/benchmarks/compare_waterfall.png +0 -0
  39. {plotly_print-0.2.0 → plotly_print-0.2.3}/benchmark/cases.py +29 -4
  40. {plotly_print-0.2.0 → plotly_print-0.2.3}/benchmark/report.py +2 -2
  41. {plotly_print-0.2.0 → plotly_print-0.2.3}/benchmark/runner.py +3 -3
  42. {plotly_print-0.2.0 → plotly_print-0.2.3}/pyproject.toml +1 -1
  43. {plotly_print-0.2.0 → plotly_print-0.2.3}/src/plotly_print/engine.py +66 -2
  44. {plotly_print-0.2.0 → plotly_print-0.2.3}/src/plotly_print/js/micro_dom.js +71 -114
  45. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_json_types.py +58 -0
  46. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_svg_transforms.py +46 -2
  47. {plotly_print-0.2.0 → plotly_print-0.2.3}/uv.lock +1 -1
  48. plotly_print-0.2.0/.cursor/rules/artifacts.mdc +0 -14
  49. plotly_print-0.2.0/.cursor/rules/global.mdc +0 -64
  50. plotly_print-0.2.0/AGENTS.md +0 -14
  51. plotly_print-0.2.0/assets/benchmarks/compare_annotations_arrowheads.png +0 -0
  52. plotly_print-0.2.0/assets/benchmarks/compare_annotations_long_arrows.png +0 -0
  53. plotly_print-0.2.0/assets/benchmarks/compare_bar.png +0 -0
  54. plotly_print-0.2.0/assets/benchmarks/compare_barpolar.png +0 -0
  55. plotly_print-0.2.0/assets/benchmarks/compare_box.png +0 -0
  56. plotly_print-0.2.0/assets/benchmarks/compare_candlestick.png +0 -0
  57. plotly_print-0.2.0/assets/benchmarks/compare_carpet.png +0 -0
  58. plotly_print-0.2.0/assets/benchmarks/compare_contour.png +0 -0
  59. plotly_print-0.2.0/assets/benchmarks/compare_funnel.png +0 -0
  60. plotly_print-0.2.0/assets/benchmarks/compare_funnelarea.png +0 -0
  61. plotly_print-0.2.0/assets/benchmarks/compare_heatmap.png +0 -0
  62. plotly_print-0.2.0/assets/benchmarks/compare_histogram.png +0 -0
  63. plotly_print-0.2.0/assets/benchmarks/compare_histogram2d.png +0 -0
  64. plotly_print-0.2.0/assets/benchmarks/compare_icicle.png +0 -0
  65. plotly_print-0.2.0/assets/benchmarks/compare_indicator.png +0 -0
  66. plotly_print-0.2.0/assets/benchmarks/compare_ohlc.png +0 -0
  67. plotly_print-0.2.0/assets/benchmarks/compare_parcats.png +0 -0
  68. plotly_print-0.2.0/assets/benchmarks/compare_pie.png +0 -0
  69. plotly_print-0.2.0/assets/benchmarks/compare_rotated_ticks_45.png +0 -0
  70. plotly_print-0.2.0/assets/benchmarks/compare_rotated_ticks_90.png +0 -0
  71. plotly_print-0.2.0/assets/benchmarks/compare_sankey.png +0 -0
  72. plotly_print-0.2.0/assets/benchmarks/compare_scatter_line.png +0 -0
  73. plotly_print-0.2.0/assets/benchmarks/compare_scatterpolar.png +0 -0
  74. plotly_print-0.2.0/assets/benchmarks/compare_scatterternary.png +0 -0
  75. plotly_print-0.2.0/assets/benchmarks/compare_sunburst.png +0 -0
  76. plotly_print-0.2.0/assets/benchmarks/compare_table.png +0 -0
  77. plotly_print-0.2.0/assets/benchmarks/compare_treemap.png +0 -0
  78. plotly_print-0.2.0/assets/benchmarks/compare_violin.png +0 -0
  79. plotly_print-0.2.0/assets/benchmarks/compare_waterfall.png +0 -0
  80. {plotly_print-0.2.0 → plotly_print-0.2.3}/.cursor/rules/markdown.mdc +0 -0
  81. {plotly_print-0.2.0 → plotly_print-0.2.3}/.github/workflows/check-tag.yml +0 -0
  82. {plotly_print-0.2.0 → plotly_print-0.2.3}/.github/workflows/publish.yml +0 -0
  83. {plotly_print-0.2.0 → plotly_print-0.2.3}/.github/workflows/quality-checks.yml +0 -0
  84. {plotly_print-0.2.0 → plotly_print-0.2.3}/.github/workflows/version-check.yml +0 -0
  85. {plotly_print-0.2.0 → plotly_print-0.2.3}/.gitignore +0 -0
  86. {plotly_print-0.2.0 → plotly_print-0.2.3}/.mdformat.toml +0 -0
  87. {plotly_print-0.2.0 → plotly_print-0.2.3}/.pre-commit-config.yaml +0 -0
  88. {plotly_print-0.2.0 → plotly_print-0.2.3}/CONTRIBUTING.md +0 -0
  89. {plotly_print-0.2.0 → plotly_print-0.2.3}/LICENSE +0 -0
  90. {plotly_print-0.2.0 → plotly_print-0.2.3}/THIRD_PARTY_NOTICES.md +0 -0
  91. {plotly_print-0.2.0 → plotly_print-0.2.3}/benchmark/__init__.py +0 -0
  92. {plotly_print-0.2.0 → plotly_print-0.2.3}/benchmark/__main__.py +0 -0
  93. {plotly_print-0.2.0 → plotly_print-0.2.3}/benchmark/collage.py +0 -0
  94. {plotly_print-0.2.0 → plotly_print-0.2.3}/benchmark/compare.py +0 -0
  95. {plotly_print-0.2.0 → plotly_print-0.2.3}/src/plotly_print/__init__.py +0 -0
  96. {plotly_print-0.2.0 → plotly_print-0.2.3}/src/plotly_print/core.py +0 -0
  97. {plotly_print-0.2.0 → plotly_print-0.2.3}/src/plotly_print/fonts.py +0 -0
  98. {plotly_print-0.2.0 → plotly_print-0.2.3}/src/plotly_print/js/plotly_comprehensive_2d.js +0 -0
  99. {plotly_print-0.2.0 → plotly_print-0.2.3}/src/plotly_print/plotly_hook.py +0 -0
  100. {plotly_print-0.2.0 → plotly_print-0.2.3}/src/plotly_print/raster.py +0 -0
  101. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_background.py +0 -0
  102. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_bar.py +0 -0
  103. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_cartesian_types.py +0 -0
  104. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_comprehensive_2d.py +0 -0
  105. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_heatmap.py +0 -0
  106. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_kaleido_visual.py +0 -0
  107. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_legend.py +0 -0
  108. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_pie.py +0 -0
  109. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_plotly_hook.py +0 -0
  110. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_raster.py +0 -0
  111. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_scatter.py +0 -0
  112. {plotly_print-0.2.0 → plotly_print-0.2.3}/tests/test_svg_path_geometry.py +0 -0
@@ -0,0 +1,52 @@
1
+ ---
2
+ description: Coding standards for plotly-print (Python package + QuickJS micro-DOM)
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # Project standards
7
+
8
+ Python package + QuickJS micro-DOM under `src/plotly_print/js/`. Source of truth: `pyproject.toml` (Python >= 3.12, uv). Package layout and entry points: `.cursor/rules/map.mdc`.
9
+
10
+ You are a lazy senior developer. Lazy means efficient, not careless. The best code is the code never written.
11
+
12
+ ## Before writing code
13
+
14
+ Read the task and the code it touches, trace the real flow end to end, then stop at the first rung that holds:
15
+
16
+ 1. Does this need to be built at all? (YAGNI)
17
+ 2. Does it already exist in this codebase? Reuse it.
18
+ 3. Does the standard library already do this? Use it.
19
+ 4. Does an already-declared dependency solve it? Use it.
20
+ 5. Can this be one boring line? Make it one line.
21
+ 6. Only then: write the minimum code that works.
22
+
23
+ Bug fix = root cause, not symptom. Grep every caller of the function you touch and fix the shared function once.
24
+
25
+ ## Toolchain
26
+
27
+ - Do not add a dependency unless it is declared in `pyproject.toml` (or the lockfile). Prefer stdlib.
28
+ - Ruff via `pyproject.toml`. After Python edits: `poe format`. After Markdown: `poe format_docs`.
29
+ - No JS formatter/linter; match `micro_dom.js`. Never hand-edit vendored Plotly bundles.
30
+
31
+ ## Comments and docs
32
+
33
+ - No docstrings except on base/abstract contracts and complex functions that need them.
34
+ - No unnecessary comments; if needed, explain why, not what.
35
+ - No section-divider comments in classes/functions (allowed in test classes). Group by proximity.
36
+
37
+ ## Language
38
+
39
+ Shared: ASCII only in identifiers/comments/docs (no emojis). No unnecessary imports.
40
+
41
+ Python: type-hint every function/method; f-strings; join with `/` on `Path` (avoid extra wrappers).
42
+
43
+ ## Quality
44
+
45
+ - Deletion over addition. Boring over clever. Fewest files; shortest working diff after understanding the problem.
46
+ - No unrequested abstractions, boilerplate, or dependencies. Question complex asks: does Y cover it?
47
+ - Prefer the edge-case-correct stdlib approach when sizes match.
48
+ - Deliberate ceilings: `ponytail:` comment naming the ceiling and upgrade path.
49
+ - Non-trivial logic: one smallest test that fails if it breaks. Run `poe test` before claiming done.
50
+ - No secrets, `.env`, or local virtualenvs in commits.
51
+
52
+ Not lazy about: understanding the problem, trust-boundary validation, error handling that prevents data loss, security, anything explicitly requested.
@@ -0,0 +1,34 @@
1
+ ---
2
+ description: QuickJS micro-DOM and first-party JS (not the vendored Plotly bundle)
3
+ globs: "src/plotly_print/js/**/*.js"
4
+ alwaysApply: false
5
+ ---
6
+
7
+ # JavaScript (QuickJS)
8
+
9
+ First-party runtime JS lives under `src/plotly_print/js/`. It runs inside QuickJS via `plotly_print.engine`, not in Node or a browser.
10
+
11
+ ## Do not edit
12
+
13
+ - `plotly_comprehensive_2d.js` (and any vendored Plotly bundle): opaque; in `.cursorignore`. Do not Read/Grep the whole file.
14
+ - Need a call shape: Shell `rg -n 'pattern' src/plotly_print/js/plotly_comprehensive_2d.js | head` (cap hits). Never open whole-file.
15
+ - Only change first-party files such as `micro_dom.js`.
16
+
17
+ ## Style (match `micro_dom.js`)
18
+
19
+ - IIFE + `'use strict'`. No ES modules, `import`/`export`, or build step.
20
+ - Prefer ES5 that QuickJS already accepts here: `var`, `function`, prototypes. Use newer features only when the file already does (e.g. `Proxy` with a fallback).
21
+ - 4-space indent. ASCII only in identifiers and comments (no emojis, arrows, smart dashes).
22
+ - No TypeScript. No Prettier/ESLint in this repo; match existing formatting by eye.
23
+ - Same comment rules as the rest of the project: why not what; `ponytail:` for deliberate ceilings.
24
+
25
+ ## DOM / SVG stubs
26
+
27
+ - Implement the minimum Plotly/d3 actually call. Prefer attribute-backed getters (e.g. `transform` from `getAttribute('transform')`) over inventing full SVG DOM types.
28
+ - When adding a browser API stub, grep the Plotly bundle for the call shape (`baseVal.consolidate`, etc.) and return what that path reads.
29
+ - Keep geometry helpers (`parseTransform`, path flatten, bbox) shared; do not duplicate matrix math per method.
30
+
31
+ ## Tests
32
+
33
+ - JS has no separate test runner. Cover behavior from Python with `quickjs.Context` loading `micro_dom.js` (see `tests/test_svg_*.py`), or via `plotly_print.to_svg` / figure fixtures when the bug is Plotly-facing.
34
+ - After non-trivial micro-DOM changes, run the relevant `tests/test_svg_*.py` (or the smallest Plotly render check that would fail).
@@ -0,0 +1,34 @@
1
+ ---
2
+ description: Package map — start here; avoid re-exploring the tree
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # Package map
7
+
8
+ Browser-less Plotly static export: QuickJS + micro-DOM + vendored Plotly 2D → SVG → resvg raster.
9
+
10
+ ## Flow
11
+
12
+ `core.to_svg` / `to_image` / `write_image` → `engine.PrintEngine` (QuickJS) → eval `micro_dom.js` + vendored Plotly → SVG → `raster.py` for png/jpeg/webp.
13
+
14
+ `plotly_hook.register` patches Plotly `to_image` / `write_image`.
15
+
16
+ ## Files
17
+
18
+ | Path | Job |
19
+ |------|-----|
20
+ | `core.py` | Public API; figure → JSON |
21
+ | `engine.py` | QuickJS lifecycle; canvas→PNG; typed arrays |
22
+ | `fonts.py` | Text metrics callable into JS |
23
+ | `raster.py` | SVG → raster (resvg) |
24
+ | `plotly_hook.py` | Monkeypatch Plotly |
25
+ | `js/micro_dom.js` | First-party DOM/SVG stubs (**edit here**) |
26
+ | `js/plotly_comprehensive_2d.js` | Vendored; **never** Read/Grep whole file (`.cursorignore`) |
27
+
28
+ Start from this map. Open only listed files unless the task is outside `src/plotly_print/`.
29
+
30
+ ## Tests / commands / scratch
31
+
32
+ - `tests/test_svg_*.py` → micro-DOM; chart `test_*.py` → render; `test_kaleido_*` → visual parity
33
+ - `poe format` | `poe test` | `poe benchmark` | `poe format_docs`
34
+ - Scratch under `.artifacts/` (gitignored); do not commit
@@ -0,0 +1,2 @@
1
+ # Vendored Plotly.js (~2MB). Never index or open whole-file; capped rg via Shell if needed.
2
+ src/plotly_print/js/plotly_comprehensive_2d.js
@@ -0,0 +1,17 @@
1
+ # Agent instructions
2
+
3
+ plotly-print: Python package + QuickJS micro-DOM for browser-less Plotly static export.
4
+
5
+ ## Tooling
6
+
7
+ - **All AI IDEs:** start from this file and the package map.
8
+ - **Cursor:** rules in [`.cursor/rules/`](.cursor/rules/). Do not duplicate them here.
9
+
10
+ ## Standards (Cursor)
11
+
12
+ - Map (always-on): `.cursor/rules/map.mdc`
13
+ - Coding standards (always-on): `.cursor/rules/global.mdc`
14
+ - JavaScript (`src/plotly_print/js/`): `.cursor/rules/javascript.mdc`
15
+ - Markdown (`.md`): `.cursor/rules/markdown.mdc`
16
+
17
+ Vendored Plotly bundle is listed in `.cursorignore` — do not open it whole-file.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: plotly-print
3
- Version: 0.2.0
3
+ Version: 0.2.3
4
4
  Summary: Lightweight, browser-less static image exporter for Plotly
5
5
  Project-URL: Homepage, https://github.com/roman-kaczanowski/plotly-print
6
6
  Project-URL: Repository, https://github.com/roman-kaczanowski/plotly-print
@@ -79,43 +79,44 @@ plotly-print targets 2D static charts. The bundled Plotly.js build and its licen
79
79
 
80
80
  ## Benchmarks
81
81
 
82
- On this run, plotly-print exported all 29 chart types **11x to 33x faster** than Kaleido.
82
+ On this run, plotly-print exported all 30 chart types **12x to 33x faster** than Kaleido.
83
83
 
84
84
  These are mean per-image PNG export times after both engines were warmed up. Timings are machine-specific; use the side-by-side images below to evaluate rendering differences.
85
85
 
86
86
  See the [raw results](assets/benchmarks/benchmark_summary.json) or [run the benchmark locally](CONTRIBUTING.md#kaleido-visual-benchmark).
87
87
 
88
- | Category | Chart Type | plotly-print | Kaleido | Speedup |
89
- | :----------------------- | :---------------------------------------- | :----------: | :-------: | :-------: |
90
- | **Core Cartesian** | Scatter & Line Chart | **88.9 ms** | 1524.7 ms | **17.1x** |
91
- | **Core Cartesian** | Grouped Bar Chart | **93.5 ms** | 1642.3 ms | **17.6x** |
92
- | **Core Cartesian** | Donut / Pie Chart | **74.4 ms** | 1812.6 ms | **24.4x** |
93
- | **Core Cartesian** | Box Plot | **93.5 ms** | 1714.4 ms | **18.3x** |
94
- | **Core Cartesian** | Violin Plot | **86.5 ms** | 1626.1 ms | **18.8x** |
95
- | **Core Cartesian** | Frequency Histogram | **105.5 ms** | 1556.6 ms | **14.8x** |
96
- | **Core Cartesian** | 2D Density Histogram | **105.5 ms** | 1696.5 ms | **16.1x** |
97
- | **Core Cartesian** | 2D Contour Plot | **135.8 ms** | 1744.5 ms | **12.8x** |
98
- | **Core Cartesian** | Performance Heatmap | **95.4 ms** | 1647.1 ms | **17.3x** |
99
- | **Core Cartesian** | Ternary Phase Diagram | **95.8 ms** | 1639.1 ms | **17.1x** |
100
- | **Financial & Business** | Candlestick Stock Chart | **125.6 ms** | 1618.5 ms | **12.9x** |
101
- | **Financial & Business** | OHLC Financial Chart | **159.2 ms** | 1686.0 ms | **10.6x** |
102
- | **Financial & Business** | Waterfall Profit & Loss | **67.1 ms** | 1561.6 ms | **23.3x** |
103
- | **Financial & Business** | Sales Conversion Funnel | **102.3 ms** | 1620.2 ms | **15.8x** |
104
- | **Financial & Business** | Funnel Area Analysis | **59.2 ms** | 1593.7 ms | **26.9x** |
105
- | **Financial & Business** | KPI Performance Indicator | **69.9 ms** | 1607.4 ms | **23.0x** |
106
- | **Hierarchical** | Market Cap Treemap | **52.9 ms** | 1672.0 ms | **31.6x** |
107
- | **Hierarchical** | Global Sunburst Hierarchy | **69.8 ms** | 1665.6 ms | **23.9x** |
108
- | **Hierarchical** | Icicle Partition Chart | **59.8 ms** | 1662.9 ms | **27.8x** |
109
- | **Radial & Polar** | Radar Performance Comparison | **98.2 ms** | 1689.3 ms | **17.2x** |
110
- | **Radial & Polar** | Polar Wind Rose | **78.3 ms** | 1581.8 ms | **20.2x** |
111
- | **Specialized Diagrams** | Energy Flow Sankey Diagram | **47.6 ms** | 1593.5 ms | **33.5x** |
112
- | **Specialized Diagrams** | Parallel Categories Diagram | **68.7 ms** | 1551.1 ms | **22.6x** |
113
- | **Specialized Diagrams** | Formatted Data Table | **96.7 ms** | 1588.6 ms | **16.4x** |
114
- | **Specialized Diagrams** | Carpet Coordinate Plot | **99.5 ms** | 1647.8 ms | **16.6x** |
115
- | **Layout edge cases** | Bar chart with X labels at 45 deg | **92.5 ms** | 1741.8 ms | **18.8x** |
116
- | **Layout edge cases** | Bar chart with X labels at 90 deg | **101.8 ms** | 1609.2 ms | **15.8x** |
117
- | **Layout edge cases** | Annotation arrowheads (incl. circle) | **86.5 ms** | 1663.2 ms | **19.2x** |
118
- | **Layout edge cases** | Long annotation arrows (dasharray length) | **93.3 ms** | 1650.6 ms | **17.7x** |
88
+ | Category | Chart Type | Kaleido | plotly-print | Speedup |
89
+ | :----------------------- | :---------------------------------------- | :-------: | :----------: | :-------: |
90
+ | **Core Cartesian** | Scatter & Line Chart | 1668.5 ms | **88.2 ms** | **18.9x** |
91
+ | **Core Cartesian** | Grouped Bar Chart | 1758.1 ms | **81.3 ms** | **21.6x** |
92
+ | **Core Cartesian** | Donut / Pie Chart | 1628.6 ms | **73.6 ms** | **22.1x** |
93
+ | **Core Cartesian** | Box Plot | 1748.2 ms | **77.1 ms** | **22.7x** |
94
+ | **Core Cartesian** | Violin Plot | 1623.8 ms | **84.1 ms** | **19.3x** |
95
+ | **Core Cartesian** | Frequency Histogram | 1878.0 ms | **62.7 ms** | **30.0x** |
96
+ | **Core Cartesian** | 2D Density Histogram | 1949.4 ms | **98.8 ms** | **19.7x** |
97
+ | **Core Cartesian** | 2D Contour Plot | 1604.9 ms | **118.7 ms** | **13.5x** |
98
+ | **Core Cartesian** | Performance Heatmap | 1832.4 ms | **87.3 ms** | **21.0x** |
99
+ | **Core Cartesian** | Ternary Phase Diagram | 1724.9 ms | **84.9 ms** | **20.3x** |
100
+ | **Financial & Business** | Candlestick Stock Chart | 1741.1 ms | **140.5 ms** | **12.4x** |
101
+ | **Financial & Business** | OHLC Financial Chart | 1670.0 ms | **131.3 ms** | **12.7x** |
102
+ | **Financial & Business** | Waterfall Profit & Loss | 1793.0 ms | **64.7 ms** | **27.7x** |
103
+ | **Financial & Business** | Sales Conversion Funnel | 1629.9 ms | **91.1 ms** | **17.9x** |
104
+ | **Financial & Business** | Funnel Area Analysis | 1694.0 ms | **61.7 ms** | **27.5x** |
105
+ | **Financial & Business** | KPI Performance Indicator | 1634.1 ms | **57.2 ms** | **28.6x** |
106
+ | **Hierarchical** | Market Cap Treemap | 1625.4 ms | **52.6 ms** | **30.9x** |
107
+ | **Hierarchical** | Global Sunburst Hierarchy | 1723.9 ms | **61.8 ms** | **27.9x** |
108
+ | **Hierarchical** | Icicle Partition Chart | 1594.7 ms | **50.2 ms** | **31.7x** |
109
+ | **Radial & Polar** | Radar Performance Comparison | 2481.9 ms | **96.5 ms** | **25.7x** |
110
+ | **Radial & Polar** | Polar Wind Rose | 1826.6 ms | **77.5 ms** | **23.6x** |
111
+ | **Specialized Diagrams** | Energy Flow Sankey Diagram | 1708.4 ms | **51.7 ms** | **33.1x** |
112
+ | **Specialized Diagrams** | Parallel Categories Diagram | 1620.2 ms | **57.0 ms** | **28.4x** |
113
+ | **Specialized Diagrams** | Formatted Data Table | 1766.4 ms | **69.9 ms** | **25.3x** |
114
+ | **Specialized Diagrams** | Carpet Coordinate Plot | 1792.2 ms | **86.1 ms** | **20.8x** |
115
+ | **Layout edge cases** | Bar chart with X labels at 45 deg | 1673.2 ms | **89.0 ms** | **18.8x** |
116
+ | **Layout edge cases** | Bar chart with X labels at 90 deg | 1883.9 ms | **87.7 ms** | **21.5x** |
117
+ | **Layout edge cases** | Annotation arrowheads (incl. circle) | 1661.6 ms | **82.4 ms** | **20.2x** |
118
+ | **Layout edge cases** | Long annotation arrows (dasharray length) | 1719.1 ms | **79.7 ms** | **21.6x** |
119
+ | **Layout edge cases** | Table cells with HTML markup and entities | 1692.5 ms | **74.8 ms** | **22.6x** |
119
120
 
120
121
  ## Visual comparisons
121
122
 
@@ -123,132 +124,136 @@ Side-by-side PNGs (Kaleido left, plotly-print right):
123
124
 
124
125
  ### Core Cartesian
125
126
 
126
- #### Scatter & Line Chart (plotly-print: 88.9ms | Kaleido: 1524.7ms)
127
+ #### Scatter & Line Chart (plotly-print: 88.2ms | Kaleido: 1668.5ms)
127
128
 
128
129
  ![Scatter & Line Chart](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_scatter_line.png)
129
130
 
130
- #### Grouped Bar Chart (plotly-print: 93.5ms | Kaleido: 1642.3ms)
131
+ #### Grouped Bar Chart (plotly-print: 81.3ms | Kaleido: 1758.1ms)
131
132
 
132
133
  ![Grouped Bar Chart](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_bar.png)
133
134
 
134
- #### Donut / Pie Chart (plotly-print: 74.4ms | Kaleido: 1812.6ms)
135
+ #### Donut / Pie Chart (plotly-print: 73.6ms | Kaleido: 1628.6ms)
135
136
 
136
137
  ![Donut / Pie Chart](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_pie.png)
137
138
 
138
- #### Box Plot (plotly-print: 93.5ms | Kaleido: 1714.4ms)
139
+ #### Box Plot (plotly-print: 77.1ms | Kaleido: 1748.2ms)
139
140
 
140
141
  ![Box Plot](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_box.png)
141
142
 
142
- #### Violin Plot (plotly-print: 86.5ms | Kaleido: 1626.1ms)
143
+ #### Violin Plot (plotly-print: 84.1ms | Kaleido: 1623.8ms)
143
144
 
144
145
  ![Violin Plot](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_violin.png)
145
146
 
146
- #### Frequency Histogram (plotly-print: 105.5ms | Kaleido: 1556.6ms)
147
+ #### Frequency Histogram (plotly-print: 62.7ms | Kaleido: 1878.0ms)
147
148
 
148
149
  ![Frequency Histogram](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_histogram.png)
149
150
 
150
- #### 2D Density Histogram (plotly-print: 105.5ms | Kaleido: 1696.5ms)
151
+ #### 2D Density Histogram (plotly-print: 98.8ms | Kaleido: 1949.4ms)
151
152
 
152
153
  ![2D Density Histogram](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_histogram2d.png)
153
154
 
154
- #### 2D Contour Plot (plotly-print: 135.8ms | Kaleido: 1744.5ms)
155
+ #### 2D Contour Plot (plotly-print: 118.7ms | Kaleido: 1604.9ms)
155
156
 
156
157
  ![2D Contour Plot](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_contour.png)
157
158
 
158
- #### Performance Heatmap (plotly-print: 95.4ms | Kaleido: 1647.1ms)
159
+ #### Performance Heatmap (plotly-print: 87.3ms | Kaleido: 1832.4ms)
159
160
 
160
161
  ![Performance Heatmap](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_heatmap.png)
161
162
 
162
- #### Ternary Phase Diagram (plotly-print: 95.8ms | Kaleido: 1639.1ms)
163
+ #### Ternary Phase Diagram (plotly-print: 84.9ms | Kaleido: 1724.9ms)
163
164
 
164
165
  ![Ternary Phase Diagram](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_scatterternary.png)
165
166
 
166
167
  ### Financial & Business
167
168
 
168
- #### Candlestick Stock Chart (plotly-print: 125.6ms | Kaleido: 1618.5ms)
169
+ #### Candlestick Stock Chart (plotly-print: 140.5ms | Kaleido: 1741.1ms)
169
170
 
170
171
  ![Candlestick Stock Chart](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_candlestick.png)
171
172
 
172
- #### OHLC Financial Chart (plotly-print: 159.2ms | Kaleido: 1686.0ms)
173
+ #### OHLC Financial Chart (plotly-print: 131.3ms | Kaleido: 1670.0ms)
173
174
 
174
175
  ![OHLC Financial Chart](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_ohlc.png)
175
176
 
176
- #### Waterfall Profit & Loss (plotly-print: 67.1ms | Kaleido: 1561.6ms)
177
+ #### Waterfall Profit & Loss (plotly-print: 64.7ms | Kaleido: 1793.0ms)
177
178
 
178
179
  ![Waterfall Profit & Loss](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_waterfall.png)
179
180
 
180
- #### Sales Conversion Funnel (plotly-print: 102.3ms | Kaleido: 1620.2ms)
181
+ #### Sales Conversion Funnel (plotly-print: 91.1ms | Kaleido: 1629.9ms)
181
182
 
182
183
  ![Sales Conversion Funnel](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_funnel.png)
183
184
 
184
- #### Funnel Area Analysis (plotly-print: 59.2ms | Kaleido: 1593.7ms)
185
+ #### Funnel Area Analysis (plotly-print: 61.7ms | Kaleido: 1694.0ms)
185
186
 
186
187
  ![Funnel Area Analysis](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_funnelarea.png)
187
188
 
188
- #### KPI Performance Indicator (plotly-print: 69.9ms | Kaleido: 1607.4ms)
189
+ #### KPI Performance Indicator (plotly-print: 57.2ms | Kaleido: 1634.1ms)
189
190
 
190
191
  ![KPI Performance Indicator](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_indicator.png)
191
192
 
192
193
  ### Hierarchical
193
194
 
194
- #### Market Cap Treemap (plotly-print: 52.9ms | Kaleido: 1672.0ms)
195
+ #### Market Cap Treemap (plotly-print: 52.6ms | Kaleido: 1625.4ms)
195
196
 
196
197
  ![Market Cap Treemap](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_treemap.png)
197
198
 
198
- #### Global Sunburst Hierarchy (plotly-print: 69.8ms | Kaleido: 1665.6ms)
199
+ #### Global Sunburst Hierarchy (plotly-print: 61.8ms | Kaleido: 1723.9ms)
199
200
 
200
201
  ![Global Sunburst Hierarchy](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_sunburst.png)
201
202
 
202
- #### Icicle Partition Chart (plotly-print: 59.8ms | Kaleido: 1662.9ms)
203
+ #### Icicle Partition Chart (plotly-print: 50.2ms | Kaleido: 1594.7ms)
203
204
 
204
205
  ![Icicle Partition Chart](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_icicle.png)
205
206
 
206
207
  ### Radial & Polar
207
208
 
208
- #### Radar Performance Comparison (plotly-print: 98.2ms | Kaleido: 1689.3ms)
209
+ #### Radar Performance Comparison (plotly-print: 96.5ms | Kaleido: 2481.9ms)
209
210
 
210
211
  ![Radar Performance Comparison](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_scatterpolar.png)
211
212
 
212
- #### Polar Wind Rose (plotly-print: 78.3ms | Kaleido: 1581.8ms)
213
+ #### Polar Wind Rose (plotly-print: 77.5ms | Kaleido: 1826.6ms)
213
214
 
214
215
  ![Polar Wind Rose](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_barpolar.png)
215
216
 
216
217
  ### Specialized Diagrams
217
218
 
218
- #### Energy Flow Sankey Diagram (plotly-print: 47.6ms | Kaleido: 1593.5ms)
219
+ #### Energy Flow Sankey Diagram (plotly-print: 51.7ms | Kaleido: 1708.4ms)
219
220
 
220
221
  ![Energy Flow Sankey Diagram](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_sankey.png)
221
222
 
222
- #### Parallel Categories Diagram (plotly-print: 68.7ms | Kaleido: 1551.1ms)
223
+ #### Parallel Categories Diagram (plotly-print: 57.0ms | Kaleido: 1620.2ms)
223
224
 
224
225
  ![Parallel Categories Diagram](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_parcats.png)
225
226
 
226
- #### Formatted Data Table (plotly-print: 96.7ms | Kaleido: 1588.6ms)
227
+ #### Formatted Data Table (plotly-print: 69.9ms | Kaleido: 1766.4ms)
227
228
 
228
229
  ![Formatted Data Table](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_table.png)
229
230
 
230
- #### Carpet Coordinate Plot (plotly-print: 99.5ms | Kaleido: 1647.8ms)
231
+ #### Carpet Coordinate Plot (plotly-print: 86.1ms | Kaleido: 1792.2ms)
231
232
 
232
233
  ![Carpet Coordinate Plot](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_carpet.png)
233
234
 
234
235
  ### Layout edge cases
235
236
 
236
- #### Bar chart with X labels at 45 deg (plotly-print: 92.5ms | Kaleido: 1741.8ms)
237
+ #### Bar chart with X labels at 45 deg (plotly-print: 89.0ms | Kaleido: 1673.2ms)
237
238
 
238
239
  ![Bar chart with X labels at 45 deg](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_rotated_ticks_45.png)
239
240
 
240
- #### Bar chart with X labels at 90 deg (plotly-print: 101.8ms | Kaleido: 1609.2ms)
241
+ #### Bar chart with X labels at 90 deg (plotly-print: 87.7ms | Kaleido: 1883.9ms)
241
242
 
242
243
  ![Bar chart with X labels at 90 deg](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_rotated_ticks_90.png)
243
244
 
244
- #### Annotation arrowheads (incl. circle) (plotly-print: 86.5ms | Kaleido: 1663.2ms)
245
+ #### Annotation arrowheads (incl. circle) (plotly-print: 82.4ms | Kaleido: 1661.6ms)
245
246
 
246
247
  ![Annotation arrowheads (incl. circle)](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_annotations_arrowheads.png)
247
248
 
248
- #### Long annotation arrows (dasharray length) (plotly-print: 93.3ms | Kaleido: 1650.6ms)
249
+ #### Long annotation arrows (dasharray length) (plotly-print: 79.7ms | Kaleido: 1719.1ms)
249
250
 
250
251
  ![Long annotation arrows (dasharray length)](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_annotations_long_arrows.png)
251
252
 
253
+ #### Table cells with HTML markup and entities (plotly-print: 74.8ms | Kaleido: 1692.5ms)
254
+
255
+ ![Table cells with HTML markup and entities](https://raw.githubusercontent.com/roman-kaczanowski/plotly-print/main/assets/benchmarks/compare_table_markup.png)
256
+
252
257
  <!-- BENCHMARK-END -->
253
258
 
254
259
  ## Attribution