Skip to content
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: Adding ax_hline & ax_vline to msv.LinePlot #1696

Merged
merged 1 commit into from
May 7, 2024

Conversation

Magnus167
Copy link
Member

@Magnus167 Magnus167 commented May 7, 2024

These arguments allow addition of horizontal/vertical dashed black lines at specific X (for vline) or Y (for hline) coordinates.

Example usage:

from macrosynergy.management.simulate import make_test_df
from macrosynergy.visuals import LinePlot

cids = ["USD", "EUR", "GBP", "JPY"]
xcats = ["RIR_NSA", "FXXR_NSA", "EQXR_NSA"]
df = make_test_df(cids=cids, xcats=xcats)

LinePlot(df).plot(
    title="Test Title ",
    ax_hline=[45, 55],
    ax_vline=["2015-4-01", "2015-09-01"],
)

produces:
image

@Magnus167 Magnus167 requested a review from a team as a code owner May 7, 2024 15:53
@Magnus167 Magnus167 merged commit e57bcb2 into develop May 7, 2024
14 checks passed
@Magnus167 Magnus167 deleted the feature/lineplot_ax_lines branch May 7, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants