Skip to content

Commit c5a2476

Browse files
committed
colorbar test update
1 parent 9962326 commit c5a2476

File tree

2 files changed

+36
-38
lines changed

2 files changed

+36
-38
lines changed

test/refresh_reference_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _main():
2626
test_modules.remove("test_rotated_labels")
2727
test_modules.remove("test_deterministic_output")
2828
test_modules.remove("test_cleanfigure")
29-
test_modules.remove("test_context_reference")
29+
test_modules.remove("test_context")
3030

3131
for mod in test_modules:
3232
module = importlib.import_module(mod)

test/test_colorbars_reference.tex

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -37,65 +37,63 @@
3737
tick pos=left,
3838
x grid style={white!69.019608!black},
3939
xlabel={Discrete intervals, some other units},
40-
xmin=-0.05, xmax=1.05,
40+
xmin=0.65, xmax=8.35,
4141
xtick style={color=black},
42-
xtick={0,0.14285714,0.42857143,0.85714286,1},
42+
xtick={1,2,4,7,8},
4343
xticklabels={1,2,4,7,8},
44-
ymin=0, ymax=1
44+
ymin=1, ymax=8
4545
]
4646
\path [draw=white, fill=white, line width=0.004pt]
47-
(axis cs:-0.05,0.5)
48-
--(axis cs:0,0)
49-
--(axis cs:1,0)
50-
--(axis cs:1.05,0.5)
51-
--(axis cs:1.05,0.5)
47+
(axis cs:0.65,4.5)
5248
--(axis cs:1,1)
53-
--(axis cs:0,1)
54-
--(axis cs:-0.05,0.5)
49+
--(axis cs:8,1)
50+
--(axis cs:8.35,4.5)
51+
--(axis cs:8.35,4.5)
52+
--(axis cs:8,8)
53+
--(axis cs:1,8)
54+
--(axis cs:0.65,4.5)
5555
--cycle;
56-
\addplot graphics [includegraphics cmd=\pgfimage,xmin=-0.05, xmax=1.05, ymin=0, ymax=1] {tmp-001.png};
56+
\addplot graphics [includegraphics cmd=\pgfimage,xmin=0.65, xmax=8.35, ymin=1, ymax=8] {tmp-001.png};
5757
\path [draw=black, line width=0.32pt]
58-
(axis cs:-0.05,0.5)
59-
--(axis cs:0,0)
60-
--(axis cs:1,0)
61-
--(axis cs:1.05,0.5)
62-
--(axis cs:1.05,0.5)
58+
(axis cs:0.65,4.5)
6359
--(axis cs:1,1)
64-
--(axis cs:0,1)
65-
--(axis cs:-0.05,0.5)
60+
--(axis cs:8,1)
61+
--(axis cs:8.35,4.5)
62+
--(axis cs:8.35,4.5)
63+
--(axis cs:8,8)
64+
--(axis cs:1,8)
65+
--(axis cs:0.65,4.5)
6666
--cycle;
6767

6868
\nextgroupplot[
6969
tick align=outside,
7070
tick pos=left,
7171
x grid style={white!69.019608!black},
7272
xlabel={Custom extension lengths, some other units},
73-
xmin=-0.25, xmax=1.25,
73+
xmin=-1.5, xmax=1.5,
7474
xtick style={color=black},
75-
xtick={0,0.25,0.5,0.75,1},
76-
xticklabels={−1.0,−0.5,0.0,0.5,1.0},
77-
ymin=0, ymax=1
75+
ymin=-1, ymax=1
7876
]
7977
\path [draw=white, fill=white, line width=0.004pt]
80-
(axis cs:-0.25,0.5)
81-
--(axis cs:0,0)
82-
--(axis cs:1,0)
83-
--(axis cs:1.25,0.5)
84-
--(axis cs:1.25,0.5)
78+
(axis cs:-1.5,0)
79+
--(axis cs:-1,-1)
80+
--(axis cs:1,-1)
81+
--(axis cs:1.5,0)
82+
--(axis cs:1.5,0)
8583
--(axis cs:1,1)
86-
--(axis cs:0,1)
87-
--(axis cs:-0.25,0.5)
84+
--(axis cs:-1,1)
85+
--(axis cs:-1.5,0)
8886
--cycle;
89-
\addplot graphics [includegraphics cmd=\pgfimage,xmin=-0.25, xmax=1.25, ymin=0, ymax=1] {tmp-002.png};
87+
\addplot graphics [includegraphics cmd=\pgfimage,xmin=-1.5, xmax=1.5, ymin=-1, ymax=1] {tmp-002.png};
9088
\path [draw=black, line width=0.32pt]
91-
(axis cs:-0.25,0.5)
92-
--(axis cs:0,0)
93-
--(axis cs:1,0)
94-
--(axis cs:1.25,0.5)
95-
--(axis cs:1.25,0.5)
89+
(axis cs:-1.5,0)
90+
--(axis cs:-1,-1)
91+
--(axis cs:1,-1)
92+
--(axis cs:1.5,0)
93+
--(axis cs:1.5,0)
9694
--(axis cs:1,1)
97-
--(axis cs:0,1)
98-
--(axis cs:-0.25,0.5)
95+
--(axis cs:-1,1)
96+
--(axis cs:-1.5,0)
9997
--cycle;
10098
\end{groupplot}
10199

0 commit comments

Comments
 (0)