@@ -341,23 +341,23 @@ def test_width_height_priority():
341
341
"""Test width/height priority: arguments > layout.width/height > defaults."""
342
342
343
343
# Test case 1: Arguments override layout
344
- fig = create_figure (layout_width = 800 , layout_height = 600 )
344
+ fig = create_figure (width = 800 , height = 600 )
345
345
svg_bytes = pio .to_image (fig , format = "svg" , width = 1000 , height = 900 )
346
346
width , height = parse_svg_dimensions (svg_bytes )
347
347
assert width == 1000 and height == 900 , (
348
348
"Arguments should override layout dimensions"
349
349
)
350
350
351
351
# Test case 2: Layout dimensions used when no arguments
352
- fig = create_figure (layout_width = 800 , layout_height = 600 )
352
+ fig = create_figure (width = 800 , height = 600 )
353
353
svg_bytes = pio .to_image (fig , format = "svg" )
354
354
width , height = parse_svg_dimensions (svg_bytes )
355
355
assert width == 800 and height == 600 , (
356
356
"Layout dimensions should be used when no arguments provided"
357
357
)
358
358
359
359
# Test case 3: Partial override (only width argument)
360
- fig = create_figure (layout_width = 800 , layout_height = 600 )
360
+ fig = create_figure (width = 800 , height = 600 )
361
361
svg_bytes = pio .to_image (fig , format = "svg" , width = 1200 )
362
362
width , height = parse_svg_dimensions (svg_bytes )
363
363
assert width == 1200 and height == 600 , (
0 commit comments