function fem2d_scalar_display_txyv ( prefix )

%*****************************************************************************80
%
%% fem2d_scalar_display_txyv() displays scalar FEM data.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 April 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    string PREFIX: the prefix to the node and element filenames.
%
  XY = load ( strcat ( prefix, '_nodes.txt'    ) );
  T  = load ( strcat ( prefix, '_elements.txt' ) );

  if ( min ( min ( T ) ) == 0.0 )
    T = T + 1.0;
  end

  V  = load ( strcat ( prefix, '_values.txt'   ) );

  trisurf ( T, XY(:,1), XY(:,2), V );

  filename = sprintf ( '%s.png', prefix );
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  return
end

