This will print the absolute value for labeling on axis. Usefull for stacked bar plots where negative values are not negative percentages but represent negative groups.

abs_formatter(x)

Arguments

x

value to be reformatted.

Value

the absolute value of x.