andrewRowlinson / mplsoccer

Football pitch plotting library for matplotlib
MIT License
405 stars 82 forks source link

Pitch alpha transparency #29

Closed sholaybhature closed 3 years ago

sholaybhature commented 3 years ago

What does this implement/fix? Explain your changes.

Added an option for pitch_alpha which changes the alpha values of all the lines/shapes drawn except the goal, centre and penalty spots, not sure what else changes are needed.

Does this close any currently open issues?

Yes, https://github.com/andrewRowlinson/mplsoccer/issues/28

What it looks like with pitch_alpha set to 0.5:

Figure_1

andrewRowlinson commented 3 years ago

Hi @reedkihaddi. Thanks for this contribution, it looks great. Looking at this again, I think it would be better to name it line_alpha. Would you be able to edit the name/code, I can then add it to the next version?

sholaybhature commented 3 years ago

Hi @reedkihaddi. Thanks for this contribution, it looks great. Looking at this again, I think it would be better to name it line_alpha. Would you be able to edit the name/code, I can then add it to the next version?

Sure, no issues. Happy to help :)