So I have a section of code that looks like this
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{verbatim}
\usepackage[margin=1in]{geometry}
\usepackage{hyperref}
\usepackage{booktabs}
\usepackage{xparse}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\label{collecting_the_spectra}
\subsection{}
\label{usb}
If the screen in Figure \ref{4_specs}
\begin{figure}[htp]
\centering
\includegraphics[width=5in]{4_specs.png}
\hspace{1.5in}\parbox{5in}{\caption{All spectrometers.}}
\label{4_specs}
\end{figure}
\end{document}
and should compile if you point 4_specs.png at an actual picture but for some reason it outputs stuff like this

Notice the spots where it says "Figure 0.1". No where else is a label made called 4_specs. Those are the only references broken in the entire paper. Why is LaTeX doing this?

labelneeds to go after yourcaption. It takes a lot to confuseLaTeX:) – cmhughes Nov 07 '13 at 00:41\parbox... Not sure why you do that in the first place. Can you explain? – Werner Nov 07 '13 at 01:00