mxPLOT-MATPLOTLIB(1)
π mxPLOT-MATPLOTLIB π
okay bestie, welcome to mxplot-matplotlib, a.k.a. the part of mxPLOT that makes your simulation results look pretty. it's a manual page, it's in section 1, and it's literally about to become your new fave. π¦
β¨ SYNOPSIS β¨
mxplot-matplotlib [-h] [-t] [--html] [--format FORMAT] [--output OUTPUT]
[--log] [--backend BACKEND] [simulation ...]
like... look at her. so many flags. so much power. π
πΈ DESCRIPTION πΈ
so the front-end mxplot-matplotlib is a program that produces plots of all the monitors in a simulation, and that's why it's genuinely so useful β it gives you a quick overview of your simulation results without you having to dig around. main character energy, fr fr. π
in the simplest case you just type mxplot-matplotlib and that's it. no cap. it will plot any simulation data stored in the current directory β which is exactly where simulations store their results by default. so convenient it's giving β¨destinyβ¨.
but bestie, if the --dir or --file options have been used, then you gotta pass the name of the file or directory to mxplot-matplotlib, like this:
mxplot-matplotlib dir
mxplot-matplotlib file
and it is also possible to plot one single text (not binary!!) data file from a given monitor β just pass its name to mxplot-matplotlib and boom, plot. π
and if you're ever lost, the -h option will list valid options. she's helpful like that. π«Ά
also important: this is the Matplotlib plotting tool. that's the whole vibe of this page. π
π OPTIONS π
simulationβ the file or directory to plot. that's the thing you're pointing her at. π-h,--helpβ show this help message and exit. your lil safety net. π-t,--testβ mxcode data loader test run. yes bestie, a test run. π§ͺ--htmlβ save plot to html usingmpld3(linux only) β οΈ heads up, it's linux-only, no cap.--format FORMATβ save plot to pdf/png/eps/svg... without bringing up window. silent, sneaky, iconic. π€«--output OUTPUTβ save plot to given file without bringing up window. and listen: the extension (e.g. pdf/png/eps/svg) can be specified in the file name or via--format. your choice, you flexible queen. π--logβ initiate plot(s) with log of signal. logarithmic vibes only. π--backend BACKENDβ use non-default backend for matplotlib plot. for when the default just isn't serving. β¨
π¦ FILES π¦
these are the paths she cares about, bestie, write them down:
/usr/share/mcxtrace/resources/usr/share/mcxtrace/tools/Python/mccodelib/mccode_config.json~/.mcxtrace/mccode_config.jsonhttp://www.mcxtrace.org
π EXAMPLES π
okay so the glow-up demo: run and plot the Test_SX example (Single crystal diffraction) π
mxrun Test_SX.instr -d output_dir -n 1e7 TTH=13.4mxplot-matplotlib output_dir
first you run it, then you plot it. that's the whole storyline and honestly? ate. π₯
π AUTHORS π
mcxtrace Team (mcxtrace.org)
π SEE ALSO π
mcxtrace(1), mxdoc(1), mxplot(1), mxrun(1), mxgui(1), mxdisplay(1)
go read those too, bestie, iykyk. π§
π AUTHORS (again, yes really) π
MCXTRACE xray Ray Tracing Team.
and that's the whole page, babes!! this one came from the git version of the docs β so if you're reading it, you're on the fresh build, slay. thanks for sticking around till the end, you're literally the bestie of all time. mwah. πππ
π¦ where this page comes from
- debian trixie: mcxtrace-mxplot-matplotlib 3.5+3.5.19+ds5-2 Β· GPL-3.0-only
- ubuntu questing: mcxtrace-mxplot-matplotlib 3.5+3.5.19+ds5-2
- ubuntu resolute: mcxtrace-mxplot-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