Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 179d110

Browse files
committed
updated tests
1 parent 5fafd30 commit 179d110

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

plotly/tests/test_core/test_tools/test_make_subplots.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,7 @@ def test_row_width_and_column_width(self):
21842184
'x': 0.405,
21852185
'xanchor': 'center',
21862186
'xref': 'paper',
2187-
'y': 0.1875,
2187+
'y': 0.5625,
21882188
'yanchor': 'bottom',
21892189
'yref': 'paper'},
21902190
{'font': {'size': 16},
@@ -2193,17 +2193,17 @@ def test_row_width_and_column_width(self):
21932193
'x': 0.9550000000000001,
21942194
'xanchor': 'center',
21952195
'xref': 'paper',
2196-
'y': 0.1875,
2196+
'y': 0.5625,
21972197
'yanchor': 'bottom',
21982198
'yref': 'paper'}],
21992199
'xaxis': {'anchor': 'y', 'domain': [0.0, 0.81]},
22002200
'xaxis2': {'anchor': 'y2', 'domain': [0.91, 1.0]},
22012201
'xaxis3': {'anchor': 'y3', 'domain': [0.0, 0.81]},
22022202
'xaxis4': {'anchor': 'y4', 'domain': [0.91, 1.0]},
2203-
'yaxis': {'anchor': 'x', 'domain': [0.4375, 1.0]},
2204-
'yaxis2': {'anchor': 'x2', 'domain': [0.4375, 1.0]},
2205-
'yaxis3': {'anchor': 'x3', 'domain': [0.0, 0.1875]},
2206-
'yaxis4': {'anchor': 'x4', 'domain': [0.0, 0.1875]}}
2203+
'yaxis': {'anchor': 'x', 'domain': [0.8125, 1.0]},
2204+
'yaxis2': {'anchor': 'x2', 'domain': [0.8125, 1.0]},
2205+
'yaxis3': {'anchor': 'x3', 'domain': [0.0, 0.5625]},
2206+
'yaxis4': {'anchor': 'x4', 'domain': [0.0, 0.5625]}}
22072207
})
22082208
fig = tls.make_subplots(rows=2, cols=2,
22092209
subplot_titles=('Title 1', 'Title 2', 'Title 3', 'Title 4'),
@@ -2238,7 +2238,7 @@ def test_row_width_and_shared_yaxes(self):
22382238
'x': 0.225,
22392239
'xanchor': 'center',
22402240
'xref': 'paper',
2241-
'y': 0.1875,
2241+
'y': 0.5625,
22422242
'yanchor': 'bottom',
22432243
'yref': 'paper'},
22442244
{'font': {'size': 16},
@@ -2247,17 +2247,16 @@ def test_row_width_and_shared_yaxes(self):
22472247
'x': 0.775,
22482248
'xanchor': 'center',
22492249
'xref': 'paper',
2250-
'y': 0.1875,
2250+
'y': 0.5625,
22512251
'yanchor': 'bottom',
22522252
'yref': 'paper'}],
22532253
'xaxis': {'anchor': 'y', 'domain': [0.0, 0.45]},
2254-
'xaxis2': {'anchor': 'free', 'domain': [0.55, 1.0], 'position': 0.4375},
2254+
'xaxis2': {'anchor': 'free', 'domain': [0.55, 1.0], 'position': 0.8125},
22552255
'xaxis3': {'anchor': 'y2', 'domain': [0.0, 0.45]},
22562256
'xaxis4': {'anchor': 'free', 'domain': [0.55, 1.0], 'position': 0.0},
2257-
'yaxis': {'anchor': 'x', 'domain': [0.4375, 1.0]},
2258-
'yaxis2': {'anchor': 'x3', 'domain': [0.0, 0.1875]}}
2257+
'yaxis': {'anchor': 'x', 'domain': [0.8125, 1.0]},
2258+
'yaxis2': {'anchor': 'x3', 'domain': [0.0, 0.5625]}}
22592259
})
2260-
22612260
fig = tls.make_subplots(rows=2, cols=2, row_width=[1, 3], shared_yaxes=True,
22622261
subplot_titles=('Title 1', 'Title 2', 'Title 3', 'Title 4'))
22632262

0 commit comments

Comments
 (0)