Closed chaseWilliams closed 7 years ago
@chaseWilliams thanks for this fix! Will merge, but to clarify, what do you mean by 'multi-window bug'?
i'm good for us to merge
@andrewheusser sorry for being so vague. Specifically, what I noticed is that if I call hyp.plot
with show=False
from, say, python's command line interpreter, then while no window actually appears, on my dock (OS X) what appears to be a python "app" starts up. Then, if I call hyp.plot
again without saying show=False
, then as intended, a window pops up with the graph. However, the previous window with the previous graph also pops up. My fix stopped this from happening in Jupyter Notebook, but for some reason it still doesn't quite work in other environments.
@chaseWilliams no worries, thanks for clarifying! i'll try to get to the bottom of it
addresses #148 - while it doesn't fix the multi-window bug, it does prevent the graph from rendering in Jupyter notebook with
show=False
.All I did was change
plot
anddraw
to useplt.close
andplt.ioff
respectively