Tag Archives: TikZ

Plot multiple files using pgfplots

Often, I like to plot multiple versions of some results. For example, I run some simulations for multiple parameters, or test a bunch of different methods. Although it is of course no problem to create different plots for the different results automatically, using for example matplotlib, I usually resort to pgfplots for the final figures. It produces very high quality plots that you can control very well, especially because it uses TikZ in the background. But automating it can sometimes be a bit difficult. Continue reading Plot multiple files using pgfplots


Using ColorBrewer in TikZ and pgfplots

Update: This package is no longer needed, as pgfplots now supports ColorBrewer schemes out of the box. Please see the latest version of pgfplots.

Choosing what colours to use for your plotting purposes is not always straightforward. Although most programs give you reasonable defaults for doing your day-to-day plots, perhaps you’d fancy a bit more style for your plots that will be published. Indeed, I often simply use gnuplot, matplotlib or the native plotting routines in R or matlab for doing my first visualizations. But for publications, I often switch to pgfplots, an excellent package built on top of TikZ which are implemented as LaTeX packages. Continue reading Using ColorBrewer in TikZ and pgfplots