@@ -3573,7 +3573,7 @@ function testBar3PlotData(tc)
35733573 " lighting" , PlotlyTestCase .Any(), ...
35743574 " opacity" , PlotlyTestCase .Any(), ...
35753575 " showscale" , PlotlyTestCase .Any(), ...
3576- " showlegend" , false ...
3576+ " showlegend" , true ...
35773577 );
35783578 if is_octave()
35793579 % Octave's bar3 patches convert to a mesh3d face
@@ -3589,6 +3589,7 @@ function testBar3PlotData(tc)
35893589 expected.color = PlotlyTestCase .AnyColorString();
35903590 expected.intensity = PlotlyTestCase .Any();
35913591 expected.showscale = false ;
3592+ expected.showlegend = false ;
35923593 end
35933594 tc .verifyEqualStructs(p.data{1 }, expected , ' AbsTol' , 1e- 15 );
35943595 if is_octave()
@@ -3625,7 +3626,7 @@ function testBar3hPlotData(tc)
36253626 " lighting" , PlotlyTestCase .Any(), ...
36263627 " opacity" , PlotlyTestCase .Any(), ...
36273628 " showscale" , PlotlyTestCase .Any(), ...
3628- " showlegend" , false ...
3629+ " showlegend" , true ...
36293630 );
36303631 if is_octave()
36313632 % Octave's bar3h patches convert to a mesh3d face
@@ -3641,6 +3642,7 @@ function testBar3hPlotData(tc)
36413642 expected.color = PlotlyTestCase .AnyColorString();
36423643 expected.intensity = PlotlyTestCase .Any();
36433644 expected.showscale = false ;
3645+ expected.showlegend = false ;
36443646 end
36453647 tc .verifyEqualStructs(p.data{1 }, expected , ' AbsTol' , 1e- 15 );
36463648 if is_octave()
@@ -3775,13 +3777,18 @@ function testContourfPlotData(tc)
37753777 " colorscale" , PlotlyTestCase .Any(), ...
37763778 " line" , struct( ...
37773779 " width" , PlotlyTestCase .Any(), ...
3778- " color" , " rgb(0,0,0)" ...
3780+ " color" , " rgb(0,0,0)" , ...
3781+ " dash" , PlotlyTestCase .Any(), ...
3782+ " smoothing" , PlotlyTestCase .Any() ...
37793783 ), ...
3780- " showlegend" , false ...
3784+ " showlegend" , false , ...
3785+ " reversescale" , false ...
37813786 );
3782- if ~is_octave()
3783- % MATLAB's contour handler adds reversescale
3784- expected.reversescale = false ;
3787+ if is_octave()
3788+ % Octave's contour handler emits a simpler line
3789+ % struct and no reversescale
3790+ expected.line = rmfield(expected .line, {' dash' , ' smoothing' });
3791+ expected = rmfield(expected , ' reversescale' );
37853792 end
37863793 tc .verifyEqualStructs(p.data{1 }, expected , ' AbsTol' , 1e- 15 );
37873794 if is_octave()
0 commit comments