ScottPlot / ScottPlot

Interactive plotting library for .NET
https://ScottPlot.net
MIT License
5.32k stars 864 forks source link

Link axes in wpf app #4094

Closed PPSSoftwareDev closed 3 months ago

PPSSoftwareDev commented 3 months ago

Hello, I´m using ScottPlott to visualize different data sets. Now I´m stuck trying to link the x axes of two different plots. I found different solutions for WinForms applications but they don´t seem to work with wpf? Many of the methods are not available with wpf or am I missing something out here? What I need in general is to have the upper plots x axis linked to the dateTime x axis of the lower plot so that when I drag either one of the plots the other one is following. Screenshot 2024-07-23 095755

Thank you in advance

PPSSoftwareDev commented 3 months ago

It looks like this is my own fault. If I build a new wpf app from scratch I have access to the link method that can be used for my purpose. In my main app it is not possible. Looks like I have messed it up somewhere and need to find out first whats the issue.