I had a lot of problems with lines being visible, and ended up using different styles in different places. I found a style that seems to work everywhere and put the code in book_plots.py.