Calling gnuplot from java? (ubuntu)

前端 未结 5 1173
余生分开走
余生分开走 2021-01-19 02:52

I\'m not sure if this is possible, especially since Java runs through a VM, but can I call gnuplot from within Java? Perhaps I could have Java open a terminal and input

5条回答
  •  广开言路
    2021-01-19 03:21

    Use the JavaGnuplotHybrid library.

    It is very light weight (only 3 core classes) and enables hybrid programming with Java and Gnuplot.

    1. Hybrid programming with Java and Gnuplot
    2. Very light weight (just three core Classes)
    3. Use tags in Gnuplot code to execute functions or get fields' values in Java.
    4. Support both synchronized and asynchronized running of Gnuplot in Java. (synchronized: your java program will wait until you close the popped Gnuplot window; asynchronized: you java program will not wait.)
    5. Capture error/normal text output of Gnuplot to the java terminal
    6. Read Gnuplot code from xml files
    7. Support Gnuplot code template.

    For more details:

    1. Project page: https://github.com/mleoking/JavaGnuplotHybrid
    2. Examples: https://github.com/mleoking/JavaGnuplotHybrid/blob/master/javagnuplothybrid/doc/examples.md

提交回复
热议问题