MPE graphics are designed to display data in parallel from multiple MPI processes on a single X window. The routines provided are very simple, but sufficient for basic graphics and, in particular, for parallel display of images. Apart from drawing routines MPE also provides two graphics input routines that can be used to read the position of the mouse and to read coordinates of a rectangular region selected within the window by dragging the mouse.
Unfortunately you will find no manual entries that describe these functions in any detail in ``User's Guide for MPE'' - they are merely mentioned there - but there are some examples of their use in ``Using MPI'' (see, e.g., section 5.3, ``Visualizing the Mandelbrot Set'' therein).
The Mandelbrot set example code can be found in
/N/hpc/mpich2/src/mpich2-0.94b1/src/mpe/contrib/mandelbut this code is rather hard to read. It is over-featured, some of the features don't work, and it is nearly 5,000 lines long, which for a computation this trivial is quite excessive.
Instead we are going to study in this section two much smaller examples, which you will find on: