Add memo
This commit is contained in:
parent
f00f1c04d6
commit
35f8e152a3
@ -831,7 +831,7 @@ function py_set_ticks(sp, ax, ticks, letter, env)
|
|||||||
if ticks == :none || ticks === nothing || ticks == false
|
if ticks == :none || ticks === nothing || ticks == false
|
||||||
kw = KW()
|
kw = KW()
|
||||||
for dir in (:top, :bottom, :left, :right)
|
for dir in (:top, :bottom, :left, :right)
|
||||||
kw[dir] = kw[Symbol(:label, dir)] = false
|
kw[dir] = kw[get_axis_attr(:label, dir)] = false
|
||||||
end
|
end
|
||||||
axis."set_tick_params"(; which = "both", kw...)
|
axis."set_tick_params"(; which = "both", kw...)
|
||||||
return
|
return
|
||||||
@ -887,7 +887,7 @@ function py_set_scale(ax, sp::Subplot, scale::Symbol, letter::Symbol)
|
|||||||
arg = if scale == :identity
|
arg = if scale == :identity
|
||||||
"linear"
|
"linear"
|
||||||
else
|
else
|
||||||
kw[Symbol(:base, pyletter)] = if scale == :ln
|
kw[get_axis_attr(:base, pyletter)] = if scale == :ln
|
||||||
ℯ
|
ℯ
|
||||||
elseif scale == :log2
|
elseif scale == :log2
|
||||||
2
|
2
|
||||||
@ -895,7 +895,7 @@ function py_set_scale(ax, sp::Subplot, scale::Symbol, letter::Symbol)
|
|||||||
10
|
10
|
||||||
end
|
end
|
||||||
axis = sp[get_axis_attr(letter, :axis)]
|
axis = sp[get_axis_attr(letter, :axis)]
|
||||||
kw[Symbol(:linthresh, pyletter)] =
|
kw[get_axis_attr(:linthresh, pyletter)] =
|
||||||
NaNMath.max(1e-16, py_compute_axis_minval(sp, axis))
|
NaNMath.max(1e-16, py_compute_axis_minval(sp, axis))
|
||||||
"symlog"
|
"symlog"
|
||||||
end
|
end
|
||||||
@ -1327,7 +1327,7 @@ function _before_layout_calcs(plt::Plot{PyPlotBackend})
|
|||||||
if !ispolar(sp)
|
if !ispolar(sp)
|
||||||
ax.spines[string(dir)].set_visible(false)
|
ax.spines[string(dir)].set_visible(false)
|
||||||
end
|
end
|
||||||
kw[dir] = kw[Symbol(:label, dir)] = false
|
kw[dir] = kw[get_axis_attr(:label, dir)] = false
|
||||||
end
|
end
|
||||||
ax."xaxis"."set_tick_params"(; which = "both", kw...)
|
ax."xaxis"."set_tick_params"(; which = "both", kw...)
|
||||||
end
|
end
|
||||||
@ -1337,7 +1337,7 @@ function _before_layout_calcs(plt::Plot{PyPlotBackend})
|
|||||||
if !ispolar(sp)
|
if !ispolar(sp)
|
||||||
ax.spines[string(dir)].set_visible(false)
|
ax.spines[string(dir)].set_visible(false)
|
||||||
end
|
end
|
||||||
kw[dir] = kw[Symbol(:label, dir)] = false
|
kw[dir] = kw[get_axis_attr(:label, dir)] = false
|
||||||
end
|
end
|
||||||
ax."yaxis"."set_tick_params"(; which = "both", kw...)
|
ax."yaxis"."set_tick_params"(; which = "both", kw...)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user