Deborah.Rebekah.PyPlotLaTeX
Deborah.Rebekah.PyPlotLaTeX.set_pyplot_latex_style — Functionset_pyplot_latex_style(
scale::Float64=0.5
) -> NothingConfigure PyPlot.jl with $\LaTeX$ rendering and appropriate font settings for publications.
This function modifies matplotlib.rcParams to enable $\LaTeX$-based text rendering and adjust font sizes, marker sizes, and line widths for consistent visual output. Useful for generating high-quality plots for papers or presentations.
Arguments
scale::Float64: Scaling factor for font sizes and figure dimensions. Default is0.5.
Side Effects
- Modifies
PyPlot.jl's global rendering configuration viamatplotlib.rcParams.
Deborah.Rebekah.PyPlotLaTeX.set_pyplot_latex_style_corrmat — Methodset_pyplot_latex_style_corrmat() -> NothingConfigure PyPlot.jl/matplotlib style for correlation-matrix and heatmap-style plots.
This helper sets a clean, serif-based style with Computer Modern math fonts, inward ticks, black axes/text, and white figure background. It also configures a custom color cycle suitable for multi-line overlays on top of correlation/overlap panels.
Unlike set_pyplot_latex_style, this function does not enable full external $\LaTeX$ rendering via text.usetex, but instead relies on mathtext.fontset = "cm" for inline math support. This makes it lighter-weight and convenient for interactive exploration or batch heatmap generation.
Arguments
- (none)
Effects
- Updates global
matplotlib.rcParamsviaPyPlot.PyDict(PyPlot.matplotlib."rcParams"):mathtext.fontset = "cm"font.family = "serif"font.size = 16xtick.labelsize = 12,ytick.labelsize = 12- tick directions set to
"in"and colors set to black - figure/axes background set to white, edge/label/text colors set to black
- grid linestyle set to
":" savefig.*parameters tuned for tight bounding boxes and higher DPIaxes.prop_cycleset to a custom color cycle for multi-series plots
Returns
Nothing(style is applied globally as a side effect).
Notes
- Intended for correlation matrices, overlap/error heatmaps, or summary panels where a compact serif layout with consistent tick labeling is preferred.
- Can be safely combined with other style helpers, but the last call wins for overlapping
matplotlib.rcParamskeys.