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 — Draw Rectangles · fastplotlib/fastplotlib · Discussion #885

Draw Rectangles #885

willpartcl started this conversation in Ideas
Draw Rectangles #885
@willpartcl willpartcl
Aug 6, 2025 · 5 comments
Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

willpartcl
Aug 6, 2025

I have a very specific application that requires drawing rectangles in a plot. Can you PLEASE add this feature...

You must be logged in to vote
All reactions

Replies: 5 comments

Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

kushalkolar
Aug 6, 2025
Maintainer

Does the rectangle selector work for your usecase? https://fastplotlib.org/ver/dev/_gallery/index.html#selection-tools

You must be logged in to vote
All reactions
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

willpartcl
Aug 7, 2025
Author

I want to plot things like the gifs in the readme of this repo: https://github.com/The-OpenROAD-Project/RePlAce

You must be logged in to vote
All reactions
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

kushalkolar
Aug 7, 2025
Maintainer

I would use the RectangleSelector and make it non-responsive to events:

for wo in rectangle_selector.world_object.children:
     wo.material.pick_write = False

In the future we can make a kwarg that enables/disable selectors.

You must be logged in to vote
All reactions
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

kushalkolar
Aug 7, 2025
Maintainer

Actually you can just add images, that's what I would do.

You must be logged in to vote
All reactions
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

clewis7
Aug 7, 2025
Maintainer

I would use a single image, then you can choose a cmap and set the alpha values (it might be helpful to set the cmap.vmin and cmap.vmax to be between 0 and 1 so then you can just use a binary array for setting the cmap values)

You must be logged in to vote
All reactions
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
Labels
None yet
3 participants
@willpartcl @kushalkolar @clewis7
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.