@@ -35,7 +35,7 @@ def rbf(x, y):
3535
3636shadeopts = {'cmap' : 'PRGn' , 'shading' : 'gouraud' }
3737colormap = 'PRGn'
38- lnrwidth = 0.2
38+ lnrwidth = 0.5
3939
4040fig , ax = plt .subplots (2 , 1 , sharex = True , sharey = True )
4141
@@ -60,23 +60,23 @@ def rbf(x, y):
6060# the option of using the `~.colors.AsinhNorm`, which has a smoother
6161# transition between the linear and logarithmic regions of the transformation
6262# applied to the "z" axis.
63- # In the plots below, it may be possible to see ring -like artifacts
64- # in the lower-amplitude, negative, hump shown in purple despite
65- # there being no sharp features in the dataset itself.
66- # The ``asinh`` scaling shows a smoother shading of each hump.
63+ # In the plots below, it may be possible to see contour -like artifacts
64+ # around each hump despite there being no sharp features
65+ # in the dataset itself. The ``asinh`` scaling shows a smoother shading
66+ # of each hump.
6767
6868fig , ax = plt .subplots (2 , 1 , sharex = True , sharey = True )
6969
7070pcm = ax [0 ].pcolormesh (X , Y , Z ,
7171 norm = colors .SymLogNorm (linthresh = lnrwidth , linscale = 1 ,
72- vmin = - 2 , vmax = gain , base = 10 ),
72+ vmin = - gain , vmax = gain , base = 10 ),
7373 ** shadeopts )
7474fig .colorbar (pcm , ax = ax [0 ], extend = 'both' )
7575ax [0 ].text (- 2.5 , 1.5 , 'symlog' )
7676
7777pcm = ax [1 ].pcolormesh (X , Y , Z ,
7878 norm = colors .AsinhNorm (linear_width = lnrwidth ,
79- vmin = - 2 , vmax = gain ),
79+ vmin = - gain , vmax = gain ),
8080 ** shadeopts )
8181fig .colorbar (pcm , ax = ax [1 ], extend = 'both' )
8282ax [1 ].text (- 2.5 , 1.5 , 'asinh' )
0 commit comments