Skip to content

how to extend the y-axis? #598

Open
Open
@DonSeger

Description

@DonSeger

Perhaps the best way to explain this problem is by the picture below. As you can see, there are three blue lines drawn, but the top line is out of plot. How can I extend the y-axis on the graph so that the top line is fully visible?

mpf-problem margins

This code below created the plot:

fig, axlist = mpf.plot(data[start_date:end_date], figratio=(20,12),
    type='candle',
    alines=seq_of_seq_of_points,
    volume=True,
    tight_layout=True,
    style='yahoo',
    addplot=apd,
    returnfig=True)

fig.suptitle("SPY", y=1.05, fontsize=30, x=0.59)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions