Commit b3aee4d6 authored by Rui Vieira's avatar Rui Vieira

Release 0.0.5

parent b7be06a5
......@@ -6,7 +6,7 @@
<groupId>org.ruivieira</groupId>
<artifactId>java-plotlib</artifactId>
<version>0.0.4</version>
<version>0.0.5</version>
<build>
<plugins>
......
......@@ -39,9 +39,7 @@ public class Figure {
title.ifPresent(s -> script.append("plt.title('").append(s).append("')\n"));
script.append("\n").append("plt.savefig('").append(imageName).append("')");
writeStringToFile(tempFile, script.toString(), Charset.defaultCharset());
// System.out.println(script.toString());
runtime.exec(python + " " + tempFile.getAbsolutePath());
System.out.println(tempFile.getAbsolutePath());
} catch (IOException e) {
e.printStackTrace();
......@@ -54,7 +52,6 @@ public class Figure {
File tempFile = File.createTempFile("java-plotlib-", ".png");
save(tempFile.getAbsolutePath());
img = ImageIO.read(new File(tempFile.getAbsolutePath()));
} catch (IOException e) {
e.printStackTrace();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment