Skip to content

Commit

Permalink
Fix line plot X limit maximum
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange-42 committed May 23, 2024
1 parent 4700f2a commit 958292f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion plot/lines.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 958292f

Please sign in to comment.