aboutsummaryrefslogtreecommitdiff
path: root/img/poiseuille2d_velocity_grid.tikz
blob: 8ff04ab48c9f669ceb39218134ae1890fc7536a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
\begin{tikzpicture}
\begin{axis}[
	scale only axis,
	height=\textwidth)/4,
	width=\textwidth,
	axis equal,
	xmin=0, xmax=4,
	ymin=0, ymax=1,
	x tick label style={/pgf/number format/.cd, use comma},
	y tick label style={/pgf/number format/.cd, use comma},
	point meta=explicit,
	colorbar,
	colormap/RdYlBu-4,
	colormap={reverse RdYlBu-4}{
		indices of colormap={
			\pgfplotscolormaplastindexof{RdYlBu-4},...,0 of RdYlBu-4
		}
	},
	colorbar horizontal,
	colorbar style={
		/pgf/number format/precision=2,
		/pgf/number format/use comma,
		at={(0.5,-0.2)},
		anchor=north,
		width=0.5*\pgfkeysvalueof{/pgfplots/parent axis width},
		y unit=m/s,
		y label style={
			at={(axis description cs:1.3,0.5)},
			rotate=-90,
			anchor=east
		}
	},
	scatter/use mapped color={color=mapped color}
]

\addplot[scatter,only marks] table[
	x=x, y=y, meta=ux,
	col sep=comma
] {img/data/poiseuille2d_refined_re10_n10_grid.csv};
\end{axis}
\end{tikzpicture}