You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SymLogNorm: two humps, one negative and one positive, The positive with 5-times the amplitude. Linearly, you cannot see detail in the negative hump. Here we logarithmically scale the positive and negative data separately.
The equation Z = 5 * np.exp(-X**2 - Y**2) describes a simple Gaussian bell curve in two dimensions. There's no second hump.
There are no negative data. A Gaussian is always positive.
Custom Norm: An example with a customized normalization. This one uses the example above, and normalizes the negative data differently from the positive.
The equation is not the same as the previous one! This one does have the two humps promised above, but they have the same amplitude.
The negative and positive data are normalized symmetrically. The top and bottom plots look almost the same.
Suggested improvement
It's a gallery example, so you can do whatever you want, just please make it consistent.
The text was updated successfully, but these errors were encountered:
I think a function like 5*np.exp(-X**2 - Y**2) - np.exp(-(X-1)**2 - (Y-1)**2) ought to satisfy the descriptions for both cases. I'll let the experts in the room verify that the colormap normalizations work as advertised.
Documentation Link
https://matplotlib.org/stable/gallery/images_contours_and_fields/colormap_normalizations.html#sphx-glr-gallery-images-contours-and-fields-colormap-normalizations-py
Problem
Z = 5 * np.exp(-X**2 - Y**2)
describes a simple Gaussian bell curve in two dimensions. There's no second hump.Suggested improvement
It's a gallery example, so you can do whatever you want, just please make it consistent.
The text was updated successfully, but these errors were encountered: