Also include scaling
This commit is contained in:
parent
df023d6bdb
commit
c01d8199f9
@ -252,7 +252,9 @@ function plotly_axis(axis::Axis, sp::Subplot)
|
|||||||
end
|
end
|
||||||
|
|
||||||
ax[:tickangle] = -axis[:rotation]
|
ax[:tickangle] = -axis[:rotation]
|
||||||
ax[:range] = axis_limits(axis)
|
lims = axis_limits(axis)
|
||||||
|
ax[:range] = map(scalefunc(axis[:scale]), lims)
|
||||||
|
|
||||||
if !(axis[:ticks] in (nothing, :none))
|
if !(axis[:ticks] in (nothing, :none))
|
||||||
ax[:titlefont] = plotly_font(axis[:guidefont], axis[:foreground_color_guide])
|
ax[:titlefont] = plotly_font(axis[:guidefont], axis[:foreground_color_guide])
|
||||||
ax[:type] = plotly_scale(axis[:scale])
|
ax[:type] = plotly_scale(axis[:scale])
|
||||||
@ -261,10 +263,10 @@ function plotly_axis(axis::Axis, sp::Subplot)
|
|||||||
ax[:linecolor] = rgba_string(axis[:foreground_color_axis])
|
ax[:linecolor] = rgba_string(axis[:foreground_color_axis])
|
||||||
|
|
||||||
# lims
|
# lims
|
||||||
lims = axis[:lims]
|
|
||||||
if lims != :auto && limsType(lims) == :limits
|
#if lims != :auto && limsType(lims) == :limits
|
||||||
ax[:range] = map(scalefunc(axis[:scale]), lims)
|
#ax[:range] = map(scalefunc(axis[:scale]), lims)
|
||||||
end
|
#end
|
||||||
|
|
||||||
# flip
|
# flip
|
||||||
if axis[:flip]
|
if axis[:flip]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user