case class PlotGrid(plots: Seq[Seq[Seq[Plot2D]]], axes: Map[String, Axis], xWeights: Seq[Double], yWeights: Seq[Double], axisFrac: Double = 0.15) extends Plottable with Product with Serializable
This is the primary plotting element in SwiftVis2. It represents a grid of plots with axes that can surround the edges. Each region in the PlotGrid can hold multiple plots so the data for the plots is given by a Seq[Seq[Seq[Plot2D]]]. The first index is for the row, the second is the column, and the third is a stack of plots drawn at that location. The axes associated with plots are in the Plot2D type by name, which should match up with the Map[String, Axis] passed into this.
Each row and column can be a different size. The sizes are determined by the xWeights and yWeights arguments. Larger values get more space. The amount of space given to each row/column is determined by its contribution to the sum of the weights. If all the weights are the same, the rows/columns will be uniform in size.
The axisFrac argument tells what fraction of the plotting region should be given to the axes. The actual space given to the axes is this fraction times the smaller value of the width or height. Font sizes for axis labels are adjusted to fit whatever size is given here.
- Alphabetic
- By Inheritance
- PlotGrid
- Serializable
- Serializable
- Product
- Equals
- Plottable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
-  val axes: Map[String, Axis]
-  val axisFrac: Double
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-  val plots: Seq[Seq[Seq[Plot2D]]]
- 
      
      
      
        
      
    
      
        
        def
      
      
        render(r: Renderer, bounds: Bounds): Unit
      
      
      Renders this grid to the specified Renderer inside of the specified bounds. 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
-  def updatedStyle[A <: PlotStyle](f: (A) ⇒ A, row: Int = 0, col: Int = 0, stack: Int = 0): PlotGrid
-  def updatedStyleXAxis(axisName: String, row: Int = 0, col: Int = 0, stack: Int = 0): PlotGrid
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
-  def withAxis(axisName: String, axis: Axis): PlotGrid
-  def withColumn(col: Int = plots.head.length): PlotGrid
-  def withModifiedAxis[A <: Axis](currentAxisName: String, newAxisName: String, f: (A) ⇒ A): PlotGrid
-  def withRow(row: Int = plots.length): PlotGrid
-  def withStyle(style: PlotStyle, row: Int = 0, col: Int = 0, stack: Int = 0): PlotGrid
-  val xWeights: Seq[Double]
-  val yWeights: Seq[Double]