/
jpfigurengcommands.sty
111 lines (85 loc) · 3.46 KB
/
jpfigurengcommands.sty
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{jpfigurengcommands}[2015/05/04 v0.1 Joel Purra, figure next generation commands]
\RequirePackage{pgfplotstable}
\RequirePackage{kvoptions}
\SetupKeyvalOptions{%
family=JPFCNG,
prefix=JPFCNG@,
}
\DeclareStringOption{pfx}
\ProcessKeyvalOptions*
\PassOptionsToPackage{pfx=\JPFCNG@pfx}{jpfigurecommands}
\RequirePackage{jpfigurecommands}
\pgfplotsset{compat=1.12}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pgfplotsset{
allDatasetsScatter/.style=
{
scatter,
only marks,
scatter src=explicit symbolic,
fill opacity=0.9,
ymin=0,
ymax=1,
ytick={0,.2,.4,.6,.8,1},
minor ytick={.1,.3,.5,.7,.9},
yminorgrids=true,
ymajorgrids=true,
xtick={0,.2,.4,.6,.8,1},
minor xtick={.1,.3,.5,.7,.9},
xminorgrids=true,
xmajorgrids=true,
},
allDatasetsScatterFullPage/.style=
{
width=1.47\textwidth,
height=.65\textwidth,
font=\small,
legend columns=1,
legend style={at={(1.05,0.5)},anchor=west,cells={anchor=west},}
},
allDatasetsScatterMiniResults/.style=
{
enlarge y limits={abs=4pt},
enlarge x limits={abs=4pt},
width=.35\textwidth,
height=.35\textwidth,
font=\tiny,
legend columns=1,
legend style={at={(1.05,0.5)},anchor=west,cells={anchor=west},},
title style={at={(.5,.95)}},
xticklabel style={
/pgf/number format/fixed,
/pgf/number format/fixed zerofill=false,
/pgf/number format/precision=1
},
yticklabel style={
/pgf/number format/fixed,
/pgf/number format/fixed zerofill=false,
/pgf/number format/precision=1
},
},
}
\newcommand{\addScatterTableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedHttpHttpsWww}[3]{
\scatterTableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedHttpHttpsWww{#1}{\tempScatterTable}{#2}{#3}
\addplot[]
table[x=http-www,y=https-www,meta=Category]
\tempScatterTable;
\addlegendentry{#1}
}
\newcommand{\addDefaultScatterTableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedHttpHttpsWww}[2]{
\addScatterTableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedHttpHttpsWww{Any}{#1}{#2}
\addScatterTableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedHttpHttpsWww{Disconnect}{#1}{#2}
\addScatterTableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedHttpHttpsWww{Content}{#1}{#2}
\addScatterTableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedHttpHttpsWww{Advertising}{#1}{#2}
\addScatterTableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedHttpHttpsWww{Analytics}{#1}{#2}
\addScatterTableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedHttpHttpsWww{Social}{#1}{#2}
}
\newcommand{\addDefaultScatterTableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedSwedenHttpHttpsWww}[0]{
\addDefaultScatterTableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedHttpHttpsWww{\tableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedSwedenHttpWww}{\tableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedSwedenHttpsWww}
}
\newcommand{\addDefaultScatterTableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedGlobalHttpHttpsWww}[0]{
\addDefaultScatterTableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedHttpHttpsWww{\tableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedGlobalHttpWww}{\tableDatasetsNonFailedDisconnectCategoriesCoverageExternalSortedGlobalHttpsWww}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput