0

I know there are several questions about this in stackoverflow, but the current solution still has some problems.

I am following the solution provided by http://nbviewer.ipython.org/github/dpsanders/matplotlib-examples/blob/master/colorline.ipynb using LineCollection.

Actually it works. But when I save the figure into PDF file. After zooming in, it looks not very good. The size of PDF file is hundreds of times of simply plot without changing color. I understand why it looks like this. Is there any idea to plot the color-line smoother? enter image description here

WZhao
  • 303
  • 4
  • 12
  • Why are you saving to PDF rather than an image file? – Rattle Sep 05 '17 at 13:15
  • Because I want to insert the figure into `latex`. Usually I save the figure in `PDF` format. – WZhao Sep 05 '17 at 13:17
  • Check https://stackoverflow.com/questions/16183462/saving-images-in-python-at-a-very-high-quality – Rattle Sep 05 '17 at 13:49
  • Since this problem probably requires to do some testing, you should provide a [mcve] of the issue, including the code to draw one such linecollection and a clear statement at which zoom level tzhis occurs – ImportanceOfBeingErnest Sep 05 '17 at 17:27

0 Answers0