Skip to content

Commit c6b96b7

Browse files
authored
add logo (#24)
1 parent 547e844 commit c6b96b7

File tree

7 files changed

+39
-9
lines changed

7 files changed

+39
-9
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
|[![Licese: MIT][license-img]][license-url]|[![Coverage][cov-img]][cov-url]|[![Dev docs][dev-img]][dev-url]|[![SciML Code Style][style-img]][style-url]|
77
|[![downloads][download-img]][download-url]|[![pkgeval-img]][pkgeval-url]||[![gitter-chat][chat-img]][chat-url]|
88

9-
A Julia library for fuzzy inference.
9+
<p align="center">
10+
<img src="./docs/src/assets/logo.svg"/>
11+
</p>
12+
13+
A Julia library for fuzzy logic and applications.
1014

1115
## Installation
1216

@@ -73,7 +77,7 @@ Contributions are welcome! If you find a bug or want to request a feature, [open
7377

7478
## Copyright
7579

76-
- Copyright (c) 2022 [Luca Ferranti](https://github.com/lucaferranti)
80+
- Copyright (c) 2022 [Luca Ferranti](https://github.com/lucaferranti), released under MIT license.
7781

7882
[ver-img]: https://juliahub.com/docs/FuzzyLogic/version.svg
7983
[ver-url]: https://github.com/lucaferranti/FuzzyLogic.jl/releases/latest

docs/make.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ makedocs(;
146146
sitename = "FuzzyLogic.jl",
147147
doctest = false, checkdocs = :exports, strict = true,
148148
format = Documenter.HTML(;
149-
assets = [DocThemeIndigo.install(FuzzyLogic)],
149+
assets = [
150+
DocThemeIndigo.install(FuzzyLogic),
151+
"assets/favicon.ico",
152+
],
150153
prettyurls = IS_CI, collapselevel = 1,
151154
canonical = "https://lucaferranti.github.io/FuzzyLogic.jl"),
152155
pages = [

docs/src/assets/favicon.ico

161 KB
Binary file not shown.

docs/src/assets/logo.svg

Lines changed: 20 additions & 0 deletions
Loading

docs/src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
|[![Licese: MIT](https://img.shields.io/badge/license-MIT-yellow.svg)](https://github.com/lucaferranti/FuzzyLogic.jl/blob/main/LICENSE)|[![Coverage](https://codecov.io/gh/lucaferranti/FuzzyLogic.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/lucaferranti/FuzzyLogic.jl)|[![Dev docs](https://img.shields.io/badge/docs-dev-blue.svg)](https://lucaferranti.github.io/FuzzyLogic.jl/dev/)|[![SciML Code Style](https://img.shields.io/static/v1?label=code%20style&message=SciML&color=9558b2&labelColor=389826)](https://github.com/SciML/SciMLStyle)|
77
|[![downloads](https://shields.io/endpoint?url=https://pkgs.genieframework.com/api/v1/badge/FuzzyLogic&label=downloads)](https://pkgs.genieframework.com/?packages=FuzzyLogic)|[![PkgEval](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/F/FuzzyLogic.svg)](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/F/FuzzyLogic.html)||[![gitter-chat](https://badges.gitter.im/badge.svg)](https://app.gitter.im/#/room/#FuzzyLogic-jl:gitter.im)|
88

9-
A Julia library for fuzzy inference.
9+
A Julia library for fuzzy logic and applications.
1010

1111
## Installation
1212

@@ -64,4 +64,4 @@ fis(service=1, food=2)
6464

6565
## Copyright
6666

67-
- Copyright (c) 2022 [Luca Ferranti](https://github.com/lucaferranti)
67+
- Copyright (c) 2022 [Luca Ferranti](https://github.com/lucaferranti), released under MIT license.

src/plotting.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ end
88

99
@recipe function f(mf::Type2MF, low::Real, high::Real)
1010
legend --> nothing
11-
fillrange := x -> mf.hi(x)
12-
fillalpha --> 0.25
13-
x -> mf.lo(x), low, high
11+
@series begin
12+
fillrange := x -> mf.hi(x)
13+
fillalpha --> 1.0
14+
linealpha --> 0
15+
x -> mf.lo(x), low, high
16+
end
1417
end
1518

1619
@recipe f(mf::AbstractPredicate, dom::Domain) = mf, low(dom), high(dom)

test/test_plotting.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@ end
116116
mf = 0.5 * TriangularMF(1, 2, 3) .. TriangularMF(0, 2, 4)
117117
plt = RecipesBase.apply_recipe(Dict{Symbol, Any}(), mf, 0, 4) |> only
118118
@test plt.args[1](0.0) == mf.lo(0.0)
119-
@test keys(plt.plotattributes) == Set([:fillrange, :legend, :fillalpha])
119+
@test keys(plt.plotattributes) == Set([:fillrange, :legend, :fillalpha, :linealpha])
120120
@test plt.plotattributes[:fillrange](0.0) == mf.hi(0.0)
121121
end

0 commit comments

Comments
 (0)