File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4646# Prepare sample values for variations on y=x graph:
4747x = np .linspace (- 3 , 6 , 500 )
4848
49- ########################################
49+ ###############################################################################
5050# Compare "symlog" and "asinh" behaviour on sample y=x graph,
5151# where there is a discontinuous gradient in "symlog" near y=2:
5252fig1 = plt .figure ()
6363ax1 .set_title ('asinh' )
6464
6565
66- ########################################
66+ ###############################################################################
6767# Compare "asinh" graphs with different scale parameter "linear_width":
6868fig2 = plt .figure (constrained_layout = True )
6969axs = fig2 .subplots (1 , 3 , sharex = True )
7777 ax .legend (loc = 'best' , fontsize = 'small' )
7878
7979
80- ########################################
80+ ###############################################################################
8181# Compare "symlog" and "asinh" scalings
8282# on 2D Cauchy-distributed random numbers,
8383# where one may be able to see more subtle artifacts near y=2
100100
101101plt .show ()
102102
103- ########################################
103+ ###############################################################################
104104#
105105# .. admonition:: References
106106#
Original file line number Diff line number Diff line change 3434fig .tight_layout ()
3535plt .show ()
3636
37- ########################################
37+ ###############################################################################
3838# It should be noted that the coordinate transform used by ``symlog``
3939# has a discontinuous gradient at the transition between its linear
4040# and logarithmic regions. The ``asinh`` axis scale is an alternative
4141# technique that may avoid visual artifacts caused by these disconinuities.
4242
43- ########################################
43+ ###############################################################################
4444#
4545# .. admonition:: References
4646#
You can’t perform that action at this time.
0 commit comments