daleroberts / itermplot

An awesome iTerm2 backend for Matplotlib, so you can plot directly in your terminal.
1.49k stars 51 forks source link

Warning messages re. deprecation of FigureCanvasAgg.print_png kwargs #43

Closed absurd closed 3 years ago

absurd commented 3 years ago

A number of keyword args are (apparently redundantly) passed to FigureCanvasAgg.print_png resulting in warning message output above the png render:

/opt/homebrew/Caskroom/miniforge/base/envs/py392/lib/python3.9/site-packages/itermplot/__init__.py:243: MatplotlibDeprecationWarning: savefig() got unexpected keyword argument "facecolor" which is no longer supported as of 3.3 and will become an error two minor releases later
  FigureCanvasAgg.print_png(self, filename, **kwargs)
/opt/homebrew/Caskroom/miniforge/base/envs/py392/lib/python3.9/site-packages/itermplot/__init__.py:243: MatplotlibDeprecationWarning: savefig() got unexpected keyword argument "edgecolor" which is no longer supported as of 3.3 and will become an error two minor releases later
  FigureCanvasAgg.print_png(self, filename, **kwargs)
/opt/homebrew/Caskroom/miniforge/base/envs/py392/lib/python3.9/site-packages/itermplot/__init__.py:243: MatplotlibDeprecationWarning: savefig() got unexpected keyword argument "orientation" which is no longer supported as of 3.3 and will become an error two minor releases later
  FigureCanvasAgg.print_png(self, filename, **kwargs)
/opt/homebrew/Caskroom/miniforge/base/envs/py392/lib/python3.9/site-packages/itermplot/__init__.py:243: MatplotlibDeprecationWarning: savefig() got unexpected keyword argument "bbox_inches_restore" which is no longer supported as of 3.3 and will become an error two minor releases later
  FigureCanvasAgg.print_png(self, filename, **kwargs)
/opt/homebrew/Caskroom/miniforge/base/envs/py392/lib/python3.9/site-packages/itermplot/__init__.py:243: MatplotlibDeprecationWarning: savefig() got unexpected keyword argument "transparent" which is no longer supported as of 3.3 and will become an error two minor releases later
  FigureCanvasAgg.print_png(self, filename, **kwargs)

Screen Shot 2021-04-27 at 23 07 40