# Math Help - Mathematica: Exporting a plot

1. ## Mathematica: Exporting a plot

Hi guys

I wish to export a graph in Mathematica, and I use

Export["test.pdf", Plot[x^2,{x,1,2}],ImageSize->250].

When I include "test.pdf" in my LaTeX document, MiKTeX complains that the figure "test.pdf" has no boundary box. I really don't get this - what am I doing wrong?

Sincerely,
Niles.

2. I think you're compiling it as a Latex-DVI file rather than a Latex-PDF file. In the small menu box in the menu bar, choose Latex-PDF and see if that corrects the problem. I think to compile as DVI you need to include JPEG files.

3. Yes, that did the trick. Do you know if it is possible to change the font of the plot? I.e. numbers, variable-names and such.

And thanks.

4. Tons.

Here's some code. I removed the integral part as I had to manually adjust that one and it resulted in messy code when I converted it to raw format to display here.

Code:
myText = Graphics[{Blue,
Text[Style["This is a test", 15,
FontFamily -> "Monotype Corsiva"],
{2.4, 2}]}];
Show[{Plot[x^2, {x, 1, 5},
Ticks -> {{{1, 1}, {2, 2},
{Pi, Style[Pi, 40]}}, Automatic},
TicksStyle -> Directive[Red, 20]],
myText}, PlotRange ->
{{0, 5}, {0, 5}}, PlotLabel ->
Style["f(x)=\!$$\*SuperscriptBox[\(x$$\
, $$2$$]\)", 20, Darker[Green]]]

5. Ah, great. Thanks. I am currently using

Plot[Sinc[x], {x, 0, 10}, AxesLabel -> {\[Omega], x},
AxesStyle -> Directive[FontFamily -> "Arial", Black, 40]]

The problem is that choosing FontFamily as "Arial" (or any other FontFamily for that matter) only changes the numbers on the axis and "x", and not the greek letter omega. Do you know if I am doing something wrong here?

Sincerely,
Niles.

6. Hi. Don't know why that is. I tried explicitly specifying Arial:

Plot[Sinc[x], {x, 0, 10},
AxesLabel -> {Style[\[Omega], FontFamily -> "Arial"], x},
AxesStyle -> Directive[FontFamily -> "Arial", Black, 40]

and looks still unaltered.

7. Ok, thanks for helping. It must be a bug.