Wolfram Language

Systems-Level Functionality

Create Wolfram Language Scripts

Wolfram Language scripts can be executed using WolframScript as an interpreter. Add the following text to a file called PlotDistribution.wls.

#!/usr/local/bin/wolframscript -format JPEG
data = RandomVariate[MultivariatePoissonDistribution[1, {3, 6}], 1000]; Print[Histogram3D[data, 20, "ProbabilityDensity"]]

Execute the script.

Import the result of the script into a notebook.

show complete Wolfram Language input
In[1]:=
Click for copyable input
Import[FileNameJoin[{$HomeDirectory, "examples", "output.jpg"}], "JPEG"]
Out[1]=

Related Examples

de es fr ja ko pt-br ru zh