q_plim¶
-
hhpy.plotting.
q_plim
(s: pandas.core.series.Series, q_min: float = 0.1, q_max: float = 0.9, offset_perc: float = 0.1, limit_min_max: bool = False, offset=True) → tuple[source]¶ returns quick x limits for plotting (cut off data not in q_min to q_max quantile)
Parameters: - s – pandas Series to truncate
- q_min – lower bound quantile [optional]
- q_max – upper bound quantile [optional]
- offset_perc – percentage of offset to the left and right of the quantile boundaries
- limit_min_max – whether to truncate the plot limits at the data limits
- offset – whether to apply the offset
Returns: a tuple containing the x limits