Skip to content

Feature Request: Adjust a panel's x_lim and title padding #212

@twopirllc

Description

@twopirllc

Hello @DanielGoldfarb,

Thanks for reviving mplfinance and making it better! I like the new panel additions. They are awesome!

Is your feature request related to a problem? Please describe.
I was able to target mpf.make_addplot(ylim: tuple)) to adjust a panel's top and bottom ylim's so the panel's are not too close. Is it possible to at least set xlim=(mpf.minx, 0.9 * mpf.max)?

The bottom padding for title seems large. Possible bug? 🤷 Where self.title = "SPY (D)".

Here is the heart of the mpf plot code for the chart below:

mpf_style = mpf.make_mpf_style(base_mpf_style=mpf_styles[-1], rc={'figure.facecolor': '#EDEDED'})
width_config={'candle_linewidth':0.8, 'candle_width':0.525, 'volume_width': 0.525}

mpf.plot(
    self.df.tail(self.recent), type="candle", title=self.title,
    style=mpf_style, datetime_format="%-m - %-d - %Y",
    volume=True, addplot=priceta + volta + rsita,
    figsize=(16, 8), panel_ratios=(1, 0.2, .4), xrotation=32,
    update_width_config=width_config
)

Screen Shot 2020-07-07 at 11 28 00 PM

Describe the solution you'd like
Ideally, I would like the ability to adjust at least the left padding of each panel. Or a tight_layout with an adjustable right padding for each panel.

Thanks for your time,
KJ

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestreleasedcode merged into repo AND released to Pypi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions