How to use a Mathematica plot saved as a pdf in TexMaker?
When I use:
\includegraphics[width=0.4\textwidth, angle=0]{Graphs.pdf}
EDIT:
The image is really small, how do I fix that?
This is what I get(after stretched) :
How to use a Mathematica plot saved as a pdf in TexMaker?
When I use:
\includegraphics[width=0.4\textwidth, angle=0]{Graphs.pdf}
EDIT:
The image is really small, how do I fix that?
This is what I get(after stretched) :
Your code for the Mathematica plot should include the LabelStyle like
Plot[{Log[ x], 1*(x - 1), 1.5*(x - 1), 2*(x - 1), 2.5*(x - 1),
3*(x - 1)}, {x, 0, 1}, ImageSize -> 750,
PlotStyle -> {{Blue, Thick, Dashing[None]}, {Red,
Dashing[None]}, {Black, Dashing[None]}, {Black,
Dashing[None]}, {Black, Dashing[None]}, {Black, Dashing[None]}},
Frame -> {{True, False}, {False, True}},
FrameLabel -> {{"y", None}, {None, "Fraction susceptible"}},
LabelStyle -> {FontFamily -> "Arial", FontSize -> 24, Black},
FrameTicks -> All, AxesOrigin -> {0, -4}]
Your script for Mathematica should have looked something like this:
myplot= Plot[<code>];
Export["FracS.pdf", myplot]
to generate a vector pdf file.
If the output was exported as a file FracS.pdf and you include in your LaTeX file
\begin{figure}
\centering
\includegraphics[width=\textwidth]{FracS.pdf}
\caption{Plot of the Fraction susceptible}
\centering
\end{figure}
you will get
\documentclassto\end{document}and was only 5 lines of code). And the error actually gives us something to work with. IsGraphs.pdfin the same directory as your tex file? – Teepeemm Jun 16 '21 at 12:00[width=]argument toincludegraphics– Chris H Jun 16 '21 at 12:02width=0.4\textwidth– David Carlisle Jun 16 '21 at 13:01