Loading Plotivy
Preparing your workspace and data.
Loading Plotivy
Preparing your workspace and data.
Publication-ready visualizations for condensed matter, optics, semiconductor physics, astrophysics, and experimental research. Every chart includes complete Python code you can copy and run.
Physics research demands precise graphical representation of complex data - from band structures spanning the Brillouin zone to I-V characteristics of novel devices. The chart types below cover the most commonly used figures in physics journals. All code examples produce output at 300+ DPI with proper axis labeling, font sizing, and formatting conventions expected by Physical Review, Nature Physics, and similar publications.
Physics chart selection
Physics figures usually need to preserve units, uncertainty, and the relationship between measured variables. Start with the physical question, then choose a chart that makes the independent variable, scale, and expected comparison readable.
Use band structures, dispersion plots, and Fermi surface plots when the key relationship is energy or frequency across reciprocal space.
Use error bars, scatter plots, histograms, and fitted curves when experimental spread or measurement uncertainty affects interpretation.
Use contour maps, spectra, and phase diagrams when the result varies across frequency, energy, temperature, pressure, or position.
Least-squares fitting, nonlinear models, and residual analysis in Python.
End-to-end workflow for processing and visualizing experimental physics data.
XRD patterns, stress-strain curves, Tauc plots, and characterization figures.
Confusion matrices, ROC curves, learning curves, and ML diagnostics.
Matplotlib is the standard for publication figures in physics, offering precise control over every visual element. For 3D surfaces and interactive exploration, Plotly and Mayavi are strong choices. Specialized packages such as ASE (atomic simulation) and pymatgen (materials) provide domain-specific plotting utilities built on matplotlib.
Always propagate uncertainties correctly and display them as error bars or shaded confidence bands. Use symmetric error bars for Gaussian uncertainties and asymmetric bars when the distribution is skewed. Report whether bars represent standard deviation, standard error of the mean, or confidence intervals. Journals like Physical Review require explicit uncertainty notation.
Extract eigenvalues along high-symmetry k-paths from your DFT output (VASP, Quantum ESPRESSO, etc.) and plot energy versus k-point index. Libraries like pymatgen and ASE can parse output files directly. Label the high-symmetry points on the x-axis and add a horizontal line at the Fermi level. See our band structure guide for complete code.
Most physics journals (APS, AIP, IOP) require 300 DPI minimum at print size. Vector formats (PDF, EPS, SVG) are preferred for line art and data plots because they scale without quality loss. Use TIFF or PNG at 600 DPI only for rasterized images like micrographs. Always export at the exact column width specified by the journal.