A Tikz picture has four nodes and each node has a new tikz picture, an inheritance problem coming. I have four Tikz pictures where each is inside a node and each node has size of 4cm times 4cm (square) but this size is inherited to other nodes where node size only ~1mm as shown in Bad Demo below with big black circles. So
How can I overwrite Tikz node settings in the inner nodes?
Bad Demo Four tikz pictures jammed together bad
Four tikz pictures with larger node but node style inherited, how to overwrite it?
where my goal is to have each node of size 4cm and each single tikz picture inside each node -- by this I try to make my tikz pictures more accessible and visually pleasing.
MWE
\documentclass[english]{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\nodeminimum size=4cm[label=(a) $x_1+x_2$]{
\begin{tikzpicture}[x=2cm, y=2cm]
\coordinate [label=$x_1$] (1) at (0,0);
\coordinate [label=$x_2$] (2) at (1,0);
\node[draw=none,circle,inner sep=1pt,fill=black] (11) at (1){};
\node[circle,inner sep=1pt,fill=black] (22) at (2){};
\end{tikzpicture}
};
\node(q2)[right =of q1,label=(b) $x_1+x_1x_2+x_2x_3$]{
\begin{tikzpicture}[x=2cm, y=2cm]
\coordinate [label=$x_1$] (1) at (0,0);
\coordinate [label=$x_1x_2$] (2) at (1,0);
\coordinate [label=$x_2x_3$] (3) at (2,0);
\draw (1)--(2)--(3);
\node [circle,fill=black,inner sep=1pt] (11) at (1){};
\node [circle,fill=black,inner sep=1pt] (22) at (2){};
\node [circle,fill=black,inner sep=1pt] (33) at (3){};
\end{tikzpicture}
};
\node(q3)[below =of q1,label=(c) $x_1x_2x_3+x_1+x_2+x_3$]{
\begin{tikzpicture}[x=2cm, y=2cm]
\coordinate [label=left:$x_1$] (1) at (0,0);
\coordinate [label=right:$x_2$] (2) at (2,0);
\coordinate [label=below:$x_3$] (3) at (1,-2);
\coordinate [label=right:$x_1x_2x_3$] (123) at (1,-1);
\draw (1)--(123)--(2);
\draw (3)--(123);
\end{tikzpicture}
};
\node(q4)[right =of q3,label=(d) $x_1x_2x_3+x_1x_2+x_2x_3+x_2x_3$]{
\begin{tikzpicture}[x=2cm, y=2cm]
\coordinate [label=left:$x_1$] (1) at (0,0);
\coordinate [label=right:$x_2$] (2) at (2,0);
\coordinate [label=below:$x_3$] (3) at (1,-2);
\coordinate [label=right:$x_1x_2x_3$] (123) at (1,-0.8);
\draw (1)--(123)--(2)--(1);
\draw (3)--(123);
\draw (1)--(3);
\draw (3)--(2);
\end{tikzpicture}
};
\end{tikzpicture}
\end{document}
where [minimum size=4cm] creates the two big circles, its removal returns the jammed pictures in the beginning.
Trials
Trial 1: scope is suggested to avoid the overwriting but
LaTeX Error: Environment scope is undefined, why?



subfigures or something rather than putting the captions within the pictures. – cfr Jun 11 '16 at 03:14Don't use a scope inside a node but shift the scope to the node.? What does the latter mean? Trial 1 demonstrate the former, not suggested, how to overcome this? – hhh Jun 11 '16 at 20:48\begin{scope}[shift={(x,y)}] \node etc. \end{scope}, not\node at (x,y) {\begin{scope} this doesn't work \end{scope}};– Torbjørn T. Jun 12 '16 at 07:02