From df13011bd3b14fb1445cb7e2dfb605d4838ae41f Mon Sep 17 00:00:00 2001 From: Zh Date: Tue, 21 Apr 2020 01:33:52 +0900 Subject: [PATCH] Tick marks now scale properly with thickness_scaling --- src/backends/pyplot.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 3a8a1e00..fa1b3116 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -1101,7 +1101,10 @@ function _before_layout_calcs(plt::Plot{PyPlotBackend}) ticks[2][ticks[1] .== 0] .= "" end axis[:ticks] != :native ? py_set_ticks(ax, ticks, letter) : nothing - pyaxis."set_tick_params"(direction = axis[:tick_direction] == :out ? "out" : "in") + + intensity = 0.5 # This value corresponds to scaling of other grid elements + pyaxis."set_tick_params"(direction = axis[:tick_direction] == :out ? "out" : "in", width=py_thickness_scale(plt, intensity)) + getproperty(ax, Symbol("set_", letter, "label"))(axis[:guide]) if get(axis.plotattributes, :flip, false) getproperty(ax, Symbol("invert_", letter, "axis"))()