PowerNorm should have a scale... #20355
Comments
I'll mark as "Good first issue" because I think the example of LogNorm is relatively easy to follow and emulate down the stack. There is a bit of work to argue for the correct Locator and Formatter of the scale, but there must be examples out there. |
Hi ! |
See the discussion at #10234, #7294 (comment), #12665 regarding PowerNorm's semantics, though. |
Hi @jklymak, Could you tell me more about where should I start, which files are involved in here ? |
|
Hi @jklymak could you explain me what this line does please ? @_make_norm_from_scale(functools.partial(scale.LogScale, nonpositive="mask")) |
It makes the norm! Note I actually don't know why @anntzer used |
I don't really remember, bu I guess that may be because using the |
Ok I understand, thank you. How should we define it ? @jklymak, you said that there must be an example out here. |
Again, trace what happens with LogScale... |
Hi @jklymak, I started the implementation in the
|
If I add this line : @_make_norm_from_scale(
scale.PowerScale,
init=lambda gamma, vmin=None, vmax=None, clip=False: None) just before the |
We have a
PowerNorm
. We should define aPowerScale
derived from aPowerTransform
consistent with the log norm, etc. This will allow a proper scale for PowerNorm. I'm not exactly sure what such a scale should look like (i.e. where to put the ticks), but its probably not a linear scale.The text was updated successfully, but these errors were encountered: