Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dd7292f

Browse files
committedApr 4, 2019
Smooth PNG atan
1 parent 0cbfac0 commit dd7292f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎docs/atan_sin.PNG

46.1 KB
Loading

‎examples/atan_sin.exs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ defmodule AtanSin do
77

88
def target,
99
do: [
10-
[:set, :term, :png, :size, '512,256', :font, "/Library/Fonts/FiraCode-Medium.ttf", 12],
10+
[:set, :term, :pngcairo, :size, '512,256', :font, "Fira Sans"],
1111
[:set, :output, png()]
1212
]
1313

1414
def commands,
1515
do: [
16+
~w(set style line 1 linecolor rgb '#77216F' lw 1)a,
1617
~w(set autoscale)a,
1718
~w(set samples 800)a,
1819
[
1920
:plot,
2021
-30..20,
21-
'sin(x*20)*atan(x)'
22+
'sin(x*20)*atan(x)',
23+
:ls, 1
2224
]
2325
]
2426

0 commit comments

Comments
 (0)