Skip to content
Advertisement

How to remove boundaries in matplotlib rectangles?

The following snippet draws non-overlapping rectangles and works as expected:

JavaScript

enter image description here

But when I wish to make the rectangles transparent, they tend to have a border around them, as shown below:

JavaScript

enter image description here

Initially, I thought maybe that was due to some overlaps. So, I reduced the size of the rectangles, but I still got it. For example, if I use

JavaScript

I get the following:

enter image description here

A zoomed-in version of the above image is:

enter image description here

As you can see, I still get those boundaries with lower transparency (than alpha=0.2). How can I get rid of those boundaries?

Advertisement

Answer

This will help

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement