Skip to content

Materials and resources for an internal talk at Rockefeller University

License

Notifications You must be signed in to change notification settings

fastplotlib/fpl-rockefeller2025

Repository files navigation

fpl-rockefeller2025

Materials and resources for an internal talk at Rockefeller University. This repo includes installation instructions and the demo notebooks covered in our talk.

Recording: https://www.youtube.com/watch?v=nmi-X6eU7Wo

For more info on fastplotlib see the repo: https://github.com/fastplotlib/fastplotlib/

The demos cover the following topics:

  1. Simple introduction to fastplotlib - Images, Lines, and events
    • plotting simple images, feature changes, image updates, fancy indexing of features
    • included exercises
  2. Neuroscience using fastplotlib
    • building a complex plot to explore behavioral and calcium imaging data
    • integration of fastplotlib with pynapple

Installation Instructions

See the fastplotlib repo for installation.

In order to run the notebooks you will need to have imageio, pynapple, and scikit-image. These are not dependencies of fastplotlib, but are being used in these demos.

Install using pip

# you will need to install imageio
pip install imageio

# you will need to install scikit-image
pip install scikit-image

# optional, you'll need C compilers
pip install simplejpeg

# fastplotlib with notebook dependencies
pip install "fastplotlib[notebook,imgui]"

# pynapple
pip install pynapple

General fastplotlib API

1. Graphics - objects that are drawn

  • Image, Line, Scatter

  • Collections - LineCollection, LineStack (ex: neural timeseries data)

    a) Graphic Properties

    • Common: Name, Offset, Rotation, Visible, Deleted
    • Graphic Specific: ImageVmin, ImageVmax, VertexColors, etc.

    b) Selectors

    • LinearSelector - horizontal or vertical line slider
    • LinearRegionSelector - horizontal or vertical resizable region selection

2. Layouts

  • Figure - a single plot or a grid of subplots

3. Widgets - high level widgets to make repetitive UIs easier

  • ImageWidget- widget for ImageGraphic data with dims: xy, txy, tzxy
  • Sliders, support window functions, etc.

Docs

For a more in-depth look at our API, please visit our docs.

Contributions ❤️

fastplotlib is a relatively new library, and we are always looking for feedback or help! Please see the contributing guide.

You can also look at our Roadmap for 2025 and Issues for more ideas on how to contribute.

About

Materials and resources for an internal talk at Rockefeller University

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published