Skip to content

Commit

Permalink
0.30-a1 (devel.8): Data1D more control of gnuplot-ing.
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Mar 28, 2019
1 parent 380a799 commit cb3c5cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jnum/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public final class Util {

public final static String version = "0.30-a1";

public final static String revision = "devel.6";
public final static String revision = "devel.8";

public final static String copyright = "(c)2019 Attila Kovacs";

Expand Down
5 changes: 4 additions & 1 deletion src/jnum/data/samples/Data1D.java
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,12 @@ protected void configGnuplot(PrintWriter plot, String coreName, Grid1D grid, Str
plot.println("set style data " + style);
}

public String getPlotXValues() { return "1"; }

public String getPlotYValues() { return "2"; }

protected String getPlotCommand(String coreName) {
return "'" + coreName + ".dat' using 1:2 notitle";
return "'" + coreName + ".dat' using " + getPlotXValues() + ":" + getPlotYValues() + " notitle";
}


Expand Down

0 comments on commit cb3c5cf

Please sign in to comment.