mxDISPLAY(1)
πΈ mxDISPLAY(1) β the manual page, but make it a group chat πΈ
okay bestie, sit down, hydrate, because we're about to talk about mxdisplay from the mxDISPLAY(1) manual β it's the mcxtrace graphical display of simulations and honestly? she's iconic. π
β¨ NAME β¨
mxdisplay β mcxtrace Graphical display of simulations π¦
π SYNOPSIS π
mxdisplay [-h] [βdefault] [βdirname DIRNAME] [βinspect INSPECT]
[βinvcanvas] [-n N] INSTR [options ...]
that's it, that's the whole vibe check. π
π DESCRIPTION π
so the mxdisplay front-end is a graphical debugging tool. no cap. what it does is it shows you a schematic drawing of the instrument definition β like, it puts the position of the components on screen and draws the paths of the simulated xrays going through the instrument. π¦β¨
which means it is so useful for debugging a simulation, fr fr. like, you can spot components that are in the wrong position (embarrassing, we've all been there π) or find out where your xrays are getting lost (where did they go bestie π).
to use the mxdisplay front-end with a simulation, you run it like this:
mxdisplay INSTR args...
where INSTR is the name of either the instrument source INSTR.instr or the simulation program INSTR.out generated with mcxtrace, and args are the normal command line arguments for the simulation, as for mxrun. and if you're lost, the -h option will list valid options. π«Ά
π the plotters situation π
the default plotting backend is mxdisplay-pyqtgraph, but there exists a number of additional plotters, bestie, so you have options:
mxdisplay-matplotlibmxdisplay-webgl-classic(using WebGL)mxdisplay-webgl(using WebGL and NodeJS)mxdisplay-matlab(using Matlab or Octave)
and this page? this page is the PyQtGraph plotting tool. β
π OPTIONS π
-h,βhelpβ show this help message and exit. classic, beloved, never change.βdefaultβ automatically use instrument defaults for simulation run. let the instrument decide, main character energy β¨βdirname DIRNAMEβ output directory name override. name it whatever you want, it's giving customization πβinspect INSPECTβ display only particle rays reaching this component. just the ones that made it, so picky, so valid πβinvcanvasβ invert canvas background from black to white. light mode girlies rise π«Ά-n N,βncount Nβ Number of particles to simulate. how many babies are we throwing at this thing πΈ
ποΈ FILES ποΈ
/usr/share/mcxtrace/tools/Python/usr/share/mcxtrace/tools/Python/mccodelib/mccode_config.json~/.mcxtrace/mccode_config.jsonhttp://www.mcxtrace.org
π₯ EXAMPLES π₯
Display the Test_SX example (Single crystal diffraction) π
mxdisplay Test_SX.instr -d output_dir -n 1e2 TTH=13.4
go off, TTH=13.4, we love a parameter with a specific value, periodt. β¨
π AUTHORS π
mcxtrace Team (mcxtrace.org) π¦
πΈ SEE ALSO πΈ
mcxtrace(1), mxdoc(1), mxplot(1), mxrun(1), mxgui(1), mxdisplay(1)
(not me putting mxdisplay(1) in its own SEE ALSO like yes girl, self-reference, we stan π
)
π AUTHORS (again, because she said it twice and honestly, fair) π
MCXTRACE xray Ray Tracing Team. π
and that's the whole page bestie!! this was the git version of the mxDISPLAY(1) manual, no date on the footer so we're just gonna say it's the current git vibe, slay, bye π¦πβ¨
π¦ where this page comes from
- debian trixie: mcxtrace-mxdisplay-pyqtgraph 3.5+3.5.19+ds5-2 Β· GPL-3.0-only
- ubuntu questing: mcxtrace-mxdisplay-pyqtgraph 3.5+3.5.19+ds5-2
- ubuntu resolute: mcxtrace-mxdisplay-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