Skip to content

Changing margin on mplfinance plot when savefig

I have the following code which produces finance plot: But the image which it generated left a lot of space on all side, so i include the parameter tight_layout=True however now i a getting an image which looks like this: The title is inside the image. Could you advise how can i change the margin where the le…

Inherit choice class to extend it?

I have a field in my models.py that accepts choices determined in a class: The choice class is this: My doubt is how can I inherit this UserChoices class to another choice class, in order to extend it with another options. I tried the following: But it gives me a migration error: Obviously this example is sim…