@@ -341,23 +341,23 @@ def test_width_height_priority():
341341 """Test width/height priority: arguments > layout.width/height > defaults."""
342342
343343 # Test case 1: Arguments override layout
344- fig = create_figure (layout_width = 800 , layout_height = 600 )
344+ fig = create_figure (width = 800 , height = 600 )
345345 svg_bytes = pio .to_image (fig , format = "svg" , width = 1000 , height = 900 )
346346 width , height = parse_svg_dimensions (svg_bytes )
347347 assert width == 1000 and height == 900 , (
348348 "Arguments should override layout dimensions"
349349 )
350350
351351 # 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 )
353353 svg_bytes = pio .to_image (fig , format = "svg" )
354354 width , height = parse_svg_dimensions (svg_bytes )
355355 assert width == 800 and height == 600 , (
356356 "Layout dimensions should be used when no arguments provided"
357357 )
358358
359359 # 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 )
361361 svg_bytes = pio .to_image (fig , format = "svg" , width = 1200 )
362362 width , height = parse_svg_dimensions (svg_bytes )
363363 assert width == 1200 and height == 600 , (
0 commit comments