-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Watermark on Plots #164
Comments
Any workaround or trick for that? |
@DanielGoldfarb I can work on it in my free times. Guide me to do it. |
@AminSaqi
I've included the 3rd reference above because it is Axes based instead of Figure based, and also has an An easy workaround (instead of implementing this inside mplfinance) would be to set
The list of axes returned correspond, in order, to the panels, returning two axes (primary followed by secondary) for each panel. Thus ax[0] is the primary axes for panel 0, ax[1] is the secondary axes for panel 0, ax[2] is the primary for panel 1, etc. After getting the Figure and Axes list returned from If you want to implement this, I have some ideas, but I have to run right now ... will be back in a few hours and jot down my ideas (that include making these more general) and gladly provide guidance. In the meantime, you can play with the above workaround, and gain some experience and familiarity with the matplotlib methods needed to implement this. Thank you very much for getting involved. Much appreciated. All the best. --Daniel |
edit: I didn't realize that the request for for a png overlay. here's a way to do it with simple text though. I thought I would just drop an example since no one had and I imagine that this is a somewhat common want from users. Just a standard plot with your custom style and returnfig = True
Now we create a textbox with no edges or facecolor and add whatever watermarking text you want.
|
Is your feature request related to a problem? Please describe.
Ability to add Watermarks to charts with alpha setting.
Describe the solution you'd like
Function or argument to add a logo/watermark to charts that takes a ,png image file.
Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: