diktya.plot.latexify

Create native looking matplotlib plots

Adapted from: http://bkanuka.com/articles/native-latex-plots/

figsize(scale=0.5, ratio='golden', textwidth_pt=390.0)[source]

Returns the figure size as (width, height).

Parameters:
  • scale (float) – Scale of the
  • ratio (float, str) – Ratio from height to width. Default is golden ratio.
  • textwidth_pt (float) – Width of the latex page. Get this with from LaTeX using `` he extwidth``
latexify(rc=None)[source]

Latexify plots

savefig_pgf_pdf(fig, filename)[source]

Saves the figure as {filename}.pgf and {filename}.pgf.