python - Pyplot.imshow() and pyplot.show() displaying intermittently -


i have been working pyplot.imshow() week.

everytime debug , hit pyplot.imshow(), image displays. now, of sudden, no image displays until hit pyplot.show().

what going on here? has changed?

here setup:

i using pycharm.

i loaded matplotlib, sklearn, numpy, pandas.

i created couple of classes in separate file, , running classes produce images in file in question.

during production of images, had "imshow" (my experience level python few months). after implementing "imshow", images appeared when passed "imshow" line in debugging session. way behaved.


i used repeatedly days. then, all of sudden (and may have closed , reopened pycharm, can't remember), "imshow()" function started intermittently displaying image (sometimes did, didn't).

so started adding "show()" beneath "imshow()" calls...and worked (sort of). soon, that started working intermittently. pass "show()" during debugging sessions , nothing show up.


this mysterious behavior began. changed 0 settings. no 1 computer knowledge had access pc (just parents during superbowl...).

whether "imshow()" supposed display or not, "show()" should work, right? how both of these functions stopped working expected, possible ide restart i'm reasonably sure didn't happen...(no computer restart)...and no python package installs.

(the thing installed notepadqq...but functions stopped working several hours after that)

i think may have changed way run script (e.g. ipython --pylab or --matplotlib switches standard python interpreter) or have changed version or default mode of ipython. in case, if use pyplot.ion() before calling pyplot.imshow(...), image should display automatically.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -