<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 11/22/2017 04:40 PM, William Ray
      Wing wrote:<br>
    </div>
    <blockquote cite="mid:03E370AB-5145-479D-B971-38A71B81AFEF@mac.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <br>
      <br>
      <div id="AppleMailSignature">Sent from my iPhone</div>
      <div><br>
        On Nov 22, 2017, at 4:01 PM, Stephen P. Molnar <<a
          moz-do-not-send="true" href="mailto:s.molnar@sbcglobal.net">s.molnar@sbcglobal.net</a>>
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>
          <meta http-equiv="content-type" content="text/html;
            charset=UTF-8">
          <big><font size="-1"><big>I am running up to date Matplotlib
                in Python3.5 on my Debian Stretch Platform.</big></font></big><br>
          <br>
          I have not made any changes of which I am aware, but I have
          started getting errors when running a Python script that I
          have written to plot data obtained from a FORTRAN program. <br>
          <br>
        </div>
      </blockquote>
      <div><br>
      </div>
      <div>This like a first cousin to the problem you recently posted
        on the Tutor list.  Do you get the same result if you invoke the
        script directly from the command line, i.e. </div>
      <div><br>
      </div>
      <div>$python <span style="background-color: rgba(255, 255, 255,
          0);">MolT_5IMT_w_3_2_plot.py<return></span></div>
      <div><br>
      </div>
      And not in iPython or Whatever?
      <div><br>
      </div>
      <div>Bill<br>
        <blockquote type="cite">
          <div> Enter Molecule ID: A<br>
            Traceback (most recent call last):<br>
              File "MolT_5IMT_w_3_2_plot.py", line 83, in <module><br>
                fig.savefig(name_plt,bbox_inches='tight')<br>
              File
            "/usr/local/lib/python3.5/dist-packages/matplotlib/figure.py",
            line 1814, in savefig<br>
                self.canvas.print_figure(fname, **kwargs)<br>
              File
            "/usr/local/lib/python3.5/dist-packages/matplotlib/backend_bases.py",
            line 2180, in print_figure<br>
                self.figure.dpi = dpi<br>
              File
            "/usr/local/lib/python3.5/dist-packages/matplotlib/figure.py",
            line 436, in _set_dpi<br>
                self.set_size_inches(w, h, forward=forward)<br>
              File
            "/usr/local/lib/python3.5/dist-packages/matplotlib/figure.py",
            line 745, in set_size_inches<br>
                manager.resize(int(canvasw), int(canvash))<br>
              File
            "/usr/local/lib/python3.5/dist-packages/matplotlib/backends/backend_tkagg.py",

            line 540, in resize<br>
                self.canvas._tkcanvas.master.geometry("%dx%d" % (width,
            height))<br>
              File "/usr/lib/python3.5/tkinter/__init__.py", line 1698,
            in wm_geometry<br>
                return self.tk.call('wm', 'geometry', self._w,
            newGeometry)<br>
            _tkinter.TclError: can't invoke "wm" command: application
            has been destroyed<br>
            <br>
            <br>
            ------------------<br>
            (program exited with code: 1)<br>
            Press return to continue<br>
            <br>
            I have attached the Python script and an input file to this
            message.<br>
            <br>
            I would appreciate some assistance in solving this problem<br>
            <br>
            Thanks in advance.<br>
            <pre class="moz-signature" cols="72">-- 
Stephen P. Molnar, Ph.D.                Life is a fuzzy set
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.molecular-modeling.net">www.molecular-modeling.net</a>            Stochastic and multivariate
(614)312-7528 (c)
Skype: smolnar1
</pre>
          </div>
        </blockquote>
        <blockquote type="cite">
          <div><MultiplePlots_3.py></div>
        </blockquote>
        <blockquote type="cite">
          <div><A_P></div>
        </blockquote>
        <blockquote type="cite">
          <div><span>_______________________________________________</span><br>
            <span>Matplotlib-users mailing list</span><br>
            <span><a moz-do-not-send="true"
                href="mailto:Matplotlib-users@python.org">Matplotlib-users@python.org</a></span><br>
            <span><a moz-do-not-send="true"
                href="https://mail.python.org/mailman/listinfo/matplotlib-users">https://mail.python.org/mailman/listinfo/matplotlib-users</a></span><br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    I get exactly the same messages as soon as I close the plot.<br>
    <pre class="moz-signature" cols="72">-- 
Stephen P. Molnar, Ph.D.                Life is a fuzzy set
<a class="moz-txt-link-abbreviated" href="http://www.molecular-modeling.net">www.molecular-modeling.net</a>             Stochastic and multivariate
(614)312-7528 (c)
Skype: smolnar1
</pre>
  </body>
</html>