These are chat archives for oxyplot/oxyplot

17th
Apr 2015
Øystein Bjørke
@objorke
Apr 17 2015 15:54
I have converted the documentation from markdown+jekyll to restructured text+sphinx: http://docs.oxyplot.org
The pages are built by http://readthedocs.org
And they are still very much work in progress. Please contribute :-)
rrperkin
@rrperkin
Apr 17 2015 15:55
Hi !
Is there a property to disable panning and zooming in a PlotView?
Øystein Bjørke
@objorke
Apr 17 2015 15:56
@rrperkin I think you can set a property on each axis controlling panning and zooming
rrperkin
@rrperkin
Apr 17 2015 15:57
That sounds like I should look on the Series rather than the PlotView...
erm.. PlotModel, I guess
Øystein Bjørke
@objorke
Apr 17 2015 15:58
right, on the model side. But I think it is a property of the axes
rrperkin
@rrperkin
Apr 17 2015 15:58
IsPanEnabled is there... I'll try that.
I have other questions if you have time
I thought I saw a demo that showcased how to manipulate a Series with the mouse or touch.... move a point around and change the data, that way. But I can't find it now
Is that possible with this library?
rrperkin
@rrperkin
Apr 17 2015 16:03
wonderful!
Øystein Bjørke
@objorke
Apr 17 2015 16:15
this is cool: https://media.readthedocs.org/pdf/oxyplot/latest/oxyplot.pdf but I see there is still a lot of work to do before it looks good...
jweaver66
@jweaver66
Apr 17 2015 16:15
@tjbobo thanks for the suggestion. Unfortunately I tried that previously and it had no effect.
rrperkin
@rrperkin
Apr 17 2015 16:17
@objorke yes it really is cool!
jweaver66
@jweaver66
Apr 17 2015 16:21
Also, I'm still looking for a way to create and set a tracker position on a line series from an outside source...in other words, I have a visual ROI on an image. When a user hovers over the ROI I get sent X/Y cords and I need to use them to create a tracker to display on my plot. Any help would be most appreciated!
rcomsa
@rcomsa
Apr 17 2015 16:22
Anyone able to get trackers working on xamarin.android/xamarin.ios? The package is perfect except I need some kind of hook that to tell me the closest point to a users tap. I don't even need to actually draw the tracker, I just need the callback with the data point
rrperkin
@rrperkin
Apr 17 2015 16:51
What does ROI stand for?
Johan Larsson
@JohanLarsson
Apr 17 2015 17:20
return on invest, maybe something else in this context :)
jweaver66
@jweaver66
Apr 17 2015 18:03
@rrperkin @JohanLarsson Region Of Interest
Johan Larsson
@JohanLarsson
Apr 17 2015 18:25
:)
jweaver66
@jweaver66
Apr 17 2015 18:59
For reference, here is what I'm doing now. It works okay, but one problem is that the Tracker is not really attached to a Series, it is being displayed by X/Y cords. That also causes another issue as the Plot has margins and since the entire Plot is rendered in a Canvas, I have to compensate manually.
 TrackerHitResult trackerHitResult = new TrackerHitResult();
 trackerHitResult.PlotModel = thisControl.EdgeGraph.Model;

 trackerHitResult.Position = new ScreenPoint(((Tuple<float, float>)e.NewValue).Item1, ((Tuple<float, float>)e.NewValue).Item2);
 trackerHitResult.DataPoint = new DataPoint(((Tuple<float, float>)e.NewValue).Item1, ((Tuple<float, float>)e.NewValue).Item2);

 thisControl.EdgeGraph.ApplyTemplate();
 thisControl.EdgeGraph.ShowTracker(trackerHitResult);