Local plotting doesn't work
Didn't have time to try the new plotting code until now...and plotting local experiments doesn't work.
I try to plot an experiment (beat exp plot test/tutorial/eigenface/1/atnt
) and I get this:
retrieving `plotters/plotterparameters/plot/isoroc/1'...
findfont: Found a missing font file. Rebuilding cache.
font search path ['/home/jae/miniconda3/envs/beat/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf', '/home/jae/miniconda3/envs/beat/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/afm', '/home/jae/miniconda3/envs/beat/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts']
Could not open font file /usr/share/fonts/noto/NotoColorEmoji.ttf
generated new fontManager
Traceback (most recent call last):
File "/home/jae/miniconda3/envs/beat/bin/beat", line 11, in <module>
sys.exit(main())
File "/home/jae/miniconda3/envs/beat/lib/python3.6/site-packages/beat/cmdline/scripts/beat.py", line 183, in main
return module.process(args)
File "/home/jae/miniconda3/envs/beat/lib/python3.6/site-packages/beat/cmdline/experiments.py", line 620, in process
force, 0, {}, args['--outputfolder'])
File "/home/jae/miniconda3/envs/beat/lib/python3.6/site-packages/beat/cmdline/experiments.py", line 550, in plot
data.as_dict()[the_data], output_name, None, indentation + 2, format_cache)
File "/home/jae/miniconda3/envs/beat/lib/python3.6/site-packages/beat/cmdline/plotters.py", line 257, in plot
fig = runnable.process(data_to_plot)
File "/home/jae/miniconda3/envs/beat/lib/python3.6/site-packages/beat/core/plotter.py", line 95, in process
return loader.run(self.obj, 'process', self.exc, inputs)
File "/home/jae/miniconda3/envs/beat/lib/python3.6/site-packages/beat/backend/python/loader.py", line 109, in run
return getattr(obj, method)(*args, **kwargs)
File "/home/jae/code/beat.editor/prefix/plotters/plot/isoroc/1.py", line 143, in process
return super(Plotter, self).encode_figure(fig)
File "/home/jae/code/beat.editor/prefix/libraries/plot/baselib/1.py", line 85, in encode_figure
if self.content_type.endswith('png'): canvas.print_png(sio)
File "/home/jae/miniconda3/envs/beat/lib/python3.6/site-packages/matplotlib/backends/backend_agg.py", line 528, in print_png
self.figure.dpi, metadata=metadata)
TypeError: string argument expected, got 'bytes'
Maybe the plot/baselib/1
library should be updated?