fix scale_func for plotly
This commit is contained in:
parent
c238d42e83
commit
d942660f91
@ -176,7 +176,7 @@ function plotly_axis(plt::Plot, axis::Axis, sp::Subplot)
|
|||||||
lims = axis_limits(sp, letter)
|
lims = axis_limits(sp, letter)
|
||||||
|
|
||||||
if axis[:ticks] != :native || axis[:lims] != :auto
|
if axis[:ticks] != :native || axis[:lims] != :auto
|
||||||
ax[:range] = map(scalefunc(axis[:scale]), lims)
|
ax[:range] = map(RecipesPipeline.scale_func(axis[:scale]), lims)
|
||||||
end
|
end
|
||||||
|
|
||||||
if !(axis[:ticks] in (nothing, :none, false))
|
if !(axis[:ticks] in (nothing, :none, false))
|
||||||
|
|||||||
@ -986,21 +986,26 @@ const _examples = PlotExample[
|
|||||||
]
|
]
|
||||||
|
|
||||||
# Some constants for PlotDocs and PlotReferenceImages
|
# Some constants for PlotDocs and PlotReferenceImages
|
||||||
_animation_examples = [2, 30]
|
_animation_examples = [2, 31]
|
||||||
_backend_skips = Dict(
|
_backend_skips = Dict(
|
||||||
:gr => [25, 30],
|
:gr => [25, 30],
|
||||||
:pyplot => [25, 30],
|
:pyplot => [2, 25, 30, 31],
|
||||||
:plotlyjs => [2, 21, 24, 25, 30, 31],
|
:plotlyjs => [2, 21, 24, 25, 30, 31],
|
||||||
:plotly => [2, 21, 24, 25, 30, 31],
|
:plotly => [2, 21, 24, 25, 30, 31],
|
||||||
:pgfplots => [2, 5, 6, 10, 16, 20, 22, 23, 25, 28, 30, 31, 34, 37, 38, 39],
|
:pgfplots => [2, 5, 6, 10, 16, 20, 22, 23, 25, 28, 30, 31, 34, 37, 38, 39],
|
||||||
:pgfplotsx => [ 6, # images
|
:pgfplotsx => [
|
||||||
10, # histogram2d
|
2, # animation
|
||||||
16, # pgfplots thinks the upper panel is too small
|
6, # images
|
||||||
22, # contourf
|
10, # histogram2d
|
||||||
23, # pie
|
16, # pgfplots thinks the upper panel is too small
|
||||||
32, # spy
|
22, # contourf
|
||||||
38, # histogram2d
|
23, # pie
|
||||||
] )
|
31, # animation
|
||||||
|
32, # spy
|
||||||
|
38, # histogram2d
|
||||||
|
45, # wireframe
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -62,9 +62,9 @@ pyplot()
|
|||||||
image_comparison_facts(:pyplot, tol=img_tol, skip = Plots._backend_skips[:pyplot])
|
image_comparison_facts(:pyplot, tol=img_tol, skip = Plots._backend_skips[:pyplot])
|
||||||
end
|
end
|
||||||
|
|
||||||
pgfplots()
|
pgfplotsx()
|
||||||
@testset "PGFPlots" begin
|
@testset "PGFPlotsX" begin
|
||||||
image_comparison_facts(:pgfplots, tol=img_tol, skip = Plots._backend_skips[:pgfplots])
|
image_comparison_facts(:pgfplotsx, tol=img_tol, skip = Plots._backend_skips[:pgfplotsx])
|
||||||
end
|
end
|
||||||
=#
|
=#
|
||||||
##
|
##
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user