mcDISPLAY-MATPLOTLIB(1)
π mcDISPLAY-MATPLOTLIB π
okay bestie, welcome to the mcDISPLAY-MATPLOTLIB(1) page β that's section 1 of the manual, and yes it's giving main character energy π
β¨ NAME β¨
mcdisplay-matplotlib β mcstas Graphical display of simulations using Matplotlib πΈ
π SYNOPSIS π
mcdisplay-matplotlib [-h] INSTR name=value...
π DESCRIPTION π
So the mcdisplay-matplotlib front-end is a graphical debugging tool. No cap. It shows you a schematic drawing of your instrument definition β like, where all the components are sitting and the paths the simulated neutrons take as they zoom through the instrument π¦
Which means it's literally perfect for debugging a simulation. Spotting a component in the totally wrong position? Found. Trying to figure out where your neutrons are getting lost? Also found π
To use the mcdisplay-matplotlib front-end with a simulation, run it like this:
mcdisplay-matplotlib INSTR args...
where INSTR is the name of either:
- the instrument source
INSTR.instr, or - the simulation program
INSTR.outgenerated withmcstas
and args are the normal command line arguments for the simulation, exactly like for mcrun. The -h option will list valid options π
Now, the default plotting backend is mxdisplay-pyqtgraph, but there exists a number of additional plotters such as mxdisplay-matplotlib, mxdisplay-webgl-classic (using WebGL), mxdisplay-webgl (using WebGL and NodeJS), and mxdisplay-matlab (using Matlab or Octave). And this one right here? This is the Matplotlib plotting tool π
β OPTIONS β
INSTRβ Displays the given McCode 3D model with its defaults/current parameters β¨name1=value1 ...β Displays the given McCode model with given parameters π-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-matplotlib Test_SX.instr -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.
and that's the whole page, bestie, you ate that π«Ά
signing off from version git of mcDISPLAY-MATPLOTLIB(1) β catch you in the next man page, mwah π
β¨
π¦ where this page comes from
- debian trixie: mcstas-mcdisplay-matplotlib 3.5+3.5.19+ds5-2 Β· GPL-3.0-only
- ubuntu questing: mcstas-mcdisplay-matplotlib 3.5+3.5.19+ds5-2
- ubuntu resolute: mcstas-mcdisplay-matplotlib 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