aboutsummaryrefslogtreecommitdiff
path: root/img/poiseuille2d_velocity_grid.tikz
blob: 612b88e8aeaa1fcb741aeaf70113f09d92650b79 (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=0.95\textwidth)/4,
	width=0.95\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}