2

I'm wondering if there is a software that can create plots with latex integration like gnuplot. I have used gnuplot to create very nice 2D plots with epslatex terminal and I find it superb, but unfortunately gnuplot doesn't have ternary plot option. OriginPro doesn't have latex integration option, so I exclude it from my list. I want a plotting software that can handle anything with publication quality graphs, because I'm doing my undergraduate thesis, preferable on Linux platform. What about Mathematica, MATLAB, or something else, any suggestions are welcome.

Thanks in advance.

PS Sorry if I posted in wrong section.

3

Mathematica has a package that provides LaTeX integration:

Here's a screenshot of a plot from the section of the documentation which discusses matching styles:

enter image description here

Here's a question from Mathematica.SE about creating ternary plots:

Disclosure: I am the author of MaTeX.

  • So If I understood it right, with MaTex I can have Latex typesetting in Mathematica. Then I can export my graphs and include it in my LaTeX document. If I have the same font in Mathematica and LaTeX, the same size, etc, etc then the graph I made in Mathematica would be "like" I did it in LaTeX itself. Am I right? Thanks for posting though my friend! – Nikos K. Dec 20 '16 at 14:55
  • @NikosK. MaTeX just makes it easy to use LaTeX to typeset formulas within Mathematica. The typical use case is figure labels. You don't need MaTeX to export figures for use with LaTeX. The aim of MaTeX is not to be able to use Computer Modern as the font in Mathematica (although it can be used for that). You can have "LaTeX fonts" by installing Latin Modern fonts for your OS. The primary goal of MaTeX is to give you LaTeX's high-quality math typesetting directly within Mathematica. I was unsatisfied with Mathematica's typesetting. – Szabolcs Dec 22 '16 at 12:24
  • Thanks for clearing out the main purpose of the package! I want to work with mathematica and learn as much as I can for its plotting capabilities. So that will help in order to have nice graphs! – Nikos K. Dec 22 '16 at 15:26
3

Nico Schlömer has created packages to generate pgfplots code from both Matlab and matplotlib plots. I don't know if they handle ternary plots though.

matplotlib also has a pgf backend (see e.g. http://matplotlib.org/users/pgf.html#pgf-tutorial) that will generate low-level (and rather unflexible) pgf code from basically what ever type of plot matplotlib can make.

For a comparison between matplotlib2tikz and the pgf backend, see Matplotlib's PGF vs Matplotlib2Tikz.

0

While matlab is really good, I so far have had the best luck with root from cern. After plotting the data a tex file can be saved directly from the graph, if needed editing font can also be done in the tex file; note it is not an uneditable svg file. The disadvantage is it is very low level programming and it doesn't have a very large support community. It is free software and you can visit the website at https://root.cern.ch/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.