Warp Factory
  • What is Warp Factory?
  • Overview
    • Installing Warp Factory
    • Workflow
    • Codebase Structure
    • Object Types
    • Frames
  • Examples
    • Metrics
      • M1 - First Metric
      • M2 - Default Metrics
      • M3 - Building a Metric
    • Energy Tensor
      • T1 - First Energy Tensor
      • T2 - Cartoon Methods
      • T3 - GPU Computation
      • T4 - Solver Order
      • T5 - Errors
    • Analysis
      • A1 - Energy Conditions
      • A2 - Metric Scalars
      • A3 - Eval Metric
      • A4 - Momentum Flow
    • Warp Shell
      • W1 Warp Shell Comoving
  • Modules
    • Metrics Module
      • Metric Library
        • metricGet_Minkowski
        • metricGet_Alcubierre
        • metricGet_Lentz
        • metricGet_VanDenBroeck
        • metricGet_WarpShellComoving
        • metricGet_ModifiedTime
        • metricGet_Schwarzschild
      • Metric Functions
        • setMinkowski
        • setMinkowskiThreePlusOne
        • threePlusOneBuilder
        • threePlusOneDecomposer
    • Analyzer Module
      • getMomentumFlowLines
      • doFrameTransfer
      • changeTensorIndex
      • getScalars
      • getEnergyConditions
      • evalMetric
    • Solver Module
      • getEnergyTensor
      • verifyTensor
    • Visualizer Module
      • plotThreePlusOne
      • plotTensor
      • Plot Functions
    • Units Module
  • General
    • Contributing
    • FAQ
    • Citing Warp Factory
Powered by GitBook
On this page
  • Extended Plotting Functions
  • Display Functions
  1. Modules
  2. Visualizer Module

Plot Functions

PreviousplotTensorNextUnits Module

Last updated 1 year ago

Extended Plotting Functions

Certian standard MATLAB functions are wrapped into a special call to better handle 4D data for the user.

Function
Extension
Example

plotq

Extends function by applying a to remove all array dimensions equal to 1

plotq(data(1,:,end/2,end/2))

surfq

Extends function by applying a to remove all array dimensions equal to 1. Note this automatically applies the custom colormap of redblue.

surfq(data(1,:,:,end/2))

Display Functions

For displaying metric and stress-energy values, some unique functions are built into Warp Factory to help users.

Function
Extension
Example

redblue(data, gradientNum)

Custom function which takes in dataand optional gradientNum to return a smooth mapping of red colors for negative values and blue colors for positive values. The gradientNum defines the resolution of the color scale, defaults to 1024.

redblue(data)

plot
squeeze
surf
squeeze
colormap