Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Export graphics without notebook ( using .m file)
Replies: 2   Last Post: Dec 21, 2012 5:38 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Alexey

Posts: 265
Registered: 6/14/08
Re: Export graphics without notebook ( using .m file)
Posted: Dec 21, 2012 5:38 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi Olaf,

It does not work without the FrontEnd because the latter is necessary for
rendering Mathematica's graphics. But it is still possible to run the FrontEnd from the script. Look at such functions as UsingFrontEnd, FrontEndExecute,
$FrontEnd etc...

HTH,
Alexey


<bar@ANTYSPAM.ap.krakow.pl> wrote: news:kajode$ilu$1@smc.vnet.net...
> Hello,
> It is example from help:
> ---------------
> div[{vx_, vy_}] := D[vx, x] + D[vy, y];
> vf = {Cos[x + y^3], Sin[y + x^3]};
> fig = StreamDensityPlot[Evaluate[{vf, div[vf]}], {x, -3, 3},
> {y, -3, 3}, StreamPoints -> Fine, StreamScale -> Large,
> ColorFunction -> "Rainbow", MaxRecursion -> 2,
> LightingAngle -> Automatic, StreamStyle -> Black];
> Export["tt.jpg", fig];
> ---------------
>
> The question is:
>
> Why this works fine inside Mathematica notebook
> and doesnt work as a script ?
>
> math < example.m
>
> generates tt.jpg file but not identical as from notebook ?
>
> Version: Mathematica 7.0
>
>
> Olaf,
>
>
>
>







Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.