def cortex_plot(mesh, *args, **opts):
if not isinstance(mesh, geo.Mesh) or mesh.coordinates.shape[<NUM_LIT:0>] > <NUM_LIT:2>:<EOL><INDENT>return cortex_plot_3D(mesh, *args, **opts)<EOL><DEDENT>else:<EOL><INDENT>return cortex_plot_2D(mesh, *args, **opts)<EOL><DEDENT>
cortex_plot(mesh) calls either cortex_plot_2D or cortex_plot_3D depending on the dimensionality
  of the given mesh, and yields the resulting graphics object. All optional arguments supported
  by each is supported by cortex plot.

The following options are accepted:
  * color (default: None) specifies the color to plot for each vertex; this argument may take a
    number of forms:
      * None, do not plot a color over the underlay (the default)
      * a matrix of RGB or RGBA values, one per vertex
      * a property vector or a string naming a property, in which case the cmap, vmin, and vmax
        arguments are used to generate colors
      * a function that, when passed a single argument, a dict of the properties of a single
        vertex, yields an RGB or RGBA list for that vertex.
  * cmap (default: 'log_eccentricity') specifies the colormap to use in plotting if the color
    argument provided is a property.
  * vmin (default: None) specifies the minimum value for scaling the property when one is passed
    as the color option. None means to use the min value of the property.
  * vmax (default: None) specifies the maximum value for scaling the property when one is passed
    as the color option. None means to use the max value of the property.
  * underlay (default: 'curvature') specifies the default underlay color to plot for the
    cortical surface; it may be None, 'curvature', or a color.
  * alpha (default None) specifies the alpha values to use for the color plot. If None, then
    leaves the alpha values from color unchanged. If a single number, then all alpha values in
    color are multiplied by that value. If a list of values, one per vertex, then this vector
    is multiplied by the alpha values. Finally, any negative value is set instead of multiplied.
    So, for example, if there were 3 vertices with:
      * color = ((0,0,0,1), (0,0,1,0.5), (0,0,0.75,0,8))
      * alpha = (-0.5, 1, 0.5)
    then the resulting colors plotted will be ((0,0,0,0.5), (0,0,1,0.5), (0,0,0.75,0,4)).
  * mask (default: None) specifies a mask to use for the mesh; thi sis passed through map.mask()
    to figure out the masking. Those vertices not in the mask are not plotted (but they will be
    plotted in the underlay if it is not None).
  * hemi (defaut: None) specifies the hemisphere to use. If the passed mesh object is actually a
    subject or mesh pair then this specifies which hemisphere to use. If the passed object is a
    mesh, then this overrides its chirality, if specified in meta_data. If two hemispheres are
    given, then this may be 'both' or 'split' in accordinace with PySurfer's Brain() class.
  * surface (default: 'white') specifies the surface to use if the mesh object passed is in fact
    either a cortex or subject object.
  * axes (default: None) specifies a particular set of matplotlib pyplot axes that should be
    used. If axes is Ellipsis, then instead of attempting to render the plot, a tuple of
    (tri, zs, cmap) is returned; in this case, tri is a matplotlib.tri.Triangulation
    object for the given map and zs and cmap are an array and colormap (respectively) that
    will produce the correct colors. Without axes equal to Ellipsis, these would instead
    be rendered as axes.tripcolor(tri, zs, cmap, shading='gouraud'). If axes is None, then
    uses the current axes.
  * triangulation (default: None) specifies the matplotlib triangulation object to use, if one
    already exists; otherwise a new one is made.