@@ -170,10 +170,6 @@ const StyleTracesPanel = (props, {localize: _}) => (
170170 < BinningNumeric label = { _ ( 'Y Bin Size' ) } attr = "ybins.size" axis = "y" />
171171 < Numeric label = { _ ( 'Max Y Bins' ) } attr = "nbinsy" />
172172 </ PlotlySection >
173- < PlotlySection name = { _ ( 'Gaps Between Cells' ) } >
174- < Numeric label = { _ ( 'Horizontal Gap' ) } attr = "xgap" />
175- < Numeric label = { _ ( 'Vertical Gap' ) } attr = "ygap" />
176- </ PlotlySection >
177173 < TraceMarkerSection >
178174 < Radio
179175 label = { _ ( 'Order' ) }
@@ -286,6 +282,47 @@ const StyleTracesPanel = (props, {localize: _}) => (
286282 < PlotlySection name = { _ ( 'Ticks' ) } >
287283 < Numeric label = { _ ( 'Width' ) } attr = "tickwidth" />
288284 </ PlotlySection >
285+ < PlotlySection name = { _ ( 'Contours' ) } >
286+ < Radio
287+ label = { _ ( 'Type' ) }
288+ attr = "contours.type"
289+ options = { [
290+ { label : _ ( 'Levels' ) , value : 'levels' } ,
291+ { label : _ ( 'Constraint' ) , value : 'constraint' } ,
292+ ] }
293+ />
294+ < Dropdown
295+ label = { _ ( 'Coloring' ) }
296+ attr = "contours.coloring"
297+ options = { [
298+ { label : _ ( 'Fill' ) , value : 'fill' } ,
299+ { label : _ ( 'Heatmap' ) , value : 'heatmap' } ,
300+ { label : _ ( 'Lines' ) , value : 'lines' } ,
301+ { label : _ ( 'None' ) , value : 'none' } ,
302+ ] }
303+ clearable = { false }
304+ />
305+ < Radio
306+ label = { _ ( 'Contour Lines' ) }
307+ attr = "contours.showlines"
308+ options = { [ { label : _ ( 'On' ) , value : true } , { label : _ ( 'Off' ) , value : false } ] }
309+ />
310+ < Radio
311+ label = { _ ( 'Contour Labels' ) }
312+ attr = "contours.showlabels"
313+ options = { [ { label : _ ( 'On' ) , value : true } , { label : _ ( 'Off' ) , value : false } ] }
314+ />
315+ < Radio
316+ label = { _ ( 'Number of Contours' ) }
317+ attr = "autocontour"
318+ options = { [ { label : _ ( 'Auto' ) , value : true } , { label : _ ( 'Custom' ) , value : false } ] }
319+ />
320+ < Numeric label = { _ ( 'Max Contours' ) } attr = "ncontours" />
321+
322+ < ContourNumeric label = { _ ( 'Step Size' ) } attr = "contours.size" />
323+ < ContourNumeric label = { _ ( 'Min Contour' ) } attr = "contours.start" />
324+ < ContourNumeric label = { _ ( 'Max Contour' ) } attr = "contours.end" />
325+ </ PlotlySection >
289326 < TraceTypeSection
290327 name = { _ ( 'Lines' ) }
291328 traceTypes = { [
@@ -381,6 +418,15 @@ const StyleTracesPanel = (props, {localize: _}) => (
381418 < Numeric label = { _ ( 'Min' ) } attr = "cmin" />
382419 < Numeric label = { _ ( 'Max' ) } attr = "cmax" />
383420 </ VisibilitySelect >
421+ < Radio
422+ label = { _ ( 'Smoothing' ) }
423+ attr = "zsmooth"
424+ options = { [ { label : _ ( 'On' ) , value : 'best' } , { label : _ ( 'Off' ) , value : false } ] }
425+ />
426+ </ PlotlySection >
427+ < PlotlySection name = { _ ( 'Gaps Between Cells' ) } >
428+ < Numeric label = { _ ( 'Horizontal Gap' ) } attr = "xgap" />
429+ < Numeric label = { _ ( 'Vertical Gap' ) } attr = "ygap" />
384430 </ PlotlySection >
385431 < PlotlySection name = { _ ( 'Heatmap' ) } >
386432 < Numeric label = { _ ( 'Horizontal Gaps' ) } attr = "xgap" />
@@ -397,32 +443,6 @@ const StyleTracesPanel = (props, {localize: _}) => (
397443 options = { [ { label : _ ( 'On' ) , value : true } , { label : _ ( 'Off' ) , value : false } ] }
398444 />
399445 </ TraceTypeSection >
400- < PlotlySection name = { _ ( 'Contours' ) } >
401- < Radio
402- label = { _ ( 'Coloring' ) }
403- attr = "contours.coloring"
404- options = { [
405- { label : _ ( 'Fill' ) , value : 'fill' } ,
406- { label : _ ( 'Heatmap' ) , value : 'heatmap' } ,
407- { label : _ ( 'Lines' ) , value : 'lines' } ,
408- ] }
409- />
410- < Radio
411- label = { _ ( 'Contour Lines' ) }
412- attr = "contours.showlines"
413- options = { [ { label : _ ( 'On' ) , value : true } , { label : _ ( 'Off' ) , value : false } ] }
414- />
415- < Radio
416- label = { _ ( 'Number of Contours' ) }
417- attr = "autocontour"
418- options = { [ { label : _ ( 'Auto' ) , value : true } , { label : _ ( 'Custom' ) , value : false } ] }
419- />
420- < Numeric label = { _ ( 'Max Contours' ) } attr = "ncontours" />
421-
422- < ContourNumeric label = { _ ( 'Step Size' ) } attr = "contours.size" />
423- < ContourNumeric label = { _ ( 'Min Contour' ) } attr = "contours.start" />
424- < ContourNumeric label = { _ ( 'Max Contour' ) } attr = "contours.end" />
425- </ PlotlySection >
426446 < PlotlySection name = { _ ( 'Lighting' ) } >
427447 < NumericFraction label = { _ ( 'Ambient' ) } attr = "lighting.ambient" />
428448 < NumericFraction label = { _ ( 'Diffuse' ) } attr = "lighting.diffuse" />
0 commit comments