I'm new to LaTeX and this may have been answered somewhere already. But I don't understand why I have to use the command \usetikzlibrary{...}. Why doesn't \usepackage{tikz} give me all the libraries? Are there other packages beside tikz that do a similar thing?
My guess at why it does this is because tikz might be a big library so it doesn't want to load all of it at once? Basically what is the difference between the two?
pgfplotsalso comes with a couple of optional libraries which are loaded with\usetikzlibraryor its shorthand\usepgfplotslibrary. Naturally,pgfplotsitsself can be seen as a huge library on top of tikz. – Christian Feuersänger May 06 '14 at 20:59