-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Description
Problem
When we add a few subplots to a figure, the detail may not be very visible, the zooming capability wouldn't work much, because it works inside each subplot, and is not of much help when the subplots itself is small.
It would be great if we could click on any subplots, and a popup window displays the said plot, as a separate window, in full size, as if it was plotted individually.
This way, we can have all subplots neatly sit next to each other for visualizations, and when one or more subplots need better investigation, simply clicking on them would display them in a separate window each, which can then be closed (the main figure stays open with all the subplots by the way).
Currently, when I want to investigate anything, in addition to creating the normal figure with all the plots, I use cv2.imshow
to load the images that need investigation, or use separate individual plots in combination to the aggregated one which is a lot of work honestly.
I also think this can be done using events, but I guess its not doable if one uses the old/functional form i.e. sth like :
plt.subplot(5,6,1), plt.imshow(img_gentleman[:,:,::-1]), plt.title('original')
plt.subplot(5,6,2), plt.imshow(hist_img_gentleman[...,::-1]),plt.title('global hist eq')
...
aside from that, just having such ability goes a long way IMHO.
As an example see the following figure which consists of several subplots:
They show the overall differences between different methods, while some samples are easy to diffentiate, others need to be viewed in larger form to see the overall quality and check for stuff such as noises, etc.
Proposed solution
I haven't looked at the code, so take this with a pinch of salt! but creating a new popup window, shouldn't be an issue, provided we have access to the underlying data