TGraphWindow

Written by: Mark E. Burkard
Email: mebd at uhura dot cc dot rochester dot edu
Last updated: 19 September 1998
Copyright (C) 1998 by Mark E. Burkard

Download Project

Overview

This is a TWindow-derived class for OWL 5.0 (Windows class library for Borland C++ 5.02). The purpose is to make a window containing a graph of Y vs X variables as provided by the calling function. The program connects the points by lines. The user can select line color and thickness and can print the plot or copy it to the clipboard. Lines can be selected or deselected for plotting by the user.

Conditions For Use

The code may be freely used and modified. However, the user of the code assumes all liability. I will not be held liable for use or misuse of this code.

Usage

The constructor is as follows:

 TGraphWindow(TFrameWindow* frame, TWindow* parent, char* titl, int nyg,
              int* ny, char* xName, char** ygNames, char*** yNames,
              char* xUnits, char** yUnits, TArray<double>* x,
              TArray<double>*** y, bool delArrays);

where:

Example

The TGraph.ide contains a program that displays an example graph. The graphtest.cpp file contains the example call to TGraphWindow.

GOOD LUCK!