Added pgfplots filter 'discard if gt'
This commit is contained in:
parent
cca2ec8e82
commit
8ba7124f62
@ -140,9 +140,10 @@
|
||||
\AtBeginSubsubsection[]{}
|
||||
\AtBeginSubsection[]{}
|
||||
|
||||
|
||||
\pgfplotsset{
|
||||
discard if/.style 2 args={
|
||||
x filter/.code={
|
||||
x filter/.append code={
|
||||
\edef\tempa{\thisrow{#1}}
|
||||
\edef\tempb{#2}
|
||||
\ifx\tempa\tempb
|
||||
@ -151,7 +152,7 @@
|
||||
}
|
||||
},
|
||||
discard if not/.style 2 args={
|
||||
x filter/.code={
|
||||
x filter/.append code={
|
||||
\edef\tempa{\thisrow{#1}}
|
||||
\edef\tempb{#2}
|
||||
\ifx\tempa\tempb
|
||||
@ -159,6 +160,15 @@
|
||||
\def\pgfmathresult{inf}
|
||||
\fi
|
||||
}
|
||||
},
|
||||
discard if gt/.style 2 args={
|
||||
x filter/.append code={
|
||||
\edef\tempa{\thisrow{#1}}
|
||||
\edef\tempb{#2}
|
||||
\ifdim\tempa pt > \tempb pt
|
||||
\def\pgfmathresult{inf}
|
||||
\fi
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user