I want to generate a graph grid from several arrays with positive and negative values, with the log scale, using the same color plan.
I got the color sharing part (using ImageGrid values โโand common max and min values), and I know that I can get the logarithmic scale using LogNorm () in the imshow call in case of only positive values. But, given the presence of negative values, I will need a color panel in a symmetric logarithmic scale.
I found that it would be a solution at https://stackoverflow.com/a/3/9/12/12/12/12/12/ , but running the Yann code sample provides me with very different results, pure errors:
Looking at the code, I canโt understand what is happening.
In addition to this, I found that on Matplotlib 1.2 the .SymmetricalLogScale.SymmetricalLogTransform scale requests a new argument not described in the documentation (linscale, which looks at the code of other transformations, I assume leaving it as 1 is a safe value).
Is the easiest solution to subclass LogNorm?
Sergi source share