mcPLOT-MATLAB(1)
π mcPLOT-MATLAB π
okay bestie, so this is the mcPLOT-MATLAB(1) manual page, and it's literally about plotting your mcstas simulation results with Matlab or Octave. it's giving β¨ data visualization β¨ and honestly? iconic. let's get into it π«Ά
πΈ NAME πΈ
mcplot-matlab β plotting the results of a mcstas simulation using Matlab/Octave π
β¨ SYNOPSIS β¨
mcplot-matlab [-hom] [-png|-jpg|-fig|-eps|-pdf] [FILE|DIR]
π DESCRIPTION π
So the front-end mcplot-matlab is a program that makes plots of all the monitors in a simulation, which means it's the absolute bestie for getting a quick overview of what your simulation actually did. π
In the simplest case you just run the front-end by typing mcplot-matlab and that's it. It'll plot any simulation data stored in the current directory β which is where simulations store their results by default, no cap. π
If you've used the --dir or --file options, you pass the name of the file or directory to mcplot-matlab, like:
mcplot-matlab dir
mcplot-matlab file
You can also plot one single text (not binary) data file from a given monitor by passing its name to mcplot-matlab. Note the text part, bestie β not binary, we don't do binary here. π
And the -h option will list all the valid options, in case you want the receipts. π§Ύ
Also just so you know: this is the Matlab/Octave plotting tool.
π OPTIONS π
[-png|-jpg|-fig|-eps|-pdf]β export the specified monitor file or directory to the given format. pick your fave, they're all valid π-m FILE|DIRβ explicitly request to use Matlab. like, you're sure. you're committed. Matlab it is. π-oβ explicitly request to use Octave. the free & open source bestie π
π FILES π
/usr/share/mcstas/tools/Python/mccodelib/mccode_config.json~/.mcstas/mccode_config.jsonhttp://www.mcstas.org
π¦ EXAMPLES π¦
Let's run and plot the Test_SX example (that's Single crystal diffraction, for the record β¨):
mcrun Test_SX.instr -d output_dir -n 1e7 TTH=13.4mcplot-matlab output_dir
and boom, plots. ate. π
π AUTHORS π
mcstas Team (mcstas.org) β shoutout π«Ά
β SEE ALSO β
mcstas(1), mcdoc(1), mcplot(1), mcrun(1), mcgui(1), mcdisplay(1)
go read those too, they're all part of the family πΈ
π AUTHORS π
MCSTAS neutron Ray Tracing Team.
k that's the whole page bestie π this one came from the git source, and it's dated in the footer β so yeah, that's the version you're reading. mwah, go plot something gorgeous πβ¨
π¦ where this page comes from
- debian trixie: mcstas-mcplot-matlab 3.5+3.5.19+ds5-2 Β· GPL-3.0-only
- ubuntu questing: mcstas-mcplot-matlab 3.5+3.5.19+ds5-2
- ubuntu resolute: mcstas-mcplot-matlab 3.5+3.5.19+ds5-2build1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms