We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec2e9a6 commit be01c39Copy full SHA for be01c39
app/src/processing/app/SerialPlotter.java
@@ -87,8 +87,10 @@ private Ticks computeBounds() {
87
minY = Double.POSITIVE_INFINITY;
88
maxY = Double.NEGATIVE_INFINITY;
89
for(Graph g : graphs) {
90
- minY = Math.min(g.buffer.min(), minY);
91
- maxY = Math.max(g.buffer.max(), maxY);
+ if (!g.buffer.isEmpty()) {
+ minY = Math.min(g.buffer.min(), minY);
92
+ maxY = Math.max(g.buffer.max(), maxY);
93
+ }
94
}
95
96
final double MIN_DELTA = 10.0;
0 commit comments