Consider all ticks = false aliases in backends.
This commit is contained in:
parent
06466b060f
commit
94863d69b1
@ -649,7 +649,7 @@ function _update_min_padding!(sp::Subplot{GRBackend})
|
|||||||
end
|
end
|
||||||
# Add margin for x and y ticks
|
# Add margin for x and y ticks
|
||||||
xticks, yticks = axis_drawing_info(sp)[1:2]
|
xticks, yticks = axis_drawing_info(sp)[1:2]
|
||||||
if !(xticks in (nothing, false))
|
if !(xticks in (nothing, false, :none))
|
||||||
flip, mirror = gr_set_xticks_font(sp)
|
flip, mirror = gr_set_xticks_font(sp)
|
||||||
l = gr_get_ticks_size(xticks, 2)
|
l = gr_get_ticks_size(xticks, 2)
|
||||||
if mirror
|
if mirror
|
||||||
@ -658,7 +658,7 @@ function _update_min_padding!(sp::Subplot{GRBackend})
|
|||||||
bottompad += 1mm + gr_plot_size[2] * l * px
|
bottompad += 1mm + gr_plot_size[2] * l * px
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if !(yticks in (nothing, false))
|
if !(yticks in (nothing, false, :none))
|
||||||
flip, mirror = gr_set_yticks_font(sp)
|
flip, mirror = gr_set_yticks_font(sp)
|
||||||
l = gr_get_ticks_size(yticks, 1)
|
l = gr_get_ticks_size(yticks, 1)
|
||||||
if mirror
|
if mirror
|
||||||
|
|||||||
@ -295,7 +295,7 @@ function pgf_axis(sp::Subplot, letter)
|
|||||||
end
|
end
|
||||||
|
|
||||||
# ticks on or off
|
# ticks on or off
|
||||||
if axis[:ticks] in (nothing, false) || framestyle == :none
|
if axis[:ticks] in (nothing, false, :none) || framestyle == :none
|
||||||
push!(style, "$(letter)majorticks=false")
|
push!(style, "$(letter)majorticks=false")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -260,7 +260,7 @@ function plotly_axis(axis::Axis, sp::Subplot)
|
|||||||
lims = axis_limits(axis)
|
lims = axis_limits(axis)
|
||||||
ax[:range] = map(scalefunc(axis[:scale]), lims)
|
ax[:range] = map(scalefunc(axis[:scale]), lims)
|
||||||
|
|
||||||
if !(axis[:ticks] in (nothing, :none))
|
if !(axis[:ticks] in (nothing, :none, false))
|
||||||
ax[:titlefont] = plotly_font(guidefont(axis))
|
ax[:titlefont] = plotly_font(guidefont(axis))
|
||||||
ax[:type] = plotly_scale(axis[:scale])
|
ax[:type] = plotly_scale(axis[:scale])
|
||||||
ax[:tickfont] = plotly_font(tickfont(axis))
|
ax[:tickfont] = plotly_font(tickfont(axis))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user