Merge pull request #2561 from mbfstudios/pgfplotsx-fix-minor-ticks

Fix error when setting minor ticks. See #2560
This commit is contained in:
Daniel Schwabeneder 2020-04-10 23:52:16 +02:00 committed by GitHub
commit 1f7773ae4c
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[:minorgridalpha],
axis[:minorgridstyle], 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 end