show_viewer_demo Program

Demonstration of show_viewer() functionality

This program creates a simple plot and displays it using the system's default PDF viewer, similar to matplotlib.pyplot.show()

Usage: make example ARGS="show_viewer_demo"

The plot will open in your default PDF viewer. Press Enter in the terminal to continue and clean up the temporary file.


Variables

Type Attributes Name Initial
integer, parameter :: n = 100
real(kind=wp), dimension(n) :: x
real(kind=wp), dimension(n) :: y1
real(kind=wp), dimension(n) :: y2
integer :: i