What I want to achieve is [to] draw a line (with no markers) but still leave […] spaces where data are not available. How can I do that? Since version 1.5, pgfplots provides that functionality. In the input file, leave an empty line for every gap. You might need to set the option compat=1.5 (or a ...