Deborah.Rebekah.PyPlotLaTeX

Deborah.Rebekah.PyPlotLaTeX.set_pyplot_latex_styleFunction
set_pyplot_latex_style(
    scale::Float64=0.5
) -> Nothing

Configure 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 is 0.5.

Side Effects

source
Deborah.Rebekah.PyPlotLaTeX.set_pyplot_latex_style_corrmatMethod
set_pyplot_latex_style_corrmat() -> Nothing

Configure 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.rcParams via PyPlot.PyDict(PyPlot.matplotlib."rcParams"):
    • mathtext.fontset = "cm"
    • font.family = "serif"
    • font.size = 16
    • xtick.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 DPI
    • axes.prop_cycle set 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.rcParams keys.
source