Background story:
I have to compile my LaTeX document with the -shell-escape command line option because the pgfplots library I am using calls gnuplot. This was necessary to get a plot of a recursive function requiring double precision fpu.
Problem:
When I hit C-c C-C or C-c C-f in emacs (GNU Emacs 26.3) the document is compiled using pdflatex \\nonstopmode\\input mydoc.tex but the plot in the PDF output document stays empty, because of some restrictions. When I compile manually using pdflatex -shell-escape \\nonstopmode\\input mydoc.tex everything works just fine.
Failed attempts:
I have set tex-start-options variable in the 'tex run group' to "-shell-escape", but it did not appear in the tex-shell.
Update:
Meanwhile I have installed AUCTeX as suggested. I am still curious to find out how the issue can be solved without it.
tex-start-options, but that should work.latex-run-command? I think I've found a bug.