Fix error when setting minor ticks

Fix type error when specifying number of minor ticks for PGFPlotsX backend.
This commit is contained in:
Mats 2020-04-10 22:44:31 +02:00 committed by GitHub
parent 70f207f5cc
commit 4a5c82ec7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1123,7 +1123,7 @@ function pgfx_axis!(opt::PGFPlotsX.Options, sp::Subplot, letter)
axis[:minorgridalpha],
axis[:minorgridstyle],
),
"major tick length" => axis[:minorticks] ? "0.1cm" : "0"
"major tick length" => typeof(axis[:minorticks]) <: Integer && axis[:minorticks] > 1 || axis[:minorticks] ? "0.1cm" : "0"
),
)
end