Histogram

The histogram class provides a way to display data as bar charts.

Fields

  • bool visible: is true when the window is shown. becomes false when the user closes the window

Methods

  • void construct: creates a histogram window
  • void construct(string name): creates a histogram window with a title
  • void plot(complex[] data): plots an array of complex numbers, the real value being bar caption and the imaginary one - it's value
  • void plot(float[] data): plots an array of floating point data, the array index being bar caption
  • void plot(float[] capts, float[] data): plots an array of floating point data using another array for captions
  • void plot(string[] capts, float[] data): plots an array of floating point data using another array for captions

The window looks kinda like this:
histogram.png

Last edited Mar 17, 2011 at 2:49 PM by impworks, version 2

Comments

No comments yet.