mcDISPLAY-MATPLOTLIB(1)

πŸ“¦
version 3.5+3.5.19 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute

πŸ’– 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.out generated with mcstas

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.json
  • http://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