Open andreosokil opened 1 year ago
I got the same error
Here is how the code works for me (matplotlib 3.7.4, python 3.8):
import matplotlib
from cycler import cycler
matplotlib.rcParams.update(
{
"lines.linewidth": 2.0,
"axes.edgecolor": "#bcbcbc",
"patch.linewidth": 0.5,
"legend.fancybox": True,
"axes.prop_cycle": cycler('color',["#348ABD","#A60628","#7A68A6","#467821","#CF4457","#188487","#E24A33"]),
"axes.facecolor": "#eeeeee",
"axes.labelsize": "large",
"axes.grid": True,
"patch.edgecolor": "#eeeeee",
"axes.titlesize": "x-large",
"svg.fonttype": "path",
# "examples.directory": ""
})
How to solve this issue so the book can be used interactively in Jupyter? Adding "import cycler" changes nothing, even though I have cycler 0.11.0. Changing to "colors = ["#348ABD", "#A60628", "#7A68A6", "#467821"]" does not work as well (InvalidSyntax)