[Tex/LaTex] fit nodes inside part of multipart shape (TikZ)

fittikz-pgf

Is it possible to use the fit library to fit nodes only inside the the second half?

MWE:

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{shapes.multipart, fit}

\begin{document}
    \begin{tikzpicture}[thick,
        dot/.style={fill=blue,circle,minimum size=3pt}]


        \node[dot] (a) at (1,1) {};
        \node[dot] (b) at (2,2) {};
        \node[dot] (c) at (1,2) {};

        \node[draw, rectangle split, 
            rectangle split parts=2,fit=(a) (b) (c)]
            {points: \nodepart{second}};

    \end{tikzpicture}
\end{document}

Result

result

Hoping for

what I'm looking for

Best Answer

An alternative remains using fit library. The first fit simply includes nodes (a),(b),(c) and does not draw the frame. The second fit, with draw, then encompasses text and (a),(b),(c)

enter image description here

Code

\documentclass[border=10pt]{standalone}

\usepackage{tikz}
\usetikzlibrary{shapes.multipart, fit}

\begin{document}
    \begin{tikzpicture}[thick,
        dot/.style={fill=blue,circle,minimum size=3pt}]
        \node[dot] (a) at (1,1) {};
        \node[dot] (b) at (2,2) {};
        \node[dot] (c) at (1,2) {};
        \node[fit=(a) (b) (c), inner sep=0.2cm] (d) {};
        \draw (d.north west) -- (d.north east);
        \node[anchor=south, at=(d.north) ] (e) {Points:};                  
        \node[draw, fit=(a) (b) (c) (e), inner sep=0.2cm, rectangle, rounded corners]{};
\end{tikzpicture}
\end{document}