Plot Functions

Extended Plotting Functions

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

FunctionExtensionExample

plotq

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

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

surfq

Extends surf function by applying a squeeze 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.

FunctionExtensionExample

redblue(data, gradientNum)

Custom colormap 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)

Last updated