parent
9f51b96269
commit
d1373d8b89
@ -288,7 +288,7 @@ function font(args...;kw...)
|
|||||||
|
|
||||||
for symbol in keys(kw)
|
for symbol in keys(kw)
|
||||||
if symbol == :family
|
if symbol == :family
|
||||||
family = kw[:family]
|
family = string(kw[:family])
|
||||||
elseif symbol == :pointsize
|
elseif symbol == :pointsize
|
||||||
pointsize = kw[:pointsize]
|
pointsize = kw[:pointsize]
|
||||||
elseif symbol == :halign
|
elseif symbol == :halign
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
using Plots: guidefont
|
||||||
import ImageMagick
|
import ImageMagick
|
||||||
using VisualRegressionTests
|
using VisualRegressionTests
|
||||||
using Plots
|
using Plots
|
||||||
|
|||||||
@ -1,10 +1,12 @@
|
|||||||
using Plots, Test
|
using Plots, Test
|
||||||
|
|
||||||
const PLOTS_DEFAULTS = Dict(:theme => :wong2)
|
const PLOTS_DEFAULTS = Dict(:theme => :wong2, :fontfamily => :palantino)
|
||||||
Plots.__init__()
|
Plots.__init__()
|
||||||
|
|
||||||
@testset "Loading theme" begin
|
@testset "Loading theme" begin
|
||||||
@test plot(1:5)[1][1][:seriescolor] == RGBA(colorant"black")
|
pl = plot(1:5)
|
||||||
|
@test pl[1][1][:seriescolor] == RGBA(colorant"black")
|
||||||
|
@test guidefont(pl[1][:xaxis]).family == "palantino"
|
||||||
end
|
end
|
||||||
|
|
||||||
empty!(PLOTS_DEFAULTS)
|
empty!(PLOTS_DEFAULTS)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user