From a5b6c27beca81bebba5c626058c65d0cf4040841 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Sun, 29 Mar 2020 16:25:23 +0200 Subject: [PATCH] add new test --- src/examples.jl | 30 ++++++++++++++++++++++++++++++ test/runtests.jl | 1 + 2 files changed, 31 insertions(+) diff --git a/src/examples.jl b/src/examples.jl index f17832a5..5ae70450 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -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 diff --git a/test/runtests.jl b/test/runtests.jl index 9b36f097..e5c74b58 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -8,6 +8,7 @@ using Gtk using LibGit2 using GeometryTypes using Dates +using LaTeXStrings include("test_hdf5plots.jl") include("test_pgfplotsx.jl")