Can TwoSlopeNorm use logarithmic base2 in colorbar?

Is there a way to get TwoSlopeNorm working in combination with logarithmic scaling in base 2 on the colorbar?

An example is something like this where you have normal linear scaling:

import matplotlib.pyplot as plt
import matplotlib.colors
import numpy as np

x = np.arange(-50,100,1)
y = x.copy()
c = x.copy()
scatter_plot = plt.scatter(x, y, c=c, cmap='bwr', norm=matplotlib.colors.TwoSlopeNorm(vmin=-50, vcenter=0, vmax=100))
cbar = plt.colorbar(scatter_plot)


I am aware that base2 does not make much sense for this particular example, but it should simply illustrate what I am talking about.
I know that SymLogNorm supports base2, but it looks like this is not the case for TwoSlopeNorm. Does anyone have a suggestion on how to do it?

PS: I noticed a small error on the main website.
The gitter-icon in the header links to , which results in an error.
The icon on the bottom correctly links to

Are you asking if there is such a thing as a TwoSlopeSymLogNorm? If so, the answer is no, but you could use matplotlib.colors.FuncNorm — Matplotlib 3.7.0 documentation to make whatever norm you would like.

If you are asking if you keep the linear TwoSlopeNorm, but tick the colorbar with base 2 on either side of 0, I think you can do that matplotlib.ticker — Matplotlib 3.7.0 documentation