The reason I ask this is because I was trying to draw multiple lines in pgfplots (I was trying to make a drawing showing how Riemann sums and integrals are connected). And after unsuccessfully trying to use a for loop for an hour or so, I found this solution, which was pretty unsatisfying since it's just a workaround for this particular case. And I thought that it would have been much easier with the power of Python. So, my question is: What do I lose by switching to matplotlib?

  • 5
    Maybe I do not understand your question, but is it not obvious!? -by switching to matplotlib, you loose LaTeX. PGFPlot(in TikZ in LaTeX) is used to create high quality plot outputs. – hpekristiansen Dec 30 '15 at 3:52
  • @Hans-PeterE.Kristiansen Can't I import the resulting plot into LaTeX anyway? – Kitegi Dec 30 '15 at 11:48
  • Of course, but it's not generated by LaTeX. – Torbjørn T. Dec 30 '15 at 14:01
  • 1
    You get everything in one place, you get the same fonts by default. – Torbjørn T. Dec 30 '15 at 14:24
  • 1
    I see this has been closed now. Anyway, just wanted to mention that it is somwhat similar to Why draw diagrams using LaTeX when there are open source tools like OpenOffice?/ – Torbjørn T. Jan 28 '16 at 7:53

Browse other questions tagged or ask your own question.