Skip to content

Instantly share code, notes, and snippets.

@alstat alstat/pca2.tex
Created Dec 25, 2014

Embed
What would you like to do?
\documentclass{article}
\usepackage{tikz, pgfplots}
\usetikzlibrary{calc}
\usepackage{color}
\definecolor{darkgreen}{RGB}{0,100,0}
\begin{document}
\centering
\begin{tikzpicture}
\coordinate (L1Start) at (-4, -6);
\coordinate (L1End) at (5, -6);
\coordinate (L2Start) at (4.5, -6.5);
\coordinate (L2End) at (4.5, 5);
\draw [black] (L1Start) -- (L1End) node at (-3.75,-5.75) {$L_1$};
\draw [black] (L2Start) -- (L2End) node at (4.80, 4.75) {$L_2$};
\draw (4.5, -6) rectangle (4.3, -5.8);
\filldraw [red] (-0.34826757, -4.0527526) circle (2pt);
\filldraw [red] (-0.85459484, 0.7761212) circle (2pt);
\filldraw [red] ( 1.84872215, 1.7949804) circle (2pt);
\filldraw [red] (-0.81885195, 1.3454689) circle (2pt);
\filldraw [red] ( 0.42961810, 0.5490413) circle (2pt);
\filldraw [red] ( 1.22173885, -2.2015040) circle (2pt);
\filldraw [red] (-1.68307894, 0.3194416) circle (2pt);
\filldraw [red] ( 0.69837056, -5.3255251) circle (2pt);
\filldraw [red] ( 0.38779379, -0.9372008) circle (2pt);
\filldraw [red] ( 0.38946525, 3.5012102) circle (2pt);
\filldraw [red] (-0.15185538, -1.6447412) circle (2pt);
\filldraw [red] (-0.40281440, 4.0115350) circle (2pt);
\filldraw [red] ( 0.78433887, -1.6253683) circle (2pt);
\filldraw [red] ( 0.67777375, 4.2216261) circle (2pt);
\filldraw [red] (-0.07124555, -5.1289263) circle (2pt);
\draw[dashed, blue] (-0.34826757, -4.0527526) -- (-0.34826757, -6);
\draw[dashed, blue] (-0.85459484, 0.7761212) -- (-0.85459484, -6);
\draw[dashed, blue] ( 1.84872215, 1.7949804) -- ( 1.84872215, -6);
\draw[dashed, blue] (-0.81885195, 1.3454689) -- (-0.81885195, -6);
\draw[dashed, blue] ( 0.42961810, 0.5490413) -- ( 0.42961810, -6);
\draw[dashed, blue] ( 1.22173885, -2.2015040) -- ( 1.22173885, -6);
\draw[dashed, blue] (-1.68307894, 0.3194416) -- (-1.68307894, -6);
\draw[dashed, blue] ( 0.69837056, -5.3255251) -- ( 0.69837056, -6);
\draw[dashed, blue] ( 0.38779379, -0.9372008) -- ( 0.38779379, -6);
\draw[dashed, blue] ( 0.38946525, 3.5012102) -- ( 0.38946525, -6);
\draw[dashed, blue] (-0.15185538, -1.6447412) -- (-0.15185538, -6);
\draw[dashed, blue] (-0.40281440, 4.0115350) -- (-0.40281440, -6);
\draw[dashed, blue] ( 0.78433887, -1.6253683) -- ( 0.78433887, -6);
\draw[dashed, blue] ( 0.67777375, 4.2216261) -- ( 0.67777375, -6);
\draw[dashed, blue] (-0.07124555, -5.1289263) -- (-0.07124555, -6);
\draw[dashed, color = darkgreen] (-0.34826757, -4.0527526) -- (4.5, -4.0527526);
\draw[dashed, color = darkgreen] (-0.85459484, 0.7761212) -- (4.5, 0.7761212);
\draw[dashed, color = darkgreen] ( 1.84872215, 1.7949804) -- (4.5, 1.7949804);
\draw[dashed, color = darkgreen] (-0.81885195, 1.3454689) -- (4.5, 1.3454689);
\draw[dashed, color = darkgreen] ( 0.42961810, 0.5490413) -- (4.5, 0.5490413);
\draw[dashed, color = darkgreen] ( 1.22173885, -2.2015040) -- (4.5, -2.2015040);
\draw[dashed, color = darkgreen] (-1.68307894, 0.3194416) -- (4.5, 0.3194416);
\draw[dashed, color = darkgreen] ( 0.69837056, -5.3255251) -- (4.5, -5.3255251);
\draw[dashed, color = darkgreen] ( 0.38779379, -0.9372008) -- (4.5, -0.9372008);
\draw[dashed, color = darkgreen] ( 0.38946525, 3.5012102) -- (4.5, 3.5012102);
\draw[dashed, color = darkgreen] (-0.15185538, -1.6447412) -- (4.5, -1.6447412);
\draw[dashed, color = darkgreen] (-0.40281440, 4.0115350) -- (4.5, 4.0115350);
\draw[dashed, color = darkgreen] ( 0.78433887, -1.6253683) -- (4.5, -1.6253683);
\draw[dashed, color = darkgreen] ( 0.67777375, 4.2216261) -- (4.5, 4.2216261);
\draw[dashed, color = darkgreen] (-0.07124555, -5.1289263) -- (4.5, -5.1289263);
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.