View Raw SPL
/*****************************************************************************
* *
* GETYAUTOSCALE.SPL Copyright (C) 2018 DSP Development Corporation *
* All Rights Reserved *
* *
* Author: Randy Race *
* *
* Synopsis: Gets window X autoscaling mode *
* *
* Revisions: 13 Jul 2018 RRR Creation *
* *
*****************************************************************************/
#include
#if @HELP_GETYAUTOSCALE
GETYAUTOSCALE
Purpose: Gets window X autoscaling mode
Syntax: GETYAUTOSCALE(win)
win - Optional. A window, defaults to current window.
Returns: An integer, 0, Y autoscaling disabled or 1, Y autoscaling enabled.
Example:
W1: gsin(1000,1/1000,4);setyautoscale(0);
getyautoscale(w1)
Returns 0, indicating Y axis autoscaling is disabled.
Remarks:
GETYAUTOSCALE is useful for data in real time Windows.
See Also:
Rttinit
Getautoscale
Getyautoscale
Setautoscale
Setxautoscale
Setyautoscale
#endif
/* return Y autoscaling */
getyautoscale(win)
{
local yauto;
yauto = setyautoscale(win);
return(yauto);
}