funkyfranky / FunkMan

Discord bot interface for DCS/MOOSE
GNU General Public License v3.0
16 stars 5 forks source link

Adding custom logos to funkplot #10

Closed tacesa closed 5 months ago

tacesa commented 5 months ago

Hi there! Thank you for sharing your work!

I had a look at the code in funkplot.py because I thought about adding a custom watermark style logo to the grade sheets. Since I don't really have experience in Python coding I probably did everything wrong:

From that attempt I get: 2024-05-19 22:17:05.718 ERROR 'FunkPlot' object has no attribute 'imageCustomLogo'

Appreciate every advice :-)

Cheers

Yoshi

tacesa commented 5 months ago

Found a solution: ax.figure.figimage(self.imageCustomLogo, 20, 20, alpha=0.5, zorder=18, clip_on=True)

imshow could work as well but will keep the logo position related to/inside the grid (from my limited understanding). Of course self.imageCustomLogo has to be set first hand, in my opening post a also had a typo.

Now things work as intended, hope this might be helpful for someone.

Cheers Yoshi