For details, see How to Use.
GraphFileAnimator2D - 2D Graph Plotting Tool for Animating Data Loaded from Multiple Files
This VCSSL program is a simple tool which plots 2D animation graphs by loading multiple data files.
Sponsored Link
How to Use
Download and Extract
At first, click the "Download" button at the above of the title of this page by your PC (not smartphone). A ZIP file will be downloaded.
Then, please extract the ZIP file. On general environment (Windows®, major Linux distributions, etc.), you can extract the ZIP file by selecting "Extract All" and so on from right-clicking menu.
» If the extraction of the downloaded ZIP file is stopped with security warning messages...
Execute this Program
Next, open the extracted folder and execute this VCSSL program.
For Windows
Double-click the following batch file to execute:
For Linux, etc.
Execute "VCSSL.jar" on the command-line terminal as follows:
java -jar VCSSL.jar
» If the error message about non-availability of "java" command is output...
How to Use After Executing the Program
Specify the folder in which data files are
After the program have been launched, select whether you want to specify the folder in which data files are or not.

If you select "No" here, the "input" folder in this package will be used. By the default, example data files are in the "input" folder.
If you have already prepared data files in the other folder, and you want to plot them, select "YES" here, and then specify the folder by choosing it on the file-chooser window.
Input the file name and the extension
Ends of names of data files should be sequential numbers. See the following figure:

Next, input the filename of data files, excluding serial numbers and the extension, for example: "sample2d_". Then input the extension.

Many of recent PCs don't show extensions of files by default, but you can set to show it. For details, search "show file extension".
Windows and UI
Then following three-windows will be launched. The left one is the input-window, the right-top one is animation-window, and the right-bottom one is the graph-window,

Start / Stop the Animation
Click the "PLAY" button to start the animation. The animation will be rendered by repeating fastly to plot each data file in the specified folder, in the order of sequential numbers of filenames.
When the animation is started, the label of the "PLAY" changes to "STOP". For stopping the animation, click this button again.
Save image files of graphs
You can save images of graphs as PNG-format image files by clicking "Save Image" button. By default, image files will be output in the "output" folder in this package.
Image files will be saved with filenames with sequential numbers. From them, you can create a video file or a GIF animation file by using general video-encoding/image-processing software.
Option Settings
You can select plotting-options by the "Option" menu on the menu bar, which is at the top of the graph window.

You can also modify other settings by menus on the menu bar, and can save settings by the "File" > "Save Setting" menu.
The 2D graph software "RINEARN Graph 2D" is used as the graph-window of this program. If you like UI and operability of the graph-window of this program, please try to use RINEARN Graph 2D for your data-analysis use.
» More Details
Data file formats
For details of formats of data files, see the manual of the RINEARN Graph 2D:
Example data files in "input" folder are also good examples to grasp the most simple format supported by this tool. The content of "sample2d_2.txt" is as follows:
- input/sample2d_2.txt -0.19634954084936207 -0.19509032201612825
0.39269908169872414 0.0
0.5890486225480862 0.19509032201612825
0.7853981633974483 0.3826834323650898
0.9817477042468103 0.5555702330196022
1.1780972450961724 0.7071067811865475
1.3744467859455345 0.8314696123025452
1.5707963267948966 0.9238795325112867
1.7671458676442586 0.9807852804032304
1.9634954084936207 1.0
2.1598449493429825 0.9807852804032305
2.356194490192345 0.9238795325112867
2.552544031041707 0.8314696123025451
2.748893571891069 0.7071067811865476
2.945243112740431 0.5555702330196025
3.141592653589793 0.3826834323650899
3.3379421944391554 0.19509032201612816
3.5342917352885173 1.2246467991473532E-16
3.730641276137879 -0.19509032201612792
3.9269908169872414 -0.38268343236508967
4.123340357836604 -0.5555702330196023
4.319689898685965 -0.7071067811865471
4.516039439535327 -0.8314696123025452
4.71238898038469 -0.9238795325112865
4.908738521234052 -0.9807852804032305
5.105088062083414 -1.0
5.301437602932776 -0.9807852804032307
5.497787143782138 -0.9238795325112866
5.6941366846315 -0.8314696123025455
5.890486225480862 -0.7071067811865483
6.086835766330224 -0.5555702330196022
Each line in the above file corresponds each point plotted on the graph, and they will be linked by polylines by default.
Two values are described in each line. Value at the left represents X coordinate values, and values at the right represents Y coordinate values. You can split columns by spaces, tabs, or commas(,).
If you want to describe multiple data series (plotted by using different colors) in one file, insert a blank line at the boundary of each data series.
Code
This code is written in VCSSL.
License
The license of this VCSSL / Vnano code (the file with the extension ".vcssl" / ".vnano") is CC0 (Public Domain), so you can customize / divert / redistribute this VCSSL code freely.
Also, if example code written in C/C++/Java are displayed/distributed on Code section of this page, they also are distributed under CC0, unless otherwise noted.
3D Graph Plotting Tool for Animating Data Loaded from Multiple Files |
|
![]() |
A simple tool which plots 3D animation graphs by loading multiple data files. |
2D Graph Plotting Tool for Animating Data Loaded from Multiple Files |
|
![]() |
A simple tool which plots 2D animation graphs by loading multiple data files. |
3D Graph Tool for Plotting & Animating Expressions of the Form of "z = f(x,y,t)" |
|
![]() |
A simple tool which plots the expression (formula) of the form of "z = f(x,y,t)" to the 3D graph, and plays it as animation. |
2D Graph Tool for Plotting & Animating Expressions of the Form of "y = f(x,t)" |
|
![]() |
A simple tool which plots the expression (formula) of the form of "y = f(x,t)" to the 2D graph, and plays it as animation. |
3D Graph Tool for Plotting & Animating Parametric Expressions of the Form of x(t), y(t), z(t) |
|
![]() |
A simple tool which plots parametric expressions (formulas) of the form of x(t), y(t), z(t) to the 3D graph, and plays it as animation. |
2D Graph Tool for Plotting & Animating Parametric Expressions of the Form of x(t) and y(t) |
|
![]() |
A simple tool which plots parametric expressions (formulas) of the form of x(t) and y(t) to the 2D graph, and plays it as animation. |
3D Graph Tool for Plotting Expressions of the Form of "z = f(x,y)" |
|
![]() |
A simple tool which plots the expression (formula) of the form of "z = f(x,y)" to the 3D graph. |
2D Graph Tool for Plotting Expressions of the Form of "y = f(x)" |
|
![]() |
A simple tool which plots the expression (formula) of the form of "y = f(x)" to the 2D graph. |
Animating a 3D Graph by Continuously Plotting Arrays (Surface/Mesh Plot) |
|
![]() |
Explains how to create 3D surface/mesh graph animations by updating arrays over time. |
Animating a 3D Graph by Continuously Plotting Arrays (Point/Line Plot) |
|
![]() |
Explains how to create 3D point/line graph animations by updating arrays over time. |
Animating a 2D Graph by Continuously Plotting Arrays |
|
![]() |
Explains how to create 2D graph animations by updating arrays over time. |
Plotting Arrays on a 3D Graph (Surface/Mesh Plot) |
|
![]() |
Explains how to plot coordinate data stored in an array on a 3D surface/mesh graph with sample code. |
Plotting a File on a 3D Graph (Surface/Mesh Plot) |
|
![]() |
Explains how to plot coordinate data from a file on a 3D surface/mesh graph with sample code. |
Plotting Arrays on a 3D Graph (Point/Line Graph) |
|
![]() |
Explains how to plot coordinate data stored in an array on a 3D graph with sample code. |
Plotting Arrays on a 2D Graph |
|
![]() |
Explains how to plot coordinate data stored in an array on a 2D graph with sample code. |
Plotting a File on a 3D Graph (Point/Line Graph) |
|
![]() |
Explains how to plot coordinate data from a file on a 3D graph with sample code. |
Plotting a File on a 2D Graph |
|
![]() |
Explains how to plot coordinate data from a file on a 2D graph with sample code. |