mxDISPLAY-MATPLOTLIB(1)
π mxDISPLAY-MATPLOTLIB π
okay bestie, welcome to the manual for mxDISPLAY-MATPLOTLIB β literally the cutest little way to see your mcxtrace simulation with your own two eyes. let's get into it π¦
β¨ NAME β¨
mxdisplay-matplotlib β the mcxtrace graphical display of simulations using Matplotlib. yes, that's the whole vibe. plotting but make it particle physics π
πΈ SYNOPSIS πΈ
mxdisplay-matplotlib [-h] INSTR name=value...
short, sweet, and it WILL change your life. fr fr.
π DESCRIPTION π
so the mxdisplay-matplotlib front-end is a graphical debugging tool. what does that even mean? it means it serves you a schematic drawing of your instrument definition β showing you where the components are sitting and the paths that the simulated xrays take as they travel through the instrument. it's giving map-of-the-whole-vibe. πΊοΈβ¨
which is extremely useful for debugging a simulation, bestie. like:
- spotting components that ended up in the wrong position (not the main character energy you wanted π)
- finding out where the xrays are getting lost (where are they going?? hello?? π)
to use this front-end with a simulation, run it like this:
mxdisplay-matplotlib 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. the -h option will list valid options, so if you're ever lost just ask for help, she'll tell you π«Ά
the default plotting backend is mxdisplay-pyqtgraph, but there exists a number of additional plotters, like:
mxdisplay-matplotlibmxdisplay-webgl-classic(using WebGL)mxdisplay-webgl(using WebGL and NodeJS)mxdisplay-matlab(using Matlab or Octave)
and this one is the Matplotlib plotting tool. so if matplotlib is your girl, you are in exactly the right place π β¨
π OPTIONS π
INSTRβ displays the given McCode 3D model with its defaults/current parameters. just hand her the instrument and she'll do the rest πname1=value1 ...β displays the given McCode model with given parameters. you get to be specific, periodt β¨-n N,--ncount Nβ number of particles to simulate π₯
π¦ FILES π¦
/usr/share/mcxtrace/tools/Python/usr/share/mcxtrace/tools/Python/mccodelib/mccode_config.json~/.mcxtrace/mccode_config.jsonhttp://www.mcxtrace.org
these are the places she's looking at, bestie. now you know π
β EXAMPLES β
display the Test_SX example (that's Single crystal diffraction, iykyk):
mxdisplay-matplotlib Test_SX.instr -n 1e2 TTH=13.4
ate. no crumbs. π
π AUTHORS π
mcxtrace Team (mcxtrace.org)
π SEE ALSO π
mcxtrace(1), mxdoc(1), mxplot(1), mxrun(1), mxgui(1), mxdisplay(1)
go read those too, they're all iconic in their own way π«Ά
π AUTHORS (again, bc they deserve it) π
MCXTRACE xray Ray Tracing Team.
ngl, that's the whole page. every flag, every file, every vibe. no gatekeeping here π
and that's a wrap, bestie π¬ β this page came to you from git, and it's the mxDISPLAY-MATPLOTLIB(1) page, so you literally just read the whole thing. go plot something gorgeous πΈβ¨π
π¦ where this page comes from
- debian trixie: mcxtrace-mxdisplay-matplotlib 3.5+3.5.19+ds5-2 Β· GPL-3.0-only
- ubuntu questing: mcxtrace-mxdisplay-matplotlib 3.5+3.5.19+ds5-2
- ubuntu resolute: mcxtrace-mxdisplay-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