title: _tkinter.TclError: wrong # args: should be "wm attributes window"
body: <p>i'm using python 3.6 on linux, and i was using matplotlib version 1.5.1, 
  so i updated it to latest version 2.2.2</p>
  
  <p>Then there was a problem with a simple code.</p>
  
  <pre><code>import matplotlib.pyplot as plt
  plt.plot([1,2,3,4])
  plt.show()
  </code></pre>
  
  <p>when i run this code, error occurred with this message. (the picture popped in a second then it disappeared quickly)</p>
  
  <blockquote>
    <p>self.canvas.manager.window.attributes('-topmost', 1)   File
    "/home/taegyu/tkinter/<strong>init</strong>.py", line 1782, in wm_attributes
        return self.tk.call(args)
    _tkinter.TclError: wrong # args: should be "wm attributes window"</p>
  </blockquote>
  
  <p>After reinstalling with matplotlib version 1.5, I do not see any problem. I think it's probably a problem with tkinter and matplotlib crashes. But i don't know exactly problem and what should i do for this.
  Can anyone solve this problem?</p>