These are chat archives for oxyplot/oxyplot

10th
Jul 2018
elliotpottsatwork
@elliotpottsatwork
Jul 10 2018 13:35
Hi folks :)
I'm wondering if it's possible to clip a particular series
I'm implementing an ecg-style realtime plot
by alternating between two series, I just need the old trace to be clipped where the new trace is
For example, here is what I have:
image.png
elliotpottsatwork
@elliotpottsatwork
Jul 10 2018 13:42
And eventually I want something like this:
image.png
so I need to clip the red series
elliotpottsatwork
@elliotpottsatwork
Jul 10 2018 14:24
I was going to override GetClippingRect
looks like that's only for non-wpf series though hmm
oh maybe vanilla clip will work
well that didn't work
why was I so optimistic
eoner
@eoner
Jul 10 2018 15:25
is it not possible to process your data before plotting it?
elliotpottsatwork
@elliotpottsatwork
Jul 10 2018 15:50
yes it is
but, I don't see how that would help?
ahh actually
I could use a single list and just overwrite it from start to finish
eoner
@eoner
Jul 10 2018 16:07
i was going to suggest that since you know the end of the first series, you can find that position on the second one and discard as necessary
elliotpottsatwork
@elliotpottsatwork
Jul 10 2018 16:15
well
I suppose so
but that would be pretty inefficient, removing from the front of a list every 10ms
once for each series
maybe I can use a dequeue
eoner
@eoner
Jul 10 2018 16:21
well you can just overwrite with NaNs if you want :)
elliotpottsatwork
@elliotpottsatwork
Jul 10 2018 16:21
that's better
eoner
@eoner
Jul 10 2018 16:21
i am pretty sure that it will not be noticeable at all
elliotpottsatwork
@elliotpottsatwork
Jul 10 2018 16:22
I'm not sure, I've been evaluating all sorts of controls and some of them choke :)
eoner
@eoner
Jul 10 2018 16:24
i mean the actual skipping part like yValues.Skip(endPos).ToArray()
plotting lots of data will choke oxyplot for sure :)
elliotpottsatwork
@elliotpottsatwork
Jul 10 2018 16:41
@eoner will setting the datapoint to undefined make it disappear?
elliotpottsatwork
@elliotpottsatwork
Jul 10 2018 16:46
I'm off now
thanks for your help :)
meliksahcakir
@meliksahcakir
Jul 10 2018 18:39
Hi, When resizing the window, The axis labels and the annotation texts are not resized. Is it possible to do that? If so, how can I do? Thanks.
eoner
@eoner
Jul 10 2018 19:36
@meliksahcakir As far as i know, there's no builtin way of doing it.
Measure() function in Axis.cs may give you ideas.
eoner
@eoner
Jul 10 2018 19:57
or you write a function that takes the width and height of the window and returns a font size based on that :)