One possibility is to use filled rectangles instead of lines with strokes.

[![enter image description here][2]][2]


  [1]: https://i.sstatic.net/x8FmO.png
  [2]: https://i.sstatic.net/BtVD9.png