As related to another question(s) I’ve posted, can someone help with this custom formatter? This is for use in a FunctionFormatter to be used on the y axis to format the ticks (in particular, to remove them when not wanted). Example:
if y < 0:
This says if the value of y < 0, put nothing on the axis tick.
QUESTION: How can I implement the following two sorts of rules in Matplotlib’s (OO) API?
if y falls in the bottom 50 pixels’ worth of height of this plot:
if y falls in the bottom 10% of the height of this plot: return ''