simetenn / uncertainpy

Uncertainpy: a Python toolbox for uncertainty quantification and sensitivity analysis, tailored towards computational neuroscience.
http://uncertainpy.readthedocs.io
GNU General Public License v3.0
220 stars 50 forks source link

Fix framealpha of prettyplot to be a value between 0-1 #39

Closed Mikkolehtimaki closed 4 years ago

Mikkolehtimaki commented 4 years ago

Saving plots using

plotting = uncertainpy.plotting.PlotUncertainty(filename=..., figureformat='.svg)
plotting.plot_all()

crashed with ValueError: RGBA values should be within 0-1 range using Matplotlib version 3.1.3. This was because of framealpha=2 in prettyplot.py. This PR fixes the issue by setting alpha to one.

simetenn commented 4 years ago

Looks good, thanks :)