Thanks to visit codestin.com
Credit goes to github.com

Skip to content

plot save and plot show #16909

Closed
Closed
@big-vl

Description

@big-vl
/usr/local/lib/python3.8/dist-packages/matplotlib/backends/backend_agg.py:214: RuntimeWarning: Glyph 13 missing from current font.
  font.set_text(s, 0.0, flags=flags)
/usr/local/lib/python3.8/dist-packages/matplotlib/backends/backend_agg.py:183: RuntimeWarning: Glyph 13 missing from current font.
  font.set_text(s, 0, flags=flags)

plt.show()

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/matplotlib/backend_bases.py", line 2785, in _wait_cursor_for_draw_cm
    self.set_cursor(cursors.WAIT)
  File "/usr/local/lib/python3.8/dist-packages/matplotlib/backends/_backend_tk.py", line 544, in set_cursor
    window.configure(cursor=cursord[cursor])
  File "/usr/lib/python3.8/tkinter/__init__.py", line 1640, in configure
    return self._configure('configure', cnf, kw)
  File "/usr/lib/python3.8/tkinter/__init__.py", line 1630, in _configure
    self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: invalid command name "."

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "sc.py", line 418, in <module>
    save_grf(path_db, grf_date, grf_bank, start_data, end_data)
  File "sc.py", line 298, in save_grf
    fig.savefig('png/'+str(name)+str(start_date)+'_'+str(end_date)+'.png')
  File "/usr/local/lib/python3.8/dist-packages/matplotlib/figure.py", line 2203, in savefig
    self.canvas.print_figure(fname, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/matplotlib/backend_bases.py", line 2098, in print_figure
    result = print_method(
  File "/usr/local/lib/python3.8/dist-packages/matplotlib/backends/backend_agg.py", line 514, in print_png
    FigureCanvasAgg.draw(self)
  File "/usr/local/lib/python3.8/dist-packages/matplotlib/backends/backend_agg.py", line 390, in draw
    with RendererAgg.lock, \
  File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.8/dist-packages/matplotlib/backend_bases.py", line 2788, in _wait_cursor_for_draw_cm
    self.set_cursor(self._lastCursor)
  File "/usr/local/lib/python3.8/dist-packages/matplotlib/backends/_backend_tk.py", line 544, in set_cursor
    window.configure(cursor=cursord[cursor])
  File "/usr/lib/python3.8/tkinter/__init__.py", line 1640, in configure
    return self._configure('configure', cnf, kw)
  File "/usr/lib/python3.8/tkinter/__init__.py", line 1630, in _configure
    self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: invalid command name "."

python v.: Python 3.8.2 (default, Feb 26 2020, 04:23:39)
matplotlib 3.2.1

dont save plot png.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions