FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix samples · CodingConnected/oxyplot@ad4a35b · GitHub

Repository navigation

Commit ad4a35b

Browse files
committed
fix samples
1 parent 683fdd3 commit ad4a35b

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

‎Source/Examples/ExampleLibrary/Axes/CustomAxisExamples.cs‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ public static class CustomAxisExamples
1616
{
1717
public class ArrowAxis : LinearAxis
1818
{
19-
public override void Render(IRenderContext rc, PlotModel model, AxisLayer axisLayer, int pass)
19+
public override void Render(IRenderContext rc, int pass)
2020
{
21-
base.Render(rc, model, axisLayer, pass);
21+
base.Render(rc, pass);
2222
var points = new List<ScreenPoint>();
2323
if (this.IsHorizontal())
2424
{
2525
var xmax = this.Transform(this.ActualMaximum);
26-
points.Add(new ScreenPoint(xmax + 4, model.PlotArea.Bottom - 4));
27-
points.Add(new ScreenPoint(xmax + 18, model.PlotArea.Bottom));
28-
points.Add(new ScreenPoint(xmax + 4, model.PlotArea.Bottom + 4));
26+
points.Add(new ScreenPoint(xmax + 4, this.PlotModel.PlotArea.Bottom - 4));
27+
points.Add(new ScreenPoint(xmax + 18, this.PlotModel.PlotArea.Bottom));
28+
points.Add(new ScreenPoint(xmax + 4, this.PlotModel.PlotArea.Bottom + 4));
2929
//// etc.
3030
}
3131
else
3232
{
3333
var ymax = this.Transform(this.ActualMaximum);
34-
points.Add(new ScreenPoint(model.PlotArea.Left - 4, ymax - 4));
35-
points.Add(new ScreenPoint(model.PlotArea.Left, ymax - 18));
36-
points.Add(new ScreenPoint(model.PlotArea.Left + 4, ymax - 4));
34+
points.Add(new ScreenPoint(this.PlotModel.PlotArea.Left - 4, ymax - 4));
35+
points.Add(new ScreenPoint(this.PlotModel.PlotArea.Left, ymax - 18));
36+
points.Add(new ScreenPoint(this.PlotModel.PlotArea.Left + 4, ymax - 4));
3737
//// etc.
3838
}
3939

‎Source/Examples/ExampleLibrary/Examples/RenderingCapabilities.cs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,9 @@ public DelegateAnnotation(Action<IRenderContext> rendering)
368368
/// Renders the annotation on the specified context.
369369
/// </summary>
370370
/// <param name="rc">The render context.</param>
371-
/// <param name="model">The model.</param>
372-
public override void Render(IRenderContext rc, PlotModel model)
371+
public override void Render(IRenderContext rc)
373372
{
374-
base.Render(rc, model);
373+
base.Render(rc);
375374
this.Rendering(rc);
376375
}
377376
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL