Skip to content

Conversation

@bobleesj
Copy link
Collaborator

What this PR does

Visualize time-series, tomography, etc.

Screenshot 2026-01-17 at 1 01 06 AM Screenshot 2026-01-17 at 1 01 18 AM Screenshot 2026-01-17 at 1 04 56 AM

API design:

# Dataset3d.show() API
data.show()                          # all frames in 4-column grid
data.show(index=0)                   # single frame
data.show(index=-1)                  # last frame
data.show(ncols=2)                   # 2 columns
data.show(title="DP")                # titles: "DP 0", "DP 1", ...
data.show(suptitle="Time series")    # figure super title
data.show(cmap="viridis")            # colormap
data.show(cbar=True)                 # colorbar
data.show(scalebar=False)            # disable scalebar
fig, axes = data.show(returnfig=True)  # get figure for customization

Notebooks:
dataset3d_visualization.ipynb

What should PR reviewer(s) do

Please feel free to test the notebook and evaluate its API design

- Add docstring with examples to from_array()
- Add docstring with examples to from_shape()
- Use "Frame N" as default title (appropriate for time series/tomography)
- Add suptitle parameter with proper layout adjustment
@bobleesj
Copy link
Collaborator Author

@ceobrero Could you pls review this and stress test this? since you have thousands of times-series data, that would quite help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant