glplot 0.1.0__py3-none-any.whl

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.
@@ -0,0 +1,75 @@
1
+ Metadata-Version: 2.4
2
+ Name: glplot
3
+ Version: 0.1.0
4
+ Summary: High-performance OpenGL plotting library, similar to Matplotlib
5
+ Author-email: Juan Manuel Lombardi <lombardi@fhi-berlin.mpg.de>
6
+ License-File: LICENSE
7
+ Requires-Python: >=3.9
8
+ Requires-Dist: glfw
9
+ Requires-Dist: imgui
10
+ Requires-Dist: imgui[glfw]
11
+ Requires-Dist: matplotlib
12
+ Requires-Dist: numpy
13
+ Requires-Dist: pyopengl
14
+ Requires-Dist: scipy
15
+ Provides-Extra: test
16
+ Requires-Dist: pytest; extra == 'test'
17
+ Requires-Dist: pytest-cov; extra == 'test'
18
+ Requires-Dist: pytest-mock; extra == 'test'
19
+ Description-Content-Type: text/markdown
20
+
21
+ # GLPlot
22
+
23
+ High-performance, GPU-accelerated plotting library in Python, designed to handle **millions** of lines effortlessly. It provides an API similar to Matplotlib but runs natively over an OpenGL/GLFW backend, performing instanced rendering directly on the GPU.
24
+
25
+ ## Features
26
+ - **Matplotlib API Compatibility**: Familiar `plot(x, y)`, `show()`, `savefig()`.
27
+ - **Phase Diagram Optimized (`plot_lines`)**: Explicitly supports passing millions of line parameters $(a, b)$ to calculate functions $y = ax + b$ securely bounded to bounds using shader math.
28
+ - **Logarithmic Density Heaps**: By displaying overlaps, `density=True` handles millions of parallel curves seamlessly for heatmaps.
29
+ - **Dynamic Camera**: Drag to pan, scroll to zoom with on-the-fly resolution subsampling.
30
+
31
+ ## Installation
32
+
33
+ You can install this locally:
34
+
35
+ ```bash
36
+ pip install .
37
+ ```
38
+
39
+ Requirements: `numpy`, `glfw`, `PyOpenGL`, `scipy`, `matplotlib`.
40
+
41
+ ## Usage
42
+
43
+ **Traditional Polylines**
44
+ ```python
45
+ import numpy as np
46
+ import glplot.pyplot as gplt
47
+
48
+ x = np.linspace(0, 10, 100)
49
+ y = np.sin(x)
50
+
51
+ gplt.figure("Sine Wave")
52
+ gplt.plot(x, y, color=(1.0, 0.0, 0.0, 1.0))
53
+ gplt.show()
54
+ ```
55
+
56
+ **Bulk Lines (Density Map)**
57
+ ```python
58
+ import numpy as np
59
+ import glplot.pyplot as gplt
60
+
61
+ N = 1000000
62
+ a = np.random.randn(N)
63
+ b = np.random.randn(N)
64
+
65
+ gplt.figure("Density")
66
+ gplt.plot_lines(a, b, x_range=(-2, 2))
67
+ gplt.show(density=True)
68
+ ```
69
+
70
+ ## Testing
71
+
72
+ Uses `pytest` covering 100% of the internal application logic without popping visible windows:
73
+ ```bash
74
+ pytest
75
+ ```
@@ -0,0 +1,39 @@
1
+ glplot/__init__.py,sha256=bCn7SJTkbNjwlnZHhg3IT8EX6u8D4mkx_tGArXNP73s,184
2
+ glplot/backend.py,sha256=lpNJPD8opw7-6shsC30JbrmaFwQnYBvWxJw0dLcvBQM,441
3
+ glplot/controllers.py,sha256=7jx_KehJNIuKCFhldQaC7o5xI7R1avsuN0a4qfLb4qQ,2842
4
+ glplot/engine.py,sha256=Jb0Gxd1cf1bSxGP2q4SULul5BVw9p20NxFtYc8OSu6U,53048
5
+ glplot/options.py,sha256=iU6quG-ytZ8thxhzo2aCihUHZsvv0OSE_aHUhch_fDg,3924
6
+ glplot/policy.py,sha256=P4rT_xj6ACNg-P-W2oyleAOavOtTHtbVrSNhNszyaic,4534
7
+ glplot/pyplot.py,sha256=bbuYaBKIscbv0t_AzstaQu_pdbtiLgJgGSwnNbXusk4,21878
8
+ glplot/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ glplot/core/context.py,sha256=QCDdiy84XOZmGrRuak2UlkptqYRpZn3WaACVrYfIx7U,1607
10
+ glplot/core/layers.py,sha256=5DOG8yOgwgj2a4IhmFfYfXpC8a2HIj2MR3sQ-Sf3Xoo,6293
11
+ glplot/core/legacy.py,sha256=KJQbpw9QF7AVYvcXo2HJlqKo9khFjDTgXN6RGj_uY9E,3165
12
+ glplot/managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
+ glplot/managers/axis.py,sha256=aLtFjkVk2T0t0GBTfRNz4p8cjYbKN16uOOHjsh1mvgc,2217
14
+ glplot/managers/effects.py,sha256=COWAkwhBccLn4gt-s0yE7TTWG8lU2tVD8bAzM93Fg-g,11940
15
+ glplot/managers/hud.py,sha256=WbGKfObRERpHwBw-pS96mAFb5GapD8OnITU-AKVMu_w,22465
16
+ glplot/managers/hud_state.py,sha256=wE-UckoY3Zf03ulTbzNzW_CqN7BF2Vl5E8tq5LPELg8,2929
17
+ glplot/managers/picking.py,sha256=O19m-nOnqJP37CJLreDwce5DGcFPTXFGLlnWcEUFDKQ,8017
18
+ glplot/managers/renderer_manager.py,sha256=kWH_fqsDU3_Asxfcr9oa27u9GjO_4V2RsZH3do_pMiw,6756
19
+ glplot/renderers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
+ glplot/renderers/axis.py,sha256=u0iUO8DhD4jvGVwdy_F-edxpwBekSgjzlAp1idtt6sQ,4677
21
+ glplot/renderers/base.py,sha256=l6t6nl5VEq4sw9eorvJ4wfES4I4Nse7P4cdi2YlZ0L0,921
22
+ glplot/renderers/density.py,sha256=L65E0i9x3QcHhAEgghrG3ts5wKZ_1qXMyoTOOhjwnS0,5035
23
+ glplot/renderers/exact.py,sha256=FoV6wLk6ZwJbaBOn2LFMG0i9zAjrbMrfLLs5XZ6nvvc,9337
24
+ glplot/renderers/interaction.py,sha256=hieXaInakLlpunVyiK77xlpyAARdIXTQfmRg8G7EWQo,3252
25
+ glplot/renderers/line_family.py,sha256=lvHVK0DYikjv3y7EJ53NZZG4kQ3ZY4wPMYpJv3pGzNA,10517
26
+ glplot/renderers/patch.py,sha256=EfVrUeJsLG8xULG5TeNbnKKip-HbF0U7q-Kfqkvvmb0,5642
27
+ glplot/renderers/polyline.py,sha256=CLmiHh-Tgn4hdouFwIhKyrXbORyKjtvS7yJIT3QkIc4,8642
28
+ glplot/renderers/scatter.py,sha256=CfroBvQ_hjU5u0rzkrrkQLHjLevFKfxaw3fqzZIvczw,7574
29
+ glplot/renderers/text.py,sha256=agP2_DgV1T63gnjtleqWLTlF_Vx33BNm7oTxUn6EYLY,2501
30
+ glplot/scratch/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
+ glplot/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
+ glplot/utils/export.py,sha256=96qPI8dBJ1eqqZXM8k0yS4tajQC_9CEf4_SX3AAchoI,4034
33
+ glplot/utils/gl_utils.py,sha256=GK3pmWq3w_HbTkg6MAb3ATuRri2468VIYaONzcOfzpI,1167
34
+ glplot/utils/mpl_bridge.py,sha256=quZYtEhiNn0jnthOobyik16KKDPr6OpcA_F0FhNKpHY,1657
35
+ glplot/utils/shaders.py,sha256=OZ7szAChab-3AhPCvhl1HceX4-eV6mENylKZlGHUizQ,22688
36
+ glplot-0.1.0.dist-info/METADATA,sha256=gtRYYS6fRXV-yrtCfVMQL3WQy6fAdPY6ovv1fyzTqkg,2089
37
+ glplot-0.1.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
38
+ glplot-0.1.0.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
+ glplot-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.29.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
File without changes