79095569

Date: 2024-10-16 19:36:06
Score: 1
Natty:
Report link

For set ylim use ylim=(low_value, high_value) keyword in mpf.plot() or mpf.make_addplot()
For set yticks use next sample of code:

fig, axlist = mpf.plot(**foo_kwargs, returnfig=True)

axlist[target_panel_index].set_yticks(np.arange(low_value, high_value, step))

Note 0.
In my case I have three panels (0 - candelsticks, 1 - volumes, 2 - custom indicator), but for custom indicator I should be set target_panel_index = 4. Why? I don't understand.
Note 1.
And for help: all keywords mpf.plot() and, perhaps, mpf.make_addplot()

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: GreMal