|
6 | 6 | from .._axis import convert_axis |
7 | 7 | import pytest |
8 | 8 |
|
9 | | -# from .._data import _locate_channel_dtype |
10 | | - |
11 | 9 | df_quant = pd.DataFrame({ |
12 | 10 | "a": [1, 2, 3], "b": [1.2, 2.4, 3.8], "c": [7, 5, -3], |
13 | 11 | "s": [50, 100, 200.0], "alpha": [0, .5, .8], "shape": [1, 2, 3], "fill": [1, 2, 3], |
|
24 | 22 | "combination": pd.to_datetime(['1/1/2015 00:00', '1/4/2016 10:00', '5/1/2016', '5/1/2016 10:10', '3/3/2016']) |
25 | 23 | }) |
26 | 24 |
|
27 | | -# def test_axis_dtype(): |
28 | | -# chart = alt.Chart(df_quant).mark_point().encode(alt.X('years'), alt.Y('a')) |
29 | | -# mapping = convert(chart) |
30 | | -# fig, ax = plt.subplots() |
31 | | -# ax.scatter(**mapping) |
32 | | -# convert_axis(ax, chart) |
33 | | -# assert _locate_channel_dtype(chart, 'x') == 'temporal' |
34 | | - |
35 | 25 |
|
36 | 26 | @pytest.mark.xfail(raises=TypeError) |
37 | 27 | def test_invalid_temporal(): |
@@ -190,7 +180,7 @@ def test_axis_scale_type_x_quantitative(column, type, base, exponent): |
190 | 180 |
|
191 | 181 |
|
192 | 182 | @pytest.mark.mpl_image_compare(baseline_dir='baseline_images/test_axis') |
193 | | -@pytest.mark.parametrize('column,type,base,exponent', [('log','log',10,1), ('log2','log',5,1)]) |
| 183 | +@pytest.mark.parametrize('column,type,base,exponent', [('log', 'log', 10, 1), ('log2', 'log', 5, 1)]) |
194 | 184 | def test_axis_scale_type_y_quantitative(column, type, base, exponent): |
195 | 185 | chart = alt.Chart(df_quant).mark_point().encode( |
196 | 186 | alt.X('a'), |
|
0 commit comments