A simple xy plot' ) CALL gp % xlabel ( 'my x axis. TYPE ( gpf ):: gp INTEGER, PARAMETER :: n = 17 Real ( wp ):: x ( n ) Real ( wp ):: y ( n ) ! Input data x = dble () y = dble () ! Annotation: set title, xlabel, ylabel CALL gp % title ( 'Example 1. This section shows selected example codes from demo.f90 A Makefile has been provided to build the demo from command line. To use ogpf on other operating system, you may need to modify the terminal type and fonts in the section of Configuration Parameters. To use ogpf in your project, add the library file to your fortran project (code) * ogpf.f90 (the main library)įor details see ‘demo.f90’ Important Note There is a collection of examples in demo.f90 to show the capabilities of ogpf. Set several options at the same time using semicolon as delimiterĬall gp%options('unset tics unset colorbox') Demo
Use several options each uses separate commandĬall gp%options('set tics font ",8"') ! font size for tics Set the legend (key) at the right bottom of windowĬall gp%options('set style line 1 lc rgb "blue" lt 1 lw 2 pt 6 ps 1.5') In every call, it is possible to set several options separated by semicolon or options can be set by several calls.
Plots in simply fortran software#
Options can be set by calling the ogpf options. Free: Mjograph (2d plots only) and Veusz (2d and 3d plots) Perhaps you can generate csv or simple space-delimited files with your Python/Compiled-Fortran code, and process using 2d plotting software like Mjograph and/or 2d/3d software like Veusz. The option command is a very powerful command and can be used to customize the gnuplot in many ways. There are a plenety commands to customise the plots.
These color palettes can be used with: surf ( x, y, z, palette = 'plt-name' ) contour ( x, y, z, palette = 'plt-name' ) See Ann Schnider gnuplot color palettes and Gnuplotting. Nine different color palettes are available. A demo file,a brief tutorial and the latest version is available at: github. Ogpf is an object based Fortran 2003 / Fortran 2008 code implements an interface to gnuplot.