Commit 815e8b3
Graphic features refactor (#511)
* just a start
* pushing to continue on my desktop
* progress on buffer manager cleanup_key
* more progress, still lots to do
* slicing working with PointsDataFeature, negative slices too, still major WIP
* comitting stuff
* _update_range() is pretty good now
* comment
* if statement
* simply colors setting
* type annotation
* simpler slice parsing
* remove cleanup_key :D :D :D git status!
* all fancy and negative indexing working :D
* start tests
* exception message
* more on tests
* refactor sizes, not tested yet
* start parameterizing buffer tests
* better buffer tests
* more variants
* add array fancy indexing to same parameterization
* parameterize tuple tests
* remove repr
* test offset and size
* test offset and size
* test create colors
* also test with direct truth indices in colors
* points tests, works
* remove imports
* sizes test working, other cleanup
* export sizes feature again
* ideas for sharing and unsharing buffers between graphics
* ideas for sharing and unsharing buffers between graphics, nto tested
* typing
* attach and detach buffers to a graphic, not tested
* import
* more int point tests
* Graphic.add_event_handler
* adding and removing data feature event works and tested
* common features, WIP
* regular features and refactor line and scatter into positions graphic
* uniform sizes
* implement sizes and uniform size for scatter
* VertexCmap feature, not yet tested
* start image features, not tested, add thickness, not tested
* better cmap parsing
* cleanup
* image features
* cleanup
* start selection feature refactor
* more on selection features
* offset and rotation for base graphic
* feature event table
* position feature event tables
* rotation and offset features
* work on selectors, WIP, linear region selector inits properly and moves for x-axis
* proper centering
* much simpliified and better linear region selector
* linear region selector works well on x axis with events and data selection
* vertex cmap fix, delete synchronizer
* linear selector works
* cleanup
* update graphic methods mixin
* update selector example nbs, still WIP
* type annotation in setter
* add notes to tests comments
* refactor image stuff
* image selector tool
* return selectors as proxies
* image stuff works
* fix offsets adding graphics, fix positions_graphic cmap bug, quickstart runs :D
* fix add_graphic args and mixin
* simpler graphic collection stuff
* more line collection
* remove old events system
* fix some examples
* remove lingering older interaction stuff
* cleanup
* fill color arg
* black
* update examples
* fix image tiling, better heatmap example
* update hm examples
* fix hlut
* refactor graphics base
* update line examples
* bug fixes
* update text to use new gfeatures
* cleanup
* implement iterator for TextureArray, much simpler now :D
* basic texture tests
* bugfix, cleanup
* image graphic tests
* type annot
* test stuff
* tests for common and visible kwarg for Graphic
* bugfix
* test remove event hanlders common fea
* rename
* start test positions graphics
* test progress
* black
* add __len__ to buffer managers, add __array_interface__ raises error
* TextureArray has len()
* docstring
* updates and tests
* black
* uniform colors tests and bug fix
* black
* bugfix uniform color and sizes
* sizes and thickness tests
* tests update
* lotta team work
* docstring, small things
* rename UniformSizes -> UniformSize
* update graphic methods mixin
* update graphic methods mixin
* bugfix
* test data slice for positiosn graphics
* test colors property within buffer tests
* cleanup
* emit user key not parsed key
* rename cmap_values to transform
* cmap_values -> cmap_transform in mixin
* test graphics in vertex data buffer manager tests
* cmap transform tests
* make Graphic._features private, add Graphic.events property
* color events tests
* move data slice test to just buffer tests
* data events tests
* cleanup
* cleanup, remove old histogram graphic
* text changes and tests
* texture array tests with graphic
* image graphic tests
* update image features
* black
* append data and world xy for graphic pointer events
* black
* move constructor to top
* example tests for wide and square hm
* update ci
* fix message
* update examples
* bugfix, docstrings
* docstrings, exception messages
* update api docs
* apparently we use __all__ in graphics to generate api docs
* remove nbsphinx
* bump version
* docstring
* finish up line collection
* fix adding line selector to line collection
* finish line collection
* update line collection examples
* graphic collections are now iterables, add examples for setting properties, add names and metadatas args, separate kwargs for collection and individual lines
* 3d line stack example with animation
* fix line collection cmap with additional args
* black
* update kwargs for line collection because of mixin
* add numpy.integer check for buffermanager parse slice
* rename
* docstrings
* line linear selector init logic
* fix line collection init selectors
* fix selector
* add plot area hook for collections
* docstring
* update selector nbs
* update example nb
* update nb
* cleanup
* update nb
* update nbs
* feature is private class attr
* fix
* remove anim example from screenshot tests
* update screenshots
* update screenshot
* update CONTRIBUTING
* smaller hm data test for CI
* exclude heatmap change data from tests, too large RAM usage probably
* black
* change dtype to save ram usage for CI
* remove large square heatmap from screenshot tests
* black
* disable all but one hm test
* fix gc
* update screenshots
* replace one more test image
* fix docs
* update image screenshots
* fix docs
* docstrings, Graphic.events -> Graphic.supported_events
* update docs
---------
Co-authored-by: Caitlin <caitlin9165@gmail.com>1 parent 9a309ef commit 815e8b3
File tree
192 files changed
+7204
-6537
lines changed- .github/workflows
- docs/source
- api
- graphic_features
- graphics
- layouts
- selectors
- examples
- desktop
- heatmap
- image
- line_collection
- line
- scatter
- screenshots
- notebooks
- screenshots
- fastplotlib
- graphics
- _features
- selectors
- layouts
- utils
- widgets
- scripts
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
192 files changed
+7204
-6537
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
4 | 15 | | |
5 | 16 | | |
6 | 17 | | |
7 | 18 | | |
| 19 | + | |
8 | 20 | | |
9 | 21 | | |
10 | 22 | | |
11 | 23 | | |
12 | | - | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
83 | 84 | | |
84 | | - | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
91 | 92 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
95 | 97 | | |
96 | | - | |
97 | | - | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
100 | | - | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | | - | |
108 | | - | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
195 | | - | |
196 | | - | |
197 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
198 | 201 | | |
199 | 202 | | |
200 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
This file was deleted.
0 commit comments