Why is matplotlib.PatchCollection messing with color of the patches?

前端 未结 1 479
失恋的感觉
失恋的感觉 2020-11-30 14:56

I make a number of patches like so -

node.shape = RegularPolygon((node.posX, node.posY),
                            6,
                radius = node.radius         


        
相关标签:
1条回答
  • 2020-11-30 15:29
    self.p = PatchCollection(self.patches, match_original=True) 
    

    By default patch collection over-rides the given color (doc) for the purposes of being able to apply a color map, cycle colors, etc. This is a collection level feature (and what powers the code behind scatter plot).

    0 讨论(0)
提交回复
热议问题