0

I'm using the Tikz package to create a series of plots directly in my main .tex file. I opted for this method because the labels match perfectly the font and size of my main file even if I scale or not the plot. Now I encountered a common problem that is the one related to the TeX capacity exceeded. The suggestion to overcome this problem seems to be to externalize the plots. About that I have two problems

  1. If I create the plot outside my main .tex file, will the font and size of the labels be math with the main .tex file even if I scale the figure?
  2. If yes, can someone describe the procedure to follow? I searched on other threads but I didn't fully understand the procedure. To write my .tex files I use TexMaker.
10
  • You should have very big diagram to have a TeX capacity exceeded. The TikZ manual can be compiled in one go... The more probable problem is a bug somewhere in your diagram. The faster approach is to try to use tikzexternalize library, which is automatic (see TikZ manual around page 666)
    – Rmano
    Mar 7, 2021 at 11:39
  • Hello Rmano, thank you for your reply. The problem is that I have many plots (around 16). I could reduce the number of points for each graph but I'm afraid it could lead to lower quality of the plots.
    – Fly
    Mar 7, 2021 at 11:43
  • 2
    The other option is using a standalone class file manually (this is handy too), be sure to use the same fonts of your main file, and do not scale the generated .pdf when you load it via \includegraphics.
    – Rmano
    Mar 7, 2021 at 11:43
  • 1
    in the pgfplots manual there are hundreds of plots. Are you sure you are not overdoing with point density? Over a certain number is even bad for the plot: tex.stackexchange.com/a/318524/38080
    – Rmano
    Mar 7, 2021 at 11:47
  • 1
    If printed/viewed 20cm wide, 13000 points mean one point every 15 μm. ;-)
    – Rmano
    Mar 7, 2021 at 11:54

0

You must log in to answer this question.

Browse other questions tagged .