These are chat archives for oxyplot/oxyplot

25th
Jul 2018
eoner
@eoner
Jul 25 2018 07:54
@meliksahcakir i think you need to slow down a bit (don't update every 20ms)
oxyplot rendering (WPF) is not blocking on UI thread and the last time i checked, there was no event to signal that the rendering is completed.
meliksahcakir
@meliksahcakir
Jul 25 2018 08:00
I must say, It needs to be fast :( Is it possible to track the points only on the mouse down event?
I am using this for now:
plotController.BindMouseDown(OxyMouseButton.Right, OxyPlot.PlotCommands.PointsOnlyTrack);
When I click right, I start seeing tracking, however it continues to show me the new values while I was moving the mouse(the right click is still in down position). I only want to see the new values when I click right. How can I do that?
meliksahcakir
@meliksahcakir
Jul 25 2018 08:47
According to link, I did "plotController.BindMouseDown(OxyMouseButton.Right, OxyPlot.PlotCommands.PointsOnlyTrack);". However it doesn't give what I want :(
bret4811
@bret4811
Jul 25 2018 08:50
Hi I am having a problem with InvalidatePlot. My application is based on HelloWorld\WpfApplication2. I have added a function to add a few items to the end of the Point list, a button to call the function and a button to call InvalidatePlot. The data is being added but invalidate fails - I expect to see the graph redraw to display the new data. I am new to wpf and oxyplot.
eoner
@eoner
Jul 25 2018 09:04
@meliksahcakir i think i didn't understand what you are trying to achieve.
@bret4811 Have you tried it with InvalidatePlot(true) ?
bret4811
@bret4811
Jul 25 2018 09:05
yes and also invalidateflag++
I have also added a second set of points ofset by a few counts just to see that things are working correctly. That displays fine.
meliksahcakir
@meliksahcakir
Jul 25 2018 09:08
Sorry. I am trying to say:
I only want to show the tracker hit result when I click right. The function that I use show the result when I click right, however it continues to show the new results when I move the mouse together with right click is down. More specifically, I need to show the tracker only in the mouse right click down transition.
eoner
@eoner
Jul 25 2018 09:09
and keep it on screen?
eoner
@eoner
Jul 25 2018 09:16
in that case you need an annotation
@bret4811 i think you need to raise PropertyChanged event for your Points property
or instead of using a List, use ObservableCollection
bret4811
@bret4811
Jul 25 2018 09:19
ok thanks, I'll give it try.
meliksahcakir
@meliksahcakir
Jul 25 2018 09:49
@eoner It might be
eoner
@eoner
Jul 25 2018 09:55
why are you moving the mouse while holding the right button down unless you want the tracker to show what's under? :)
meliksahcakir
@meliksahcakir
Jul 25 2018 10:24
Actually, I won't do that :) The user may do this, I want to handle the exception :)
eoner
@eoner
Jul 25 2018 10:30
Then you might try to subscribe to the MouseDown and MouseMove events of PlotModel
call BindMouseDown on MouseDown
and clear on MouseMove
meliksahcakir
@meliksahcakir
Jul 25 2018 10:31
well, sounds good. Thanks a lot
eoner
@eoner
Jul 25 2018 10:32
and MouseUp of course
meliksahcakir
@meliksahcakir
Jul 25 2018 10:32
yep
meliksahcakir
@meliksahcakir
Jul 25 2018 13:10
I asked lots of question today, here is another one :) I need to change the "Completed" method of the ZoomRectangleManipulator. How can I achieve this?
eoner
@eoner
Jul 25 2018 14:36
you can just derive from ZoomRectangleManipulator and override the Completed method