add new test

This commit is contained in:
Daniel Schwabeneder 2020-03-29 16:25:23 +02:00
parent 076de033fd
commit a5b6c27bec
2 changed files with 31 additions and 0 deletions

View File

@ -889,6 +889,36 @@ const _examples = PlotExample[
end,
],
),
PlotExample(
"Setting defaults and font arguments",
"",
[
quote
begin
using Plots, LaTeXStrings
default(
titlefont = (20, "times"),
legendfontsize = 18,
guidefont = (18, :darkgreen),
tickfont = (12, :orange),
guide = L"x",
framestyle = :zerolines,
yminorgrid = true
)
plot(
[sin, cos],
-2π,
2π,
label = [L"sin(\theta)" L"cos(\theta)"],
title = "Trigonometric Functions",
xlabel = L"\theta",
linewidth = 2,
legend = :outertopleft,
)
end
end,
],
),
]
# Some constants for PlotDocs and PlotReferenceImages

View File

@ -8,6 +8,7 @@ using Gtk
using LibGit2
using GeometryTypes
using Dates
using LaTeXStrings
include("test_hdf5plots.jl")
include("test_pgfplotsx.jl")