Mercurial > octave-libgccjit
view examples/myfunc.c @ 18962:d4b69559a0f7
graphics.cc (axes::properties::set_rotate3d): Fix check for 2D axes
* graphics.cc (axes::properties::set_rotate3d): Remove incorrect check
for parent figures' ndim with calc_dimensions and replace with get_is2D.
This fixes the problem in mixed 2D, 3D subplots where it was possible
to enable rotate3d for 2D plots.
author | Andreas Weber <andy.weber.aw@gmail.com> |
---|---|
date | Mon, 28 Jul 2014 09:28:57 +0200 |
parents | 224e76250443 |
children |
line wrap: on
line source
#include "mex.h" void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { const char *nm; nm = mexFunctionName (); mexPrintf ("You called function: %s\n", nm); if (strcmp (nm, "myfunc") == 0) mexPrintf ("This is the principal function\n", nm); return; }