This is a follow-up on this question. With pgfplotstable, I would like to create a style to highlight an entire row and/or column. Zarko's answer at the linked question shows how to bolden an entire row. It seemed pretty straightforward to extend that approach to an entire column... except that if I bolden rows and columns, the intersecting cells are "un-bolden". Help.
MWE:
\documentclass{standalone}
\usepackage{pgfplotstable}
\pgfplotsset{compat=1.16}
\begin{filecontents*}{data.dat}
A, B, C
0.10, 1000, 1
0.20, 2000, 2
0.30, 3000, 3
\end{filecontents*}
\pgfplotstableread[col sep=comma]{data.dat}\mytable
% Highlight entire row
\pgfplotstableset{%
highlightrow/.style={
postproc cell content/.append code={
\count0=\pgfplotstablerow
\advance\count0 by1
\ifnum\count0=#1
\pgfkeysalso{@cell content/.add={$\bf}{$}}%
\fi
},
},
}
% Highlight entire column
\pgfplotstableset{%
highlightcol/.style={
postproc cell content/.append code={
\count0=\pgfplotstablecol
\advance\count0 by1
\ifnum\count0=#1
\pgfkeysalso{@cell content/.add={$\bf}{$}}%
\fi
},
},
}
\begin{document}
\pgfplotstabletypeset[
columns/1/.style = {string type, column type = {l}},
highlightrow = {2},
highlightcol = {2},
]\mytable
\end{document}

