visualisation/plotsetup.tex

Fri, 28 Mar 2025 08:36:08 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 28 Mar 2025 08:36:08 -0500
changeset 59
743984f4664e
parent 45
cac6978dc7dd
permissions
-rw-r--r--

Add auxiliary results

\usepackage{pgfplots}
\usepackage[svgnames]{xcolor}
\usepgfplotslibrary{colorbrewer}

\pgfplotsset{
    compat=1.18,
    % forget plot = no legend
    edge/.style = {thick, gray!50!black,forget plot},
    data/.style = {mark=*, blue, only marks},
    backdata/.style = {mark=*, blue!30!white, only marks, onlyback, forget plot},
    itergen/.style = {line width = 0.7pt},
    iter1/.style = {mark=x, Crimson, itergen},
    iter2/.style = {mark=star, BlueViolet, itergen},
    iter3/.style = {mark=asterisk, DarkOliveGreen, itergen},
    backiter1/.style = {mark=x, Crimson!70!white, onlyback, forget plot, itergen},
    backiter2/.style = {mark=star, BlueViolet!70!white, onlyback, forget plot, itergen},
    backiter3/.style = {mark=asterisk, DarkOliveGreen!70!white, onlyback, forget plot, itergen},
    origin/.style = {mark=o, green, only marks, thick},
    surfstyle/.style = {very nearly opaque, forget plot},
    legend style = {
        inner sep = 0pt,
        outer xsep = 5pt,
        outer ysep = 0pt,
        legend cell align = left,
        align = left,
        draw = none,
        fill = none,
        font = \footnotesize
    },
    illustr3d/.style = {
        axis equal,
        width=0.7\linewidth,
        height=0.7\linewidth,
        scale only axis,
        enlargelimits=false,
        colormap access=map,
        colormap/Blues,
        colorbar,
        point meta rel=axis wide,
        shader = interp,
        xlabel = {$x$},
        ylabel = {$y$},
        zlabel = {$z$},
        ticks = none,
        axis line style = {draw=none},
        %axis x line = none,
        %axis y line = none,
        %axis z line = none,
        legend columns = 3,
        legend style = {
            at = {(0.5, 1.1)},
            anchor = north,
            column sep = 1ex,
        },
        mark size=1.5pt,
        colorbar style = {width = 1ex, height = 0.4\linewidth},
    }
}

mercurial