Can GNU APL output be sent to a command line plotting program (e.g., gnuplot)?

StackOverflow https://stackoverflow.com/questions/20436655

  •  30-08-2022
  •  | 
  •  

문제

I would like to plot the output of GNU APL calculations using open-source plotting software (e.g., gnuplot) that takes commandline input but I don't see how it is possible with the available system commands and functions. The )HOST command allows running system commands but I don't understand how the output or variables can be redirected from the terminal display to the commandline.

Not as desirable, but still OK would be to save output or variables to files that could be read by the plotting software. However, the only file-saving options I see relate to workspaces.

Two solutions I am not seeking are: 1) ASCII character plots 2) Running GNU APL as a script that sends output to stdout but would not be interactive APL.

Thanks for your suggestions!

도움이 되었습니까?

해결책

I believe you can write the result into some file using AP210 and then start gnuplot with the filename using )HOST or AP100.

I have added examples of how to use AP100 and AP210 to the src/testcases directory in the SVN repository for GNU APL. A more complete description of these APs can be found in the IBM documents for APL2 that can be found at:

http://www.catpad.net/michael/apl/ibmapl2/

/// Jürgen

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top