plotSetYShow ============================================== Purpose ---------------- Hides or enables the display of the y-axis. Format ---------------- .. function:: plotSetYShow(&myPlot, is_on) :param &myPlot: A :class:`plotControl` structure pointer. :type &myPlot: struct pointer :param is_on: A 0 to hide the y-axis, or a 1 to show it. :type is_on: Scalar, or 2x1 matrix Examples ---------------- .. figure:: _static/images/plotsetyshow-cr.png :scale: 50 % :: // Declare plotControl structure struct plotControl myPlot; // Initialize plotControl structure myPlot = plotGetDefaults("xy"); // Turn off the left y-axis plotSetYShow(&myPlot, 0); // Create data x = seqa(0.1, 0.1, 50); y = sin(x)~cos(x); // Plot the data plotXY(myPlot, x, y); Remarks ------- - :func:`plotSetYShow` will not force an axis to be shown unless a series of data is attached to it. By default, data will be attached to the left y-axis. Use :func:`plotSetWhichYAxis` to control which y-axis a series of data is attached to. - If ``is_on`` is a scalar, it will apply to the left and left y-axes. If it is a 2x1 matrix, the first element will control the left y-axis and the second will control the right y-axis. .. include:: include/plotattrremark.rst .. seealso:: Functions :func:`plotSetXShow`, :func:`plotSetYRange`