Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
84e6590
remove isolated_buffer
kushalkolar Jan 13, 2026
7163c96
remove isolated_buffer from mixin
kushalkolar Jan 13, 2026
426ee5c
basics works for positions data
kushalkolar Jan 13, 2026
23622b0
replaceable buffers for all positions related features
kushalkolar Jan 13, 2026
e19588a
image data buffer can change
kushalkolar Jan 13, 2026
d9f5ca9
resizeable buffers for volume
kushalkolar Jan 13, 2026
ea0d791
black
kushalkolar Jan 13, 2026
734be0e
buffer resize condition checked only if new value is an array
kushalkolar Jan 13, 2026
7974436
gc for buffer managers
kushalkolar Jan 13, 2026
fe749ce
uniform colors WIP
kushalkolar Jan 14, 2026
e667a9d
Merge branch 'main' into replaceable-buffers
kushalkolar Feb 2, 2026
b8f8613
switching color modes works!
kushalkolar Feb 2, 2026
543d4e9
typo
kushalkolar Feb 2, 2026
8a1c15a
balck
kushalkolar Feb 2, 2026
fdeecb1
update tests for color_mode
kushalkolar Feb 2, 2026
6299cdd
update examples
kushalkolar Feb 2, 2026
8b217cc
backend tests passing
kushalkolar Feb 2, 2026
5fd68e2
default for all uniforms is True
kushalkolar Feb 2, 2026
e1d40ba
update examples
kushalkolar Feb 2, 2026
096a51c
forgot
kushalkolar Feb 2, 2026
274d449
update test
kushalkolar Feb 2, 2026
8d776d4
example tests passing
kushalkolar Feb 2, 2026
fce7087
dereferencing test and fixes
kushalkolar Feb 3, 2026
44fdbb9
simplify texture array tests a bit
kushalkolar Feb 3, 2026
d090dca
image replace buffer tests pass yay
kushalkolar Feb 3, 2026
d6754d0
forgot a file
kushalkolar Feb 4, 2026
83b924e
comments, check image graphic
kushalkolar Feb 4, 2026
2237d51
add image reshaping example
kushalkolar Feb 4, 2026
630435e
add buffer replace imgui thing for manual testing
kushalkolar Feb 4, 2026
a87dfdf
black
kushalkolar Feb 4, 2026
30e87ad
dont call wgpu_obj.destroy(), seems to work and clear VRAM with norma…
kushalkolar Feb 4, 2026
6228d6c
slower changes
kushalkolar Feb 4, 2026
e207d5b
update
kushalkolar Feb 4, 2026
5c894c3
update example
kushalkolar Feb 4, 2026
7452fa8
fixes and tweaks for test
kushalkolar Feb 4, 2026
16c979d
remove unecessary stuff
kushalkolar Feb 4, 2026
68be2e0
update
kushalkolar Feb 4, 2026
cb85ac1
Merge branch 'main' into replaceable-buffers
kushalkolar Feb 4, 2026
500426d
docstrings
kushalkolar Feb 4, 2026
dd7a829
fix example
kushalkolar Feb 4, 2026
da54a9c
update example
kushalkolar Feb 4, 2026
eb7fbae
update example
kushalkolar Feb 4, 2026
2e8726f
update docs
kushalkolar Feb 4, 2026
fd87cae
Merge branch 'main' into replaceable-buffers
kushalkolar Feb 4, 2026
bf3041a
Merge branch 'ndwidget' into replaceable-buffers
kushalkolar Feb 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
black
  • Loading branch information
kushalkolar committed Feb 4, 2026
commit a87dfdf8e54a713ca17e19279a9fe640128ac8a2
11 changes: 8 additions & 3 deletions examples/image/image_reshaping.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import numpy as np
import fastplotlib as fpl


xs = np.linspace(0, 2300, 2300, dtype=np.float16)

sine = np.sin(np.sqrt(xs))
Expand All @@ -32,11 +31,13 @@
fig.show()

i, j = 1, 1


def update():
global i, j
row = np.abs(np.sin(i)) * 2300
col = np.abs(np.cos(i)) * 2300
image.data = full_data[:int(row), :int(col)]
image.data = full_data[: int(row), : int(col)]

i += 0.1
j += 0.1
Expand All @@ -45,4 +46,8 @@ def update():
fig.add_animations(update)


fpl.loop.run()
# NOTE: fpl.loop.run() should not be used for interactive sessions
# See the "JupyterLab and IPython" section in the user guide
if __name__ == "__main__":
print(__doc__)
fpl.loop.run()
Loading