mxDISPLAY-MATLAB(1)
π mxdisplay-matlab β the Matlab/Octave glow-up for your simulations
okay bestie, so this is mxDISPLAY-MATLAB(1) β the manual page, but make it make sense. sit down, grab a strawberry π, we're doing graphics.
β¨ NAME β¨
mxdisplay-matlab β mcxtrace Graphical display of simulations using Matlab/Octave. yes she's a whole front-end, no she's not doing too much π
β¨ SYNOPSIS β¨
mxdisplay-matlab [-hom] [-png|-jpg|-fig|-eps|-pdf|-tif] [βinspect=COMP]
INSTR name=value...
look at her. iconic. she takes flags, she takes a format, she takes a component filter, and then she takes your instrument plus whatever name=value you wanna throw at her. periodt.
β¨ DESCRIPTION β¨
so the mxdisplay-matlab front-end is a graphical debugging tool, fr fr. she draws you a whole schematic of your instrument definition β like, where every component is sitting and where all your simulated xrays are actually travelling through the thing. the vibes are immaculate and also extremely useful, because debugging a simulation blind is giving struggle era. π¦
you use her when:
- a component is in the wrong position (not me putting a sample inside a wall π)
- you need to figure out where xrays are getting lost
- you just want to see it, yk? iykyk
to use the mxdisplay-matlab front-end with a simulation, 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 that you generated with mcxtrace, and args are the normal command line arguments for the simulation, exactly like you'd pass to mxrun. and the -h option will list valid options for you β she's helpful like that, always. π«Ά
now, the tea on plotting backends: the default plotting backend is mxdisplay-pyqtgraph, but there's a whole friend group of additional plotters you can hang with β 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 Matlab/Octave plotting tool. main character energy, honestly. π
β¨ OPTIONS β¨
INSTRβ displays the given mcxtrace 3D model with its defaults / current parameters. just hand her the instrument and she goes. β¨name1=value1 ...β displays the given mcxtrace model with given parameters. override whatever you want, she's flexible. π-n N,βncount Nβ Number of particles to simulate. yeah that's it, that's the whole thing.[-png|-jpg|-fig|-eps|-pdf|-tif]β Same as above, and specifies an output file format to generate. Possible save_as are-png-pdf-fig-tif-jpg-eps. pick your format bestie, she'll save it out for you. πβinspect=COMPβ Same as above, and only plot component names that match COMP, given as a single component word for partial match, such asMonitorβ or a component interval such asMonok:Sampleor2:10or2:end. so you can zoom your attention in on exactly the components you care about. lowkey the best feature. π₯-mβ Explicitely request to use Matlab. (yes, that spelling is hers, we don't touch it. π )-oβ Explicitely request to use Octave. free and open source bestie behavior, we love to see it. π§
ngl, if you don't pass-mor-oshe'll just do her thing with the backend situation β but if you know which one you want, say it out loud. π
β¨ FILES β¨
the sacred texts, the lore, the paths she reads:
/usr/share/mcxtrace/tools/matlab/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) β she ate this one, no crumbs:
mxdisplay-matlab Test_SX.instr -n 1e2 TTH=13.4
like?? one line and you're looking at a single crystal diffraction simulation. slay. π
β¨ AUTHORS β¨
mcxtrace Team (mxstas.org). give them their flowers. πΈ
β¨ SEE ALSO β¨
mxstas(1), mxdoc(1), mx(1), mxrun(1), mxgui(1), mxdisplay(1) β go read those too, they're all in the group chat. π«Ά
β¨ AUTHORS (again, bc she said it twice) β¨
MCXTRACE xray Ray Tracing Team. double credit because they earned it, periodt.
β οΈ heads up bestie:mxdisplayin the description is the command you literally run, andINSTRcan be eitherINSTR.instrorINSTR.outβ don't come for me, that's what the page says. π
and that's the whole page!! the footer down there is stamped git on the left with mxDISPLAY-MATLAB(1) on the right, and honestly the date is just vibes from whenever git last touched it. π go run a simulation, watch your xrays travel, find that lost beam. love u, bye!! πβ¨π
π¦ where this page comes from
- debian trixie: mcxtrace-mxdisplay-matlab 3.5+3.5.19+ds5-2 Β· GPL-3.0-only
- ubuntu questing: mcxtrace-mxdisplay-matlab 3.5+3.5.19+ds5-2
- ubuntu resolute: mcxtrace-mxdisplay-matlab 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