Skip to content
This repository was archived by the owner on Jul 13, 2021. It is now read-only.

Commit eef34d4

Browse files
authored
Merge pull request #413 from JuliaPlots/as/solid
Allow linestyle = :solid
2 parents 37dca14 + 6a45a80 commit eef34d4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "AbstractPlotting"
22
uuid = "537997a7-5e4e-5d89-9595-2241ea00577e"
3-
version = "0.10.2"
3+
version = "0.10.3"
44

55
[deps]
66
AbstractNumbers = "85c772de-338a-5e7f-b815-41e76c26ac1f"

src/conversions.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,9 @@ convert_attribute(A::AbstractVector, ::key"linestyle") = A
617617
A `Symbol` equal to `:dash`, `:dot`, `:dashdot`, `:dashdotdot`
618618
"""
619619
function convert_attribute(ls::Symbol, ::key"linestyle")
620-
return if ls == :dash
620+
return if ls == :solid
621+
nothing
622+
elseif ls == :dash
621623
[0.0, 1.0, 2.0, 3.0, 4.0]
622624
elseif ls == :dot
623625
tick, gap = 1/2, 1/4
@@ -631,7 +633,7 @@ function convert_attribute(ls::Symbol, ::key"linestyle")
631633
ptick, pgap = 1/2, 1/4
632634
[0.0, dtick, dtick+dgap, dtick+dgap+ptick, dtick+dgap+ptick+pgap, dtick+dgap+ptick+pgap+ptick, dtick+dgap+ptick+pgap+ptick+pgap]
633635
else
634-
error("Unkown line style: $ls. Available: :dash, :dot, :dashdot, :dashdotdot or a sequence of numbers enumerating the next transparent/opaque region")
636+
error("Unkown line style: $ls. Available: :solid, :dash, :dot, :dashdot, :dashdotdot, or a sequence of numbers enumerating the next transparent/opaque region.")
635637
end
636638
end
637639

0 commit comments

Comments
 (0)