rsplotlib 0.1.4__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 (38) hide show
  1. rsplotlib-0.1.4/.github/ci.yml +60 -0
  2. rsplotlib-0.1.4/.github/release.yml +84 -0
  3. rsplotlib-0.1.4/.gitignore +38 -0
  4. rsplotlib-0.1.4/Cargo.lock +449 -0
  5. rsplotlib-0.1.4/Cargo.toml +14 -0
  6. rsplotlib-0.1.4/LICENSE +21 -0
  7. rsplotlib-0.1.4/PKG-INFO +179 -0
  8. rsplotlib-0.1.4/README.md +168 -0
  9. rsplotlib-0.1.4/README_zh.md +162 -0
  10. rsplotlib-0.1.4/build_wheel.sh +77 -0
  11. rsplotlib-0.1.4/pyproject.toml +28 -0
  12. rsplotlib-0.1.4/python/rsplotlib/__init__.py +15 -0
  13. rsplotlib-0.1.4/python/rsplotlib/_figure_defaults.py +10 -0
  14. rsplotlib-0.1.4/python/rsplotlib/_font_resolver.py +167 -0
  15. rsplotlib-0.1.4/python/rsplotlib/_rcparams.py +58 -0
  16. rsplotlib-0.1.4/python/rsplotlib/api.py +729 -0
  17. rsplotlib-0.1.4/python/rsplotlib/gridspec.py +111 -0
  18. rsplotlib-0.1.4/python/rsplotlib/pylab.py +20 -0
  19. rsplotlib-0.1.4/python/rsplotlib/pyplot.py +545 -0
  20. rsplotlib-0.1.4/python/rsplotlib/style.py +56 -0
  21. rsplotlib-0.1.4/python/rsplotlib/ticker.py +278 -0
  22. rsplotlib-0.1.4/rust-toolchain.toml +2 -0
  23. rsplotlib-0.1.4/src/axes.rs +1371 -0
  24. rsplotlib-0.1.4/src/axes_bounds.rs +309 -0
  25. rsplotlib-0.1.4/src/axes_grid.rs +221 -0
  26. rsplotlib-0.1.4/src/axes_legend.rs +200 -0
  27. rsplotlib-0.1.4/src/axes_mesh.rs +233 -0
  28. rsplotlib-0.1.4/src/axes_render_elements.rs +1000 -0
  29. rsplotlib-0.1.4/src/axes_title.rs +60 -0
  30. rsplotlib-0.1.4/src/axis.rs +288 -0
  31. rsplotlib-0.1.4/src/colormap.rs +166 -0
  32. rsplotlib-0.1.4/src/colors.rs +85 -0
  33. rsplotlib-0.1.4/src/elements.rs +134 -0
  34. rsplotlib-0.1.4/src/figure.rs +401 -0
  35. rsplotlib-0.1.4/src/lib.rs +212 -0
  36. rsplotlib-0.1.4/src/marker.rs +144 -0
  37. rsplotlib-0.1.4/src/pyfuncs.rs +755 -0
  38. rsplotlib-0.1.4/src/text_utils.rs +264 -0
@@ -0,0 +1,60 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main, master]
6
+ pull_request:
7
+ branches: [main, master]
8
+
9
+ jobs:
10
+ test:
11
+ strategy:
12
+ matrix:
13
+ os: [ubuntu-latest, macos-latest, windows-latest]
14
+ python-version: ["3.9", "3.13"]
15
+ fail-fast: false
16
+
17
+ runs-on: ${{ matrix.os }}
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - name: Set up Python ${{ matrix.python-version }}
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: ${{ matrix.python-version }}
25
+
26
+ - name: Build wheel and install
27
+ uses: PyO3/maturin-action@v1
28
+ with:
29
+ args: --release -o dist
30
+ pip: uv
31
+
32
+ - name: Install dependencies
33
+ run: uv pip install numpy xlrd --system
34
+
35
+ - name: Run tests
36
+ run: python -c "
37
+ import rsplotlib.pyplot as plt;
38
+ from rsplotlib.gridspec import GridSpec;
39
+ fig = plt.figure();
40
+ gs = GridSpec(1, 1);
41
+ ax = fig.add_subplot(gs[0, 0]);
42
+ ax.plot([1, 2, 3], [1, 2, 3]);
43
+ plt.savefig('/tmp/test_ci.png');
44
+ print('Test passed!');
45
+ "
46
+
47
+ lint:
48
+ runs-on: ubuntu-latest
49
+ steps:
50
+ - uses: actions/checkout@v4
51
+
52
+ - name: Check Rust formatting
53
+ uses: actions-rust-lang/rustfmt@v1
54
+ with:
55
+ args: --check
56
+
57
+ - name: Run clippy
58
+ uses: actions-rust-lang/clippy@v1
59
+ with:
60
+ args: -- -D warnings
@@ -0,0 +1,84 @@
1
+ name: Build and Publish Wheels
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch: # 允许手动触发
7
+
8
+ jobs:
9
+ linux:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v4
14
+
15
+ - name: Build Linux Wheels
16
+ uses: PyO3/maturin-action@v1
17
+ with:
18
+ args: --release --sdist -o dist --find-interpreter
19
+
20
+ - name: Upload Linux artifacts
21
+ uses: actions/upload-artifact@v4
22
+ with:
23
+ name: wheels-linux
24
+ path: dist
25
+
26
+ windows:
27
+ runs-on: windows-latest
28
+ steps:
29
+ - name: Checkout code
30
+ uses: actions/checkout@v4
31
+
32
+ - name: Build Windows Wheels
33
+ uses: PyO3/maturin-action@v1
34
+ with:
35
+ args: --release -o dist --find-interpreter
36
+
37
+ - name: Upload Windows artifacts
38
+ uses: actions/upload-artifact@v4
39
+ with:
40
+ name: wheels-windows
41
+ path: dist
42
+
43
+ macos:
44
+ runs-on: macos-latest
45
+ steps:
46
+ - name: Checkout code
47
+ uses: actions/checkout@v4
48
+
49
+ - name: Build macOS (universal2) Wheels
50
+ uses: PyO3/maturin-action@v1
51
+ with:
52
+ # `--universal2` 生成同时支持 x86_64 和 arm64 的单一 Wheel
53
+ args: --release -o dist --universal2 --find-interpreter
54
+
55
+ - name: Upload macOS artifacts
56
+ uses: actions/upload-artifact@v4
57
+ with:
58
+ name: wheels-macos
59
+ path: dist
60
+
61
+ pypi-publish:
62
+ name: Upload release to PyPI
63
+ runs-on: ubuntu-latest
64
+ needs: [linux, windows, macos]
65
+ # 推荐使用 Trusted Publishing (OIDC) — 在 PyPI 项目设置中配置受信发布方
66
+ # 也可使用传统 Token 方式: 在 GitHub Secrets 中设置 PYPI_API_TOKEN
67
+ environment: release
68
+ permissions:
69
+ id-token: write # Trusted Publishing 需要
70
+ steps:
71
+ - name: Download all artifacts
72
+ uses: actions/download-artifact@v4
73
+ with:
74
+ pattern: wheels-*
75
+ path: dist
76
+ merge-multiple: true
77
+
78
+ - name: Publish to PyPI
79
+ uses: PyO3/maturin-action@v1
80
+ env:
81
+ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
82
+ with:
83
+ command: upload
84
+ args: --skip-existing dist/*
@@ -0,0 +1,38 @@
1
+ # Rust
2
+ target/
3
+ Cargo.lock
4
+
5
+ # Python
6
+ __pycache__/
7
+ *.py[cod]
8
+ *$py.class
9
+ *.so
10
+ *.egg-info/
11
+ dist/
12
+ build/
13
+ *.egg
14
+ .venv/
15
+ venv/
16
+ uv.lock
17
+
18
+ # IDE
19
+ .vscode/
20
+ .idea/
21
+ *.swp
22
+ *.swo
23
+ *~
24
+
25
+ # OS
26
+ .DS_Store
27
+ Thumbs.db
28
+
29
+ # Data / plots
30
+ main*.py
31
+ out/
32
+ wheelhouse/
33
+ N237S NB.csv
34
+ plots*.py
35
+ # Environment
36
+ .venv
37
+ .env
38
+ .env.local
@@ -0,0 +1,449 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "ab_glyph"
7
+ version = "0.2.32"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "01c0457472c38ea5bd1c3b5ada5e368271cb550be7a4ca4a0b4634e9913f6cc2"
10
+ dependencies = [
11
+ "ab_glyph_rasterizer",
12
+ "owned_ttf_parser",
13
+ ]
14
+
15
+ [[package]]
16
+ name = "ab_glyph_rasterizer"
17
+ version = "0.1.10"
18
+ source = "registry+https://github.com/rust-lang/crates.io-index"
19
+ checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
20
+
21
+ [[package]]
22
+ name = "adler2"
23
+ version = "2.0.1"
24
+ source = "registry+https://github.com/rust-lang/crates.io-index"
25
+ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
26
+
27
+ [[package]]
28
+ name = "autocfg"
29
+ version = "1.5.1"
30
+ source = "registry+https://github.com/rust-lang/crates.io-index"
31
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
32
+
33
+ [[package]]
34
+ name = "bitflags"
35
+ version = "1.3.2"
36
+ source = "registry+https://github.com/rust-lang/crates.io-index"
37
+ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
38
+
39
+ [[package]]
40
+ name = "bumpalo"
41
+ version = "3.20.3"
42
+ source = "registry+https://github.com/rust-lang/crates.io-index"
43
+ checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
44
+
45
+ [[package]]
46
+ name = "bytemuck"
47
+ version = "1.25.0"
48
+ source = "registry+https://github.com/rust-lang/crates.io-index"
49
+ checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec"
50
+
51
+ [[package]]
52
+ name = "byteorder"
53
+ version = "1.5.0"
54
+ source = "registry+https://github.com/rust-lang/crates.io-index"
55
+ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
56
+
57
+ [[package]]
58
+ name = "cfg-if"
59
+ version = "1.0.4"
60
+ source = "registry+https://github.com/rust-lang/crates.io-index"
61
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
62
+
63
+ [[package]]
64
+ name = "color_quant"
65
+ version = "1.1.0"
66
+ source = "registry+https://github.com/rust-lang/crates.io-index"
67
+ checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
68
+
69
+ [[package]]
70
+ name = "crc32fast"
71
+ version = "1.5.0"
72
+ source = "registry+https://github.com/rust-lang/crates.io-index"
73
+ checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
74
+ dependencies = [
75
+ "cfg-if",
76
+ ]
77
+
78
+ [[package]]
79
+ name = "fdeflate"
80
+ version = "0.3.7"
81
+ source = "registry+https://github.com/rust-lang/crates.io-index"
82
+ checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
83
+ dependencies = [
84
+ "simd-adler32",
85
+ ]
86
+
87
+ [[package]]
88
+ name = "flate2"
89
+ version = "1.1.9"
90
+ source = "registry+https://github.com/rust-lang/crates.io-index"
91
+ checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
92
+ dependencies = [
93
+ "crc32fast",
94
+ "miniz_oxide",
95
+ ]
96
+
97
+ [[package]]
98
+ name = "futures-core"
99
+ version = "0.3.32"
100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
101
+ checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
102
+
103
+ [[package]]
104
+ name = "futures-task"
105
+ version = "0.3.32"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
108
+
109
+ [[package]]
110
+ name = "futures-util"
111
+ version = "0.3.32"
112
+ source = "registry+https://github.com/rust-lang/crates.io-index"
113
+ checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
114
+ dependencies = [
115
+ "futures-core",
116
+ "futures-task",
117
+ "pin-project-lite",
118
+ "slab",
119
+ ]
120
+
121
+ [[package]]
122
+ name = "heck"
123
+ version = "0.5.0"
124
+ source = "registry+https://github.com/rust-lang/crates.io-index"
125
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
126
+
127
+ [[package]]
128
+ name = "image"
129
+ version = "0.24.9"
130
+ source = "registry+https://github.com/rust-lang/crates.io-index"
131
+ checksum = "5690139d2f55868e080017335e4b94cb7414274c74f1669c84fb5feba2c9f69d"
132
+ dependencies = [
133
+ "bytemuck",
134
+ "byteorder",
135
+ "color_quant",
136
+ "jpeg-decoder",
137
+ "num-traits",
138
+ "png",
139
+ ]
140
+
141
+ [[package]]
142
+ name = "jpeg-decoder"
143
+ version = "0.3.2"
144
+ source = "registry+https://github.com/rust-lang/crates.io-index"
145
+ checksum = "00810f1d8b74be64b13dbf3db89ac67740615d6c891f0e7b6179326533011a07"
146
+
147
+ [[package]]
148
+ name = "js-sys"
149
+ version = "0.3.99"
150
+ source = "registry+https://github.com/rust-lang/crates.io-index"
151
+ checksum = "142bc4740e452c1e57ade0cbc129f139c9093e354346f0872ef985f4f5cf5f11"
152
+ dependencies = [
153
+ "cfg-if",
154
+ "futures-util",
155
+ "once_cell",
156
+ "wasm-bindgen",
157
+ ]
158
+
159
+ [[package]]
160
+ name = "libc"
161
+ version = "0.2.186"
162
+ source = "registry+https://github.com/rust-lang/crates.io-index"
163
+ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
164
+
165
+ [[package]]
166
+ name = "miniz_oxide"
167
+ version = "0.8.9"
168
+ source = "registry+https://github.com/rust-lang/crates.io-index"
169
+ checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
170
+ dependencies = [
171
+ "adler2",
172
+ "simd-adler32",
173
+ ]
174
+
175
+ [[package]]
176
+ name = "num-traits"
177
+ version = "0.2.19"
178
+ source = "registry+https://github.com/rust-lang/crates.io-index"
179
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
180
+ dependencies = [
181
+ "autocfg",
182
+ ]
183
+
184
+ [[package]]
185
+ name = "once_cell"
186
+ version = "1.21.4"
187
+ source = "registry+https://github.com/rust-lang/crates.io-index"
188
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
189
+
190
+ [[package]]
191
+ name = "owned_ttf_parser"
192
+ version = "0.25.1"
193
+ source = "registry+https://github.com/rust-lang/crates.io-index"
194
+ checksum = "36820e9051aca1014ddc75770aab4d68bc1e9e632f0f5627c4086bc216fb583b"
195
+ dependencies = [
196
+ "ttf-parser",
197
+ ]
198
+
199
+ [[package]]
200
+ name = "pin-project-lite"
201
+ version = "0.2.17"
202
+ source = "registry+https://github.com/rust-lang/crates.io-index"
203
+ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
204
+
205
+ [[package]]
206
+ name = "plotters"
207
+ version = "0.3.7"
208
+ source = "registry+https://github.com/rust-lang/crates.io-index"
209
+ checksum = "5aeb6f403d7a4911efb1e33402027fc44f29b5bf6def3effcc22d7bb75f2b747"
210
+ dependencies = [
211
+ "ab_glyph",
212
+ "num-traits",
213
+ "once_cell",
214
+ "plotters-backend",
215
+ "plotters-bitmap",
216
+ "plotters-svg",
217
+ "wasm-bindgen",
218
+ "web-sys",
219
+ ]
220
+
221
+ [[package]]
222
+ name = "plotters-backend"
223
+ version = "0.3.7"
224
+ source = "registry+https://github.com/rust-lang/crates.io-index"
225
+ checksum = "df42e13c12958a16b3f7f4386b9ab1f3e7933914ecea48da7139435263a4172a"
226
+
227
+ [[package]]
228
+ name = "plotters-bitmap"
229
+ version = "0.3.7"
230
+ source = "registry+https://github.com/rust-lang/crates.io-index"
231
+ checksum = "72ce181e3f6bf82d6c1dc569103ca7b1bd964c60ba03d7e6cdfbb3e3eb7f7405"
232
+ dependencies = [
233
+ "image",
234
+ "plotters-backend",
235
+ ]
236
+
237
+ [[package]]
238
+ name = "plotters-svg"
239
+ version = "0.3.7"
240
+ source = "registry+https://github.com/rust-lang/crates.io-index"
241
+ checksum = "51bae2ac328883f7acdfea3d66a7c35751187f870bc81f94563733a154d7a670"
242
+ dependencies = [
243
+ "plotters-backend",
244
+ ]
245
+
246
+ [[package]]
247
+ name = "png"
248
+ version = "0.17.16"
249
+ source = "registry+https://github.com/rust-lang/crates.io-index"
250
+ checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526"
251
+ dependencies = [
252
+ "bitflags",
253
+ "crc32fast",
254
+ "fdeflate",
255
+ "flate2",
256
+ "miniz_oxide",
257
+ ]
258
+
259
+ [[package]]
260
+ name = "portable-atomic"
261
+ version = "1.13.1"
262
+ source = "registry+https://github.com/rust-lang/crates.io-index"
263
+ checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
264
+
265
+ [[package]]
266
+ name = "proc-macro2"
267
+ version = "1.0.106"
268
+ source = "registry+https://github.com/rust-lang/crates.io-index"
269
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
270
+ dependencies = [
271
+ "unicode-ident",
272
+ ]
273
+
274
+ [[package]]
275
+ name = "pyo3"
276
+ version = "0.29.0"
277
+ source = "registry+https://github.com/rust-lang/crates.io-index"
278
+ checksum = "cd274650b21d4bfc26a0a47587962c1edb425f69287324355cd040c3ea66071c"
279
+ dependencies = [
280
+ "libc",
281
+ "once_cell",
282
+ "portable-atomic",
283
+ "pyo3-build-config",
284
+ "pyo3-ffi",
285
+ "pyo3-macros",
286
+ ]
287
+
288
+ [[package]]
289
+ name = "pyo3-build-config"
290
+ version = "0.29.0"
291
+ source = "registry+https://github.com/rust-lang/crates.io-index"
292
+ checksum = "c5e2a7d2f0d013342f295c048ad19237add5154a55b1c5a254c0ec93d4109078"
293
+ dependencies = [
294
+ "target-lexicon",
295
+ ]
296
+
297
+ [[package]]
298
+ name = "pyo3-ffi"
299
+ version = "0.29.0"
300
+ source = "registry+https://github.com/rust-lang/crates.io-index"
301
+ checksum = "ca85c467da1bbc8d866eea5deff9cf29ea5f7785054a17da36e65bda9c05845b"
302
+ dependencies = [
303
+ "libc",
304
+ "pyo3-build-config",
305
+ ]
306
+
307
+ [[package]]
308
+ name = "pyo3-macros"
309
+ version = "0.29.0"
310
+ source = "registry+https://github.com/rust-lang/crates.io-index"
311
+ checksum = "9ac53762fd065daa3194dd09337a38bd793a188100fd1a9304c4ab312d901771"
312
+ dependencies = [
313
+ "proc-macro2",
314
+ "pyo3-macros-backend",
315
+ "quote",
316
+ "syn",
317
+ ]
318
+
319
+ [[package]]
320
+ name = "pyo3-macros-backend"
321
+ version = "0.29.0"
322
+ source = "registry+https://github.com/rust-lang/crates.io-index"
323
+ checksum = "4ca3a1557399783172dc5bf39cfca835157732532cba56b71d2292161e53b362"
324
+ dependencies = [
325
+ "heck",
326
+ "proc-macro2",
327
+ "quote",
328
+ "syn",
329
+ ]
330
+
331
+ [[package]]
332
+ name = "quote"
333
+ version = "1.0.45"
334
+ source = "registry+https://github.com/rust-lang/crates.io-index"
335
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
336
+ dependencies = [
337
+ "proc-macro2",
338
+ ]
339
+
340
+ [[package]]
341
+ name = "rsplotlib"
342
+ version = "0.1.4"
343
+ dependencies = [
344
+ "plotters",
345
+ "png",
346
+ "pyo3",
347
+ ]
348
+
349
+ [[package]]
350
+ name = "rustversion"
351
+ version = "1.0.22"
352
+ source = "registry+https://github.com/rust-lang/crates.io-index"
353
+ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
354
+
355
+ [[package]]
356
+ name = "simd-adler32"
357
+ version = "0.3.9"
358
+ source = "registry+https://github.com/rust-lang/crates.io-index"
359
+ checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"
360
+
361
+ [[package]]
362
+ name = "slab"
363
+ version = "0.4.12"
364
+ source = "registry+https://github.com/rust-lang/crates.io-index"
365
+ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
366
+
367
+ [[package]]
368
+ name = "syn"
369
+ version = "2.0.117"
370
+ source = "registry+https://github.com/rust-lang/crates.io-index"
371
+ checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
372
+ dependencies = [
373
+ "proc-macro2",
374
+ "quote",
375
+ "unicode-ident",
376
+ ]
377
+
378
+ [[package]]
379
+ name = "target-lexicon"
380
+ version = "0.13.5"
381
+ source = "registry+https://github.com/rust-lang/crates.io-index"
382
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
383
+
384
+ [[package]]
385
+ name = "ttf-parser"
386
+ version = "0.25.1"
387
+ source = "registry+https://github.com/rust-lang/crates.io-index"
388
+ checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31"
389
+
390
+ [[package]]
391
+ name = "unicode-ident"
392
+ version = "1.0.24"
393
+ source = "registry+https://github.com/rust-lang/crates.io-index"
394
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
395
+
396
+ [[package]]
397
+ name = "wasm-bindgen"
398
+ version = "0.2.122"
399
+ source = "registry+https://github.com/rust-lang/crates.io-index"
400
+ checksum = "3ed04576f974d2b2fba0f38c51dbc5518011e38c36bf1143164be765528fd409"
401
+ dependencies = [
402
+ "cfg-if",
403
+ "once_cell",
404
+ "rustversion",
405
+ "wasm-bindgen-macro",
406
+ "wasm-bindgen-shared",
407
+ ]
408
+
409
+ [[package]]
410
+ name = "wasm-bindgen-macro"
411
+ version = "0.2.122"
412
+ source = "registry+https://github.com/rust-lang/crates.io-index"
413
+ checksum = "916151b09da36bd82f6615cbf3a419e2f0ba23a03c6160e8e92eb6bd4aa1dec6"
414
+ dependencies = [
415
+ "quote",
416
+ "wasm-bindgen-macro-support",
417
+ ]
418
+
419
+ [[package]]
420
+ name = "wasm-bindgen-macro-support"
421
+ version = "0.2.122"
422
+ source = "registry+https://github.com/rust-lang/crates.io-index"
423
+ checksum = "299047362ccbfce148b67ab7e73349f77748e00c8296f9542adfad2ad82c5c5e"
424
+ dependencies = [
425
+ "bumpalo",
426
+ "proc-macro2",
427
+ "quote",
428
+ "syn",
429
+ "wasm-bindgen-shared",
430
+ ]
431
+
432
+ [[package]]
433
+ name = "wasm-bindgen-shared"
434
+ version = "0.2.122"
435
+ source = "registry+https://github.com/rust-lang/crates.io-index"
436
+ checksum = "9a929b2c61f11ba3e9bc35b50c1f25cb38e0e892c0c231ae2b8cf78d5dad4437"
437
+ dependencies = [
438
+ "unicode-ident",
439
+ ]
440
+
441
+ [[package]]
442
+ name = "web-sys"
443
+ version = "0.3.99"
444
+ source = "registry+https://github.com/rust-lang/crates.io-index"
445
+ checksum = "6d621441cfc37b84979402712047321980c178f299193a3589d05b99e8763436"
446
+ dependencies = [
447
+ "js-sys",
448
+ "wasm-bindgen",
449
+ ]
@@ -0,0 +1,14 @@
1
+ [package]
2
+ name = "rsplotlib"
3
+ version = "0.1.4"
4
+ edition = "2024"
5
+ readme = "README.md"
6
+
7
+ [lib]
8
+ name = "rsplotlib"
9
+ crate-type = ["cdylib"]
10
+
11
+ [dependencies]
12
+ pyo3 = "0.29.0"
13
+ plotters = { version = "0.3", default-features = false, features = ["svg_backend", "bitmap_backend", "bitmap_encoder", "ab_glyph", "line_series", "point_series"] }
14
+ png = "0.17.16"
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 rsplotlib
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.