Skip to content

How to pan to a specific date without changing the x-axis zoom level in finplot #568

Description

@ericyan71

I'm using finplot to display candlestick charts. I would like to programmatically navigate to a specific trading day (e.g., 2025-01-15) while keeping the current x-axis zoom level unchanged.

In other words, I want to shift the visible range so that the target date becomes visible, but the number of visible bars (or the time span shown) remains exactly the same as before.

Is there a built-in method or a recommended way to achieve this in finplot? Currently, I can set the x-axis limits manually, but that changes the zoom level. I just want to pan to a specific date.

Any help would be appreciated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions