-
Notifications
You must be signed in to change notification settings - Fork 0
/
pgf-settings.tex
57 lines (48 loc) · 1.95 KB
/
pgf-settings.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
% inspiration: https://github.com/tensorflow/tensorflow/issues/9024
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\definecolor{tb_color_1}{RGB}{31, 119, 180}
\definecolor{tb_color_2}{RGB}{255, 127, 14}
\definecolor{tb_color_3}{RGB}{44, 160, 44}
\definecolor{tb_color_4}{RGB}{214, 39, 40}
\definecolor{tb_color_5}{RGB}{148, 103, 189}
\definecolor{tb_color_6}{RGB}{140, 86, 75}
%more colors from http://tableaufriction.blogspot.ro/2012/11/finally-you-can-use-tableau-data-colors.html
%[(31, 119, 180), (174, 199, 232), (255, 127, 14), (255, 187, 120),
%(44, 160, 44), (152, 223, 138), (214, 39, 40), (255, 152, 150),
%(148, 103, 189), (197, 176, 213), (140, 86, 75), (196, 156, 148),
%(227, 119, 194), (247, 182, 210), (127, 127, 127), (199, 199, 199),
%(188, 189, 34), (219, 219, 141), (23, 190, 207), (158, 218, 229)]
\pgfplotscreateplotcyclelist{tb}{
semithick,tb_color_1\\%
semithick,tb_color_2\\%
semithick,tb_color_3\\%
semithick,tb_color_4\\%
semithick,tb_color_5\\%
semithick,tb_color_6\\%
}
\pgfplotsset{accuracy/.style={
cycle list name=tb,
grid=both,
grid style={solid,gray!30!white},
axis lines=middle,
xlabel={epoch},
ylabel={\text{dokładność}},
x label style={at={(axis description cs:0.5,-0.1)},anchor=north},
y label style={at={(axis description cs:-0.12,.5)},rotate=90,anchor=south},
legend pos=south east ,legend cell align={left},
}}
\pgfplotsset{amdahl/.style={
cycle list name=tb,
grid=both,
grid style={solid,gray!30!white},
axis lines=middle,
xlabel={Rdzenie procesora},
ylabel={\text{Przyspieszenie}},
x label style={at={(axis description cs:0.5,-0.1)},anchor=north},
y label style={at={(axis description cs:-0.12,.5)},rotate=90,anchor=south},
legend pos=south east ,legend cell align={left},
log basis x=2
}}
\newcommand{\accplot}[1] {\addplot table [x=Step, y=Value, col sep=comma] {#1}; }
\newcommand{\amdahlplot}[1] {\addplot table [x=Rdzenie procesora, y=Przyspieszenie, col sep=comma] {#1}; }