These are chat archives for oxyplot/oxyplot

5th
Apr 2018
meliksahcakir
@meliksahcakir
Apr 05 2018 17:36
Hi guys, I have multiple linearSeries in the plot. For now, when I do pan/zoom it applies all the series. However what I want is that :
if the user selects a signal with left click for example
the pan and zoom only work for the selected signal and x-y axes are updated according to that signal.
else
the default pan/zoom behaviour will be applied to all series, and the axes are updated according to latest selected series.
eoner
@eoner
Apr 05 2018 20:30
Hi meliksah, do you want the other series to stay there as they are part of the background?
meliksahcakir
@meliksahcakir
Apr 05 2018 21:20
yeah. I think I found a way. I will tell what I found but, if you have an idea, I would like to hear that. Here is the my solution: I added default y axis and other yaxes to PlotModel for every series with visibility set to false. At the beginning, I didnt select any series, so I assign all the YAxis keys to default yAxis key. And then whenever I choose a signal(getSeriesFromPoint function) I set all the YAxis keys of series to specific one. When I deselect the current one, I assign again all of them to the default one. The reason why I did like that is that the Pan/Zoom only affect the first vertical axes and horizontal axis.
eoner
@eoner
Apr 05 2018 21:41
well, that's better than what i had in mind :)
meliksahcakir
@meliksahcakir
Apr 05 2018 21:44
Here is another question: How can I do autoscale and auto zoom? When I click a button, I want to see lets say 5 period of signal with a pretty looking y values