Function: boxToPatch

CALL:

p = boxToPatch(box, z)

DESCRIPTION:

Convert box [xmin xmax ymin ymax] to a patch data structure

INPUT:

box any
box representation of rectangle [xmin xmax ymin ymax]
z any
(optional) zdata for patch, default value: 0

OUTPUT:

p any
struct with patch xdata and ydata