Avoid 0 in limit. So, you are giving ylim = (0, 6.022e23)
and want to apply yaxis = :log10
. These both together are cause of issue because value of ‘log(0)’ is not defined. To solve it, you can rather give ylim = (z, 6.022e23)
where z is some non zeros small value (around lowest value in your data).
Similarly for negative values, it will go in complex space.