mcDISPLAY(1)
π mcDISPLAY(1) β the manual page, bestie edition π
okay so bestie, welcome to mcDISPLAY, aka the mcstas Graphical display of simulations manual. pull up a chair, grab a boba, we're gonna debug some neutrons together π§β¨
β¨ SYNOPSIS β¨
mcdisplay [-h] [βdefault] [βdirname DIRNAME] [βinspect INSPECT]
[βinvcanvas] [-n N] INSTR [options ...]
πΈ DESCRIPTION πΈ
so like. the mcdisplay front-end is a graphical debugging tool. it draws you a schematic of your instrument definition, showing where all the components are sitting and the paths your simulated neutrons take through the instrument. it's giving main character energy for debugging, fr fr β like, you can spot components that are in the totally wrong position, or figure out exactly where your neutrons are getting lost. no cap, it's iconic.
to use the mcdisplay front-end with a simulation, you run it like this:
mcdisplay INSTR args...
where INSTR is the name of either:
- the instrument source
INSTR.instr, or - the simulation program
INSTR.outgenerated withmcstas
and args are just the normal command line arguments for the simulation, exactly like for mcrun. the -h option will list valid options for you π
the default plotting backend is mcdisplay-pyqtgraph, but bestie there's a whole squad of additional plotters out there:
mcdisplay-matplotlibmcdisplay-webgl-classic(using WebGL)mcdisplay-webgl(using WebGL and NodeJS)mcdisplay-matlab(using Matlab or Octave)
and this one? this is the PyQtGraph plotting tool. periodt.
π OPTIONS π
-h,βhelpβ show this help message and exit. classic, love herβdefaultβ automatically use instrument defaults for the simulation run. lowkey convenientβdirname DIRNAMEβ output directory name overrideβinspect INSPECTβ display only particle rays reaching this component πβinvcanvasβ invert canvas background from black to white. for the light-mode girlies π-n N,βncount Nβ Number of particles to simulate
π¦ FILES π¦
/usr/share/mcstas/tools/Python/usr/share/mcstas/tools/Python/mccodelib/mccode_config.json~/.mcstas/mccode_config.jsonhttp://www.mcstas.org
β EXAMPLES β
display the Test_SX example (Single crystal diffraction) π
mcdisplay Test_SX.instr -d output_dir -n 1e2 TTH=13.4
π AUTHORS π
mcstas Team (mcstas.org)
π SEE ALSO π
mcstas(1), mcdoc(1), mcplot(1), mcrun(1), mcgui(1), mcdisplay(1)
π AUTHORS π
MCSTAS neutron Ray Tracing Team.
okay bestie that's the whole page, we ate and left no crumbs π«Ά this one's shipped from the git source and it's literally just mcDISPLAY(1) β go forth and debug, you gorgeous genius πβ¨πΈ
π¦ where this page comes from
- debian trixie: mcstas-mcdisplay-pyqtgraph 3.5+3.5.19+ds5-2 Β· GPL-3.0-only
- ubuntu questing: mcstas-mcdisplay-pyqtgraph 3.5+3.5.19+ds5-2
- ubuntu resolute: mcstas-mcdisplay-pyqtgraph 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