MCPcopy Index your code
hub / github.com/plotly/plotly.py / gridon

Function gridon

templategen/definitions.py:671–685  ·  view source on GitHub ↗

Template to enable x and y-grid by default

()

Source from the content-addressed store, hash-verified

669
670
671def gridon():
672 """
673 Template to enable x and y-grid by default
674 """
675 # Create blank template
676 template = Template()
677 template.layout.xaxis.showgrid = True
678 template.layout.xaxis.title.standoff = 15
679 template.layout.yaxis.showgrid = True
680 template.layout.yaxis.title.standoff = 15
681
682 # Automargin for pie chart
683 template.data.pie = [{"automargin": True}]
684
685 return template
686
687
688builders["gridon"] = gridon

Callers

nothing calls this directly

Calls 1

TemplateClass · 0.90

Tested by

no test coverage detected