From 255953a658aeb257d7c3d4d844e452a76930f4ca Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sat, 27 Jan 2024 22:53:40 +0100 Subject: [PATCH] ChartWindow: Set limits to 120 Oe and 1.5 euro --- Elwig/Helpers/Billing/GraphEntry.cs | 2 +- Elwig/Windows/ChartWindow.xaml.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Elwig/Helpers/Billing/GraphEntry.cs b/Elwig/Helpers/Billing/GraphEntry.cs index 1b0bd74..59734b5 100644 --- a/Elwig/Helpers/Billing/GraphEntry.cs +++ b/Elwig/Helpers/Billing/GraphEntry.cs @@ -7,7 +7,7 @@ namespace Elwig.Helpers.Billing { public const int MinX = 50; public const int MinXGeb = 73; - public const int MaxX = 140; + public const int MaxX = 120; public int Id { get; set; } public BillingData.CurveMode Mode { get; set; } diff --git a/Elwig/Windows/ChartWindow.xaml.cs b/Elwig/Windows/ChartWindow.xaml.cs index 0a4a0f5..c8521e3 100644 --- a/Elwig/Windows/ChartWindow.xaml.cs +++ b/Elwig/Windows/ChartWindow.xaml.cs @@ -223,7 +223,7 @@ namespace Elwig.Windows { //OechslePricePlot.Plot.XAxis.ManualTickSpacing(1); //OechslePricePlot.Plot.YAxis.ManualTickSpacing(0.1); - OechslePricePlot.Plot.Axes.SetLimits(Math.Min(GraphEntry.MinX, GraphEntry.MinXGeb) - 1, GraphEntry.MaxX + 1, -0.1, 2); + OechslePricePlot.Plot.Axes.SetLimits(Math.Min(GraphEntry.MinX, GraphEntry.MinXGeb) - 1, GraphEntry.MaxX + 1, -0.1, 1.5); //OechslePricePlot.Plot.Layout(padding: 0); //OechslePricePlot.Plot.XAxis2.Layout(padding: 0); @@ -310,7 +310,7 @@ namespace Elwig.Windows { OechslePricePlot.Plot.Axes.Rules.Clear(); OechslePricePlot.Plot.Axes.Rules.Add(BoundaryRule); OechslePricePlot.Plot.Axes.Rules.Add(SpanRule); - OechslePricePlot.Plot.Axes.SetLimits(GraphEntry.MinX - 1, GraphEntry.MaxX + 1, -0.1, 2); + OechslePricePlot.Plot.Axes.SetLimits(GraphEntry.MinX - 1, GraphEntry.MaxX + 1, -0.1, 1.5); } private void UnlockZoom() {