\begin{tikzpicture}
    \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
    \tkzSetUpLine[line width=1]
    \tkzDefPoints{0/0/O, 1/0/X, 0/1/Y, 2/1/P}
    \tkzDrawLine[add=3 and 2](O,X)
    \tkzLabelLine[below,pos=3](O,X){$g_1$}
    \tkzLabelLine[right,pos=3](O,Y){$g_2$}
    \tkzDrawLine[add=3 and 2](O,Y)

    \tkzLabelPoint(P){$P$}
    \node at ($(-2,2)$){$X$};
    \tkzDrawPoints(P)
\end{tikzpicture}
