Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'savefig.frameon is not a valid rc parameter (see rcParams.keys() for a list of valid parameters)' #55

Open
mikkokotila opened this issue Apr 14, 2022 · 0 comments
Assignees

Comments

@mikkokotila
Copy link
Collaborator

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
~/miniconda3/envs/wip/lib/python3.8/site-packages/matplotlib/__init__.py in __setitem__(self, key, val)
    676             try:
--> 677                 cval = self.validate[key](val)
    678             except ValueError as ve:

KeyError: 'savefig.frameon'

The above exception was the direct cause of the following exception:

KeyError                                  Traceback (most recent call last)
<ipython-input-11-3c6b5ba0f4ae> in <module>
----> 1 a.plot_box(t.data.activation, t.data.val_f1score)

~/dev/talos/talos/commands/analyze.py in plot_box(self, x, y, hue)
    137         try:
    138             import astetik as ast
--> 139             return ast.box(self.data, x, y, hue)
    140         except RuntimeError:
    141             print('Matplotlib Runtime Error. Plots will not work.')

~/miniconda3/envs/wip/lib/python3.8/site-packages/astetik/plots/box.py in box(data, x, y, hue, palette, style, dpi, title, sub_title, x_label, y_label, legend, x_scale, y_scale, x_limit, y_limit, save)
    114 
    115     # HEADER STARTS >>>
--> 116     palette = _header(palette, style, n_colors=n, dpi=dpi)  # NOTE: y exception
    117     # <<< HEADER ENDS
    118     p, ax = plt.subplots(figsize=(params()['fig_width'],

~/miniconda3/envs/wip/lib/python3.8/site-packages/astetik/style/template.py in _header(palette, style, n_colors, dpi, fig_width, fig_height)
     48     style_dic = styles(dpi)
     49     for key in style_dic.keys():
---> 50         rcParams[key] = style_dic[key]
     51 
     52     return palette

~/miniconda3/envs/wip/lib/python3.8/site-packages/matplotlib/__init__.py in __setitem__(self, key, val)
    680             dict.__setitem__(self, key, cval)
    681         except KeyError as err:
--> 682             raise KeyError(
    683                 f"{key} is not a valid rc parameter (see rcParams.keys() for "
    684                 f"a list of valid parameters)") from err

KeyError: 'savefig.frameon is not a valid rc parameter (see rcParams.keys() for a list of valid parameters)'
@mikkokotila mikkokotila self-assigned this Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant