# Exporting PDF file - incorrect graphic [closed]

I export graphics to PDF using:

Export["/path/figure.pdf", plotname]


It gives me more than enough quality for PDFLatex. But somehow, some exported plots have 'extra' lines (it doesn't happen when I export to PNG/JPG for example):

It doesn't happen to all exported plots, and in Mathematica itself, the plot looks correct: no extra lines visible.

The ListPlot is more than just a ListPlot (it uses external data to make five different ListPlots and is then showed in one plot using Show), but the other plots made in the same way are perfectly fine, so I guess it has nothing to do with how the plot has been generated. Sorry I am sich a n00b, I don't know how to add all this code. So again, I have shared it online: [link to notebook code].2

The funny thing is, I have 'built' three of these plots, only the one in the shared code, gives this problem. This plot is the 'middle' plot, i.e., there has been a plot made before, then I clear the counters, and start again.

FYI: You can't run the code, because it needs external data. The external data are many CSV files containing 9 rows of each a text string and a numeric value. I am using Mathematica 9.0.1.0 on Ubuntu 13.04.

Thinking it might be some 'leftover' information, I've tried to clear all parameters/variables, quit the kernel (local), quit Mathematica as a whole. But the problem isn't solved.

I hope someone here knows what might be going on. I prefer not to change all my figures to a different format. If there is a best format for PDFLatex, then of course I will reconsider, at least for the future. But I expect PDF to fit perfectly with PDFLatex...

-

## closed as unclear what you're asking by Jens, rm -rf♦Aug 2 '13 at 2:06

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Could you provide a link to the image here in comments? Then, someone will edit it into the question for you. As it is I don't think I've seen this phenomenon before and have trouble imagining what it looks like. Code to generate the problematic figure would also be very valuable (more or less mandatory, even). –  Oleksandr R. May 2 '13 at 16:13
I'll do my best, it's loads of code, so I'll see if I can get the important part, thanks. The link to the image is the following: ubuntuone.com/0mCXRz5WsEg7gqHUQ9Uf6Y –  Ampi Severe May 2 '13 at 16:48
BTW Welcome to Mathematica.stackexchange.com! –  Sjoerd C. de Vries May 2 '13 at 17:42
Could it be some extra points/lines due to your original data? Maybe they are out of PlotRange in Mathematica, but are shown in PDF? Could you give an example code (including the minimal data) to reproduce this? –  Silvia May 2 '13 at 19:49
Which Mathematica version are you using? There already is one new bug in pdf export introduced in v.9. –  Alexey Popkov May 2 '13 at 20:13