From 958292ff764d24d0cccff8f3e8bd754f305452a1 Mon Sep 17 00:00:00 2001 From: mlange-42 Date: Thu, 23 May 2024 12:23:10 +0200 Subject: [PATCH] Fix line plot X limit maximum --- CHANGELOG.md | 2 +- plot/lines.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f9b648b..bab26ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ### Features -* Adds optional property `XLim` to `Lines` plot (#54) +* Adds optional property `XLim` to `Lines` plot (#54, #55) ## [[v0.9.0]](https://github.com/mlange-42/arche-pixel/compare/v0.8.1...v0.9.0) diff --git a/plot/lines.go b/plot/lines.go index b1998e1..bc5729e 100644 --- a/plot/lines.go +++ b/plot/lines.go @@ -104,7 +104,7 @@ func (l *Lines) Draw(w *ecs.World, win *opengl.Window) { if l.XLim[0] != 0 || l.XLim[1] != 0 { p.X.Min = l.XLim[0] - p.Y.Max = l.XLim[1] + p.X.Max = l.XLim[1] } p.Legend = plot.NewLegend()