Skip to content

Instantly share code, notes, and snippets.

@xtotdam
Created May 12, 2020 19:12
Show Gist options
  • Save xtotdam/4899394ac5e6183a6bbe79444ed292ca to your computer and use it in GitHub Desktop.
Save xtotdam/4899394ac5e6183a6bbe79444ed292ca to your computer and use it in GitHub Desktop.
\documentclass[svgnames,x11names,tikz]{standalone}
\usepackage{xcolor}
\usetikzlibrary{calc,positioning,matrix,math}
\tikzset{
nosep/.style={inner sep=0,outer sep=0}
}
\usetikzlibrary{decorations.pathreplacing}
\tikzset{%
show curve controls/.style={
postaction={
decoration={
show path construction,
curveto code={
\draw [blue,very thin]
(\tikzinputsegmentfirst) -- (\tikzinputsegmentsupporta)
(\tikzinputsegmentlast) -- (\tikzinputsegmentsupportb);
\fill [red, opacity=0.5]
(\tikzinputsegmentsupporta) circle [radius=.5ex]
(\tikzinputsegmentsupportb) circle [radius=.5ex];
}
},
decorate
}}}
\newcommand{\helpangles}[1]{
\foreach \a in {0,5,...,355} \draw[help lines] (#1.center) -- (#1.\a) -- ++(\a:0.5) node[font=\tiny] {\a};
}
%\tikzstyle{every node}=[draw,very thin]
\usepackage{graphicx}
\usepackage{pgfplots}
\newcommand{\tickprint}[1]{\small\pgfmathprintnumber[verbatim,#1]{\tick}}
\pgfplotsset{
compat=newest,
xticklabel=\tickprint{},
yticklabel=\tickprint{},
scaled y ticks=false,
% set layers=axis on top, % BAD!
every axis/.append style={
line width=0.6pt, % /tikz/semithick==0.6pt
%
scaled y ticks=false,
ticklabel shift=0pt,
tick align=inside,
tick pos=left,
tickwidth=0.6pt,
subtickwidth=0.6pt,
major tick length=3pt,
minor tick length=1.5pt,
tick style={semithick,black,overlay},
%
minor tick num=4,
},
}
\begin{document}
\tikzset{}
\begin{tikzpicture}
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment