Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12913
| From | "Alexey Popkov" <lehin.p@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Export graphics without notebook ( using .m file) |
| Date | 2012-12-21 10:38 +0000 |
| Message-ID | <kb1e6f$ov1$1@smc.vnet.net> (permalink) |
| References | <kajode$ilu$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
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,
>
>
>
>
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Export graphics without notebook ( using .m file) bar@ANTYSPAM.ap.krakow.pl - 2012-12-16 06:06 +0000 Re: Export graphics without notebook ( using .m file) <bar@robox.ii.up.krakow.pl> - 2012-12-20 08:20 +0000 Re: Export graphics without notebook ( using .m file) "Alexey Popkov" <lehin.p@gmail.com> - 2012-12-21 10:38 +0000 Re: Export graphics without notebook ( using .m file) awnl <awnl@gmx-topmail.de> - 2012-12-21 10:38 +0000
csiph-web