Skip to content

Commit

Permalink
Bux fix - error plots
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgobbo committed Jan 22, 2025
1 parent 0084ce0 commit 2a07d75
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
//id 'org.openjfx.javafxplugin' version '0.0.10'
}

version = '1.21.0'
version = '1.21.1'
group = 'ch.psi'
ext.timestamp = new Date().format("yyMMddHHmm")

Expand Down
8 changes: 7 additions & 1 deletion src/main/java/ch/psi/pshell/plot/LinePlotErrorSeries.java
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,13 @@ public void setData(double[] x, double[] y, double[] error) {

public void setData(double[] x, double[] y, double[] error, double[] errorY) {
if (getPlot() != null) {
int length = Math.min(Math.min(Math.min(x.length, y.length), error.length), errorY.length);
int length = Math.min(x.length, y.length);
if (error!=null){
length = Math.min(length, error.length);
}
if (errorY!=null){
length = Math.min(length, errorY.length);
}
switch (getPlot().getStyle()) {
case ErrorX:
XIntervalSeries sx = (XIntervalSeries) getToken();
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/ch/psi/pshell/ui/App.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Application.name = pshell
Application.title = PShell Workbench
Application.version = 1.21.0
Application.version = 1.21.1
Application.vendor = psi.ch
Application.feedback = alexandre.gobbo
Application.homepage = https://github.com/paulscherrerinstitute/pshell
Expand Down

0 comments on commit 2a07d75

Please sign in to comment.