GRAPHICS_EXAMPLES
Sample Data for Graphics Demonstrations {#graphics_examples-sample-data-for-graphics-demonstrations align="center"}
GRAPHICS_EXAMPLES, C++ programs which illustrate how various kinds of data can be displayed and analyzed graphically.
These programs rely on the DISLIN package to set up the graphics output.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
GRAPHICS_EXAMPLES programs are available in a C version and a C++ version and a dataset version and a FORTRAN77 version and a FORTRAN90 version and a MATHEMATICA version and a MATLAB version and a Python version.
DISLIN, C++ programs which illustrate the use of DISLIN, a scientific graphics package, by Helmut Michels.
GRAPHICS_EXAMPLES_CONVERT, examples which illustrate how various kinds of data can be processed and modified using the ImageMagick program convert() and its related tools.
GRAPHICS_EXAMPLES_GNUPLOT, examples which illustrate how various kinds of data can be displayed and analyzed graphically using the interactive executable graphics program gnuplot().
GRAPHICS_EXAMPLES_GRACE, examples which illustrate how various kinds of data can be displayed and analyzed graphically using the interactive executable graphics program grace().
GRAPHICS_EXAMPLES_PLOTLY, examples which illustrate how various kinds of data can be displayed and analyzed graphically, using the plotly() program from a browser.
- Andrew Frank, Arthur Asuncion,
UCI Machine Learning Repository,
http://archive.ics.uci.edu/ml,\ School of Information and Computer Science,
University of California, Irvine, California. - Philipp Janert,
Gnuplot in Action: Understanding Data with Graphs,
Manning, 2010,
ISBN13: 978-1-933988-39-8,
LC: QA276.4.J37. - Wendy Martinez, Angel Martinez,
Computational Statistics Handbook with MATLAB,
Chapman and Hall / CRC, 2002,
ISBN: 1-58488-229-8,
LC: QA276.4.M272. - Helmut Michels,
The Data Plotting Software DISLIN - version 10.4,
Shaker Media GmbH, January 2010,
ISBN13: 978-3-86858-517-9.
CIRCLE_INOUT depicts 500 pairs of (X,Y) data points in the unit square, 395 of which lie inside the unit circle, and 105 outside. If possible, the "inside" points should be blue, the "outside" points red, and the circle itself should also be drawn.
- circle_in.txt, the coordinates of points inside the circle.
- circle_out.txt, the coordinates of points outside the circle.
- circle_inout.cpp, reads the data and makes a plot.
- circle_inout.png, a PNG image of the plot.
GEYSER contains the waiting time in minutes between successive eruptions of the Old Faithful geyser. 299 values are recorded. The data ranges from 43 to 108. It should be displayed in 14 bins of width 5 from 40 to 110. The data comes from Martinez and Martinez.
- geyser.txt, the data set;
- geyser_binned.txt, the data set after being grouped into 14 bins;
- geyser.cpp, reads the data and makes a plot.
- geyser.png, a PNG image of the plot.
LISSAJOUS records 1000 points on a Lissajous curve defined by x=sin(3*t+pi/2), y=sin(4t). The curve is to be plotted and every tenth point marked.
- lissajous.txt, the data.
- lissajous.cpp, reads the data and makes a plot.
- lissajous.sh, commands to compile, link and run the sample calling program;
- lissajous_output.txt, the output file.
- lissajous.png, a PNG image of the plot.
LYNX records the yearly lynx harvest from 1821 to 1934. The graph should plot the data points as circles, and connect consecutive data points with straight line segments to suggest a curve.
- lynx.txt, the data.
- lynx.cpp, creates the data and displays a scatter plot.
- lynx.sh, commands to compile, link and run the sample calling program;
- lynx_output.txt, the output file.
- lynx.png, a PNG image of the plot.
ORBITAL records, on a 101x101 grid over [0,4*pi]x[0,4*pi], the minimum distance between two planets given a pair of orbital angles. A contour plot of this data is to be presented.
- orbital.txt, the data.
- orbital.cpp, reads the data and makes a plot.
- orbital.sh, commands to compile, link and run the sample calling program;
- orbital_output.txt, the output file.
- orbital.png, a PNG image of the plot.
SCATTER_PLOT generates 500 pairs of (X,Y) data, which lie in the unit square, and tend to cluster around (0.5,0.5).
- scatter_plot.txt, the data.
- scatter_plot.cpp, creates the data and displays a scatter plot.
- scatter_plot.sh, commands to compile, link and run the sample calling program;
- scatter_plot_output.txt, the output file.
- scatter_plot.png, a PNG image of the plot.
SURFACE_GRID records, on a 41x41 grid over [-2,2]x[-2,+2], the values z = exp(-(x^2+y^2)) * cos(0.25*x) * sin(y) * cos(2*(x^2+y^2)). The data is to be plotted as a surface.
- surface_grid.txt, the data.
- surface_grid.cpp, reads the data and makes a plot.
- surface_grid.sh, commands to compile, link and run the sample calling program;
- surface_grid_output.txt, the output file.
- surface_grid.png, a PNG image of the plot.
You can go up one level to the C++ source codes.
Last modified on 20 May 2011.