Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

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

Replies: 5 comments

Comment options

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
0 replies
Comment options

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
0 replies
Comment options

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
0 replies
Comment options

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

You must be logged in to vote
0 replies
Comment options

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
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.