Closed CiaranOMara closed 2 years ago
Looks good to me. Bands without options are just black rectangles, correct?
I hadn't considered a no options case. But, yes, they would be black rectangles. Perhaps we could do better with some sensible defaults. What about PGFPlotsX.Options(:draw=> "none", :fill=> "grey", :opacity => 0.5 )
?
I think it is fine as is (we try to keep PGFPlotsX as a very thin wrapper), I was just curious.
I think this is ready for review. It's essentially a variant of the VLine and HLine conveniences to draw vertical and horizontal bands. I'm not sure what your preference is for order of occurrence, I've just placed code at the end of various spots.