Scaling of magnetization with temperature

Temperature dependencies in magnetism are always somehow tricky and involve many model assumptions. The behavior of magnetization (or sublattice magnetization for antiferromagnets) is of special interest since it gives a hint for scaling of other material parameters.

Adjusting inline tikz macro to baseline

Here, we use \raisebox to shift tikz node a bit down: my equation: \raisebox{-12pt}{\tikz \node [draw=red, fill=orange!20!white, ultra thick] {$\dfrac{\partial\vec{M}}{\partial t} = -\gamma \vec{M}\times \vec{H}$};}

Setting mamba environments

General jupyter environment

Preparing Fedora for normal life

DNF update

Templates for plotnine

Python package plotnine presents a ggplot2-based realization of the “Grammar of Graphics” with matplotlib background. Actively using LaTeX package pgfplots for plottings, I found plotnine useful to do make drawings directly in Python with a reasonable convenience of previewing in Jupyter notebooks and exporting into png/svg (for further assembly in Inkscape).

Gmsh tricks

The following tricks are tested for Gmsh version 4.10.5 and, probably, should work for other versions. Also, simpler ways for some tasks could be available. Also look for examples in the official repository.

TexText setup for beamer

Preparing images for further usage in beamer presentations in latex, it is useful to utilize latex fonts. This can be done via TexText extension for Inkscape.

Bokeh library for plotting in Python

The “key” plotting library for Python is Matplotlib. Especially for me, it is simple and nice because of Matlab-like syntax which simplified transition to it years ago. However, default Matplotlib output is not so nice as one would like to have and a long time it was used by me as an intermediate support to show some data before further processing via Pgfplots. There are nice alternatives for people who is very into statistics like Plotly or Seaborn, but for “normal” plots their syntax looks too complicated and not obvious for me. However, I still want to have some interactivity in Jupyter notebooks and have recently noticed functionality of Bokeh.

How scientists lie

Each scientist knows he should follow principles of fair research, work with data correctly etc. However, it not always obvious when and where mistake can come.

FAIR software principles

Principles of a good development style for the research software in Barker, M., Chue Hong, N.P., Katz, D.S. et al. Introducing the FAIR Principles for research software. Sci Data 9, 622 (2022).

Module not found in Fedora

In case if Fedora cannot recognize ml or module load command $ ml av bash: ml: command not found

rsync tips

Copy remote folders with content recursively The following command copies the content of ~/path/to/ in the remote server to the current folder .: $ rsync -Pra user@remote-server:~/path/to/* .