Creates two independent graphs which have a common horizontal time axis, but the graphs can have different vertical scales. Each graph consists of a SimView, GraphLine, DisplayGraph, AutoScale, DisplayAxes. This makes it possible to see together two GraphLines with very different scales. The horizontal variable can be changed to something other than time, but we ensure that both graphs have the same horizontal variable.

Creates several controls to modify the graph (but no pan-zoom control because it gets too confusing with the independent graphs).

Each graph has its own DisplayAxes, which are shown in the same color as the GraphLine. One of the axes are placed on the right, and the other is on the left.

Implements

Constructors

  • Parameters

    • varsList: VarsList

      the VarsList to collect data from

    • graphCanvas: LabCanvas

      the LabCanvas where the graph should appear

    • div_controls: HTMLDivElement

      the HTML div where controls should be added

    • _div_graph: HTMLDivElement

      the HTML div where the graphCanvas is located

    • simRun: SimRunner

      the SimRunner controlling the overall app

    Returns TimeGraph2

Methods

  • Returns a minimal string representation of this object, usually giving just identity information like the class name and name of the object.

    For an object whose main purpose is to represent another Printable object, it is recommended to include the result of calling toStringShort on that other object. For example, calling toStringShort() on a DisplayShape might return something like this:

    DisplayShape{polygon:Polygon{'chain3'}}
    

    Returns string

    a minimal string representation of this object.

Generated using TypeDoc