Merge pull request #1096 from fedxa/fix_logscale

Fix for wrong setting of logscale for values below 1e-16
This commit is contained in:
Michael Krabbe Borregaard 2017-09-20 07:46:16 +02:00 committed by GitHub
commit b777a2d3c8

View File

@ -903,7 +903,7 @@ function py_set_scale(ax, axis::Axis)
elseif scale == :log10 elseif scale == :log10
10 10
end end
kw[Symbol(:linthresh,letter)] = NaNMath.max(1e-16, py_compute_axis_minval(axis)) kw[Symbol(:linthresh,letter)] = NaNMath.min(1e-16, py_compute_axis_minval(axis))
"symlog" "symlog"
end end
func(arg; kw...) func(arg; kw...)