Comparison of non-Class Plotting Functions

Plotting Functions


The Mira Pro x64 Script language provides a large collection of powerful plotting tools, some that involve class objects and others that work outside of classes. All of these classes and methods work with 1-dimensional arrays.

Plotting Functions

These non-class functions use the CPlotView and CPlot classes to efficiently graph data in a new CPlotView window using code as simple as scatter(x,y). They return two parameters: the CPlotView object for the window and a CPlot object attached to the current plot series in the window. The non-class functions use lowercase names to distinguish them from class objects that use mixed upper and lower case. Some of the older plot functions have legacy mixed case names, like ConnectedPlot. These older names are listed following the new lowercase names.

connect (ConnectedPlot)

Graphs x and y arrays as markers connected by line segments. This is an alternate version of the plot function.

connecterr

Graphs x and y arrays with error bars using markers connected by line segments.

histplot

Computes the histogram of an array and graphs it as a stepped line plot. This function assumes default binning properties for creating the horizontal axis.

line (LinePlot)

Graphs x and y arrays using line segments between the points but without drawing markers.

lineerr

Graphs x and y arrays with error bars using line segments between the points but without drawing markers.

scatter (ScatterPlot)

Graphs x and y arrays using markers for the points.

scattererr

Graphs x and y arrays with error bars using markers for the points.

stepline (SteplinePlot)

Graphs x and y arrays using stepped line segments between the points but without drawing markers for the points.

steplineerr

Graphs x and y arrays with error bars using stepped line segments between the points but without drawing markers for the points.

plot (ConnectedPlot)

Graphs x and y arrays by drawing the points and connecting them with line segments. This is an alternate version of the connect function.

Plotting Classes

These classes are used by the efficient non-class plotting functions in the table above. These class objects are returned by the non-class functions to permit using class method on the plotted data.

CPlotView class

Provides a large number of plotting tools within a class framework.

CPlot class

Provides access to individual plot series and plot point data within a class framework.

Related Topics

Contents

Comparison of non-Class Plotting Functions

Table and Array Functions

CPlotView class

CPlot class

  


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.