Skip to content

Showcase of interaction of PyQt GUI and Matplotlib Scatter Plot (with LassoSelector)

License

Notifications You must be signed in to change notification settings

yjg30737/pyqt-matplotlib-scatter-plots-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyqt-matplotlib-scatter-plots-example

Showcase of interaction of PyQt GUI and Matplotlib Scatter Plot (with LassoSelector)

The module helps optimize image size when generating image models.

You can use it by selecting and removing overly large and excessively small images from the graph.

I made this by reading this article.

Read the article to know how this works. After all this package is just an example of utilizing that article's example :)

How to Install

  1. git clone ~
  2. pip install -r requirements.txt
  3. move your folders which contains the image files to src, you can see each iamges in the graph
  • if you don't have anything, default images directories are prepared in src folder (Alzheimer's Disease MRI, Parkinson's Disease MRI)

Preview

image

Images are distributed according to their sizes.

How to Use

2023-08-25.11-45-54.mp4

Ignore the dark part of the video :)

Select the dots (which are corresponding with image file inside the directory) with lasso, and delete them at the widget on the right side of the window.

If you press the "delete" button, it actually deletes the images. So you have to back them up before you use this.

The program will restart to reload the scatter plot after deletion.

You can view an underlying image when you click on a specific dot. This could help you make a more careful decision about whether to remove it or not.

Releases

No releases published

Packages

No packages published

Languages