CygNet Studio > Using CygNet Studio Tools and Controls > Trend Tool > Configuring the Trend Tool > Editing a Y-Axis

Trend Tool – Editing a Y-Axis

Each y-axis uses its own property set. The properties for one y-axis apply to all of its child series, no matter how many series there are. This includes scaling and plot style. If you do not want a y-axis's properties to apply to its child series, consider moving anomalous child series into a new, different y-axis.

For more information, see the following subsections below:

To Edit a Y-Axis

Note: The following procedure assumes that you are using CygNet Studio in Edit mode, have successfully added a Trend Tool to TheView, and are looking at either the Default Trend Properties dialog box or the CygNet Trend Control Properties dialog box.

  1. On the Series page, double-click the y-axis you want to edit. Doing so opens the Axis n Properties dialog box shown below:

Axis n Properties

  1. Make settings changes to suit your needs. Available options are described below in Axis Properties.
  2. When you are finished, click OK to save your changes and exit.
Back to top

Numerical Identifiers

Within CygNet, each Trend Tool axis is identified by three numbers. Two of these identifying numbers (configured axis index number and displayed axis index number) are only relevant in script.

The three identifying numbers are as follows:

Example

You might use the (OCXProperties) dialog box to add a y-axis and assign it the axis ID 12. But if it’s the 5th lowest y-axis in a Trend Tool hierarchy, its configured axis index is 4. Finally, when you display this y-axis in Run mode, its displayed axis index is 1.

The following screenshot illustrates the relationship between the three y-axis numbers described above:

Axis relationship

Back to top

Axis Properties

The following table lists and describes Axis n Properties dialog box properties.

Option Description

Scale

The Scale properties area includes the following options:

  • Minimum: Specifies the minimum value for a y-axis. To define a negative value, merely type a minus sign (-) before the numerical value. Enable Automatic to auto-scale the axis values based on the highest and lowest values in the series. The Minimum setting can be overridden temporarily in Run mode by placing the cursor over the y-axis scale and pulling the graph up or down. See also AutoScaleMin and MinY.
  • Maximum: Specifies the maximum value for a y-axis. Enable Automatic to auto-scale the axis values based on the highest and lowest values in the series. The Maximum setting can be overridden temporarily in Run mode by placing the cursor over the y-axis scale and pulling the graph up or down. See also AutoScaleMax and MaxY.
  • Type: The Type drop-down menu enables you to select the type of scale to apply to a y-axis. See also YAxisType.

Type options are as follows:

  • Automatic: If the data range is larger than or equal to 10e3 and all values are greater than zero, then a log scale is used. Otherwise, a linear scale is used.
  • Linear: A linear scale is used.
  • Logarithmic: A logarithmic scale is used if all values are greater than zero. Otherwise, a linear scale is used.

Label

The Label properties area includes the following options:

  • Use Series Legend for Y-Axis Labels: Defines the y-axis label as using the name(s) of series in the series legend. Numerous series names might appear in the y-axis label. See also YAxisLabelFromLegend.
  • Label: User-defined label for the y-axis. See also YAxisLabel.
  • Placement: Defines the placement of y-axis labels, which may affect y-axis alignments for the trend tool. Options are On Left and On Right; these positions are vertical and relative to the graph. Selecting On Left or On Right in Edit mode changes the position of the affected y-axis and its respective series within the group-axis-series tree. See also OnRightAxis.

Style

Plot styles available for a given graph are listed here. Choose from the available Plot Style options. These are as follows:

  • Line
  • Bar
  • Points
  • Area
  • Points + Best Fit Curve
  • Points + Best Fit Line
  • Points + Line
  • Points + Spline
  • Spline

Note: Using points plot styles (for instance, Points + Line) in conjunction with the Square Wave or Extend Last Value options might result in inauthentic points for the purposes of enabling those options. Conversely, using points plot styles in conjunction with the Data Thinning option might result in fewer displayed data points.

See also Plot Style Examples and PlotStyle.

Plot Style Examples

Nine plot styles are supported. You can use a Trend Fill option with any Plot Style except Bar and Area.

Line Plot Style example Bar Plot Style example Points Plot Style example
Line Bar Points
     
Area Plot Style example Points + Best Fit Curve Plot Style example Points + Best Fit Line Plot Style example
Area Points + Best Fit Curve Points + Best Fit Line
     
Points + Line Plot Style example Points + Spline Plot Style example Spline Plot Style example
Points + Line Points + Spline Spline
Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.