GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ImageWidget.set_data() does not work if the histogram widget was never used · Issue #850 · fastplotlib/fastplotlib

ImageWidget.set_data() does not work if the histogram widget was never used #850

New issue
Copy link
New issue
Copy link
Closed
#851
Closed
ImageWidget.set_data() does not work if the histogram widget was never used#850
#851
Copy link

Description

@kushalkolar
kushalkolar
opened on Jun 2, 2025
Issue body actions
IndexError                                Traceback (most recent call last)
Cell In[11], line 2
      1 sub_df = df[(df["fly"] == 4) & (df["cw"] == "rot-ccw-0.06")]
----> 2 iw.set_data([row["sample"].get_video() for i, row in sub_df.iterrows()])

File [~/repos/fastplotlib/fastplotlib/widgets/image_widget/_widget.py:946](http://localhost:8888/lab/tree/repos/fastplotlib/examples/repos/fastplotlib/fastplotlib/widgets/image_widget/_widget.py#line=945), in ImageWidget.set_data(self, new_data, reset_vmin_vmax, reset_indices)
    943 new_graphic = ImageGraphic(data=frame, name="image_widget_managed")
    945 # set hlut tool to use new graphic
--> 946 subplot.docks["right"]["histogram_lut"].image_graphic = new_graphic
    947 # delete old graphic after setting hlut tool to new graphic
    948 # this ensures gc
    949 subplot.delete_graphic(graphic=subplot["image_widget_managed"])

File [~/repos/fastplotlib/fastplotlib/layouts/_plot_area.py:689](http://localhost:8888/lab/tree/repos/fastplotlib/examples/repos/fastplotlib/fastplotlib/layouts/_plot_area.py#line=688), in PlotArea.__getitem__(self, name)
    686     if graphic.name == name:
    687         return graphic
--> 689 raise IndexError(f"No graphic or selector of given name in plot area.\n")

IndexError: No graphic or selector of given name in plot area.

Activity

  1. clewis7
    closed this as completedin #851on Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.