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

Function presentation

templategen/definitions.py:599–629  ·  view source on GitHub ↗

Template that increases the size of text and markers/lines for certain trace types

()

Source from the content-addressed store, hash-verified

597
598
599def presentation():
600 """
601 Template that increases the size of text and markers/lines for certain
602 trace types
603 """
604
605 # Create blank template
606 template = Template()
607 template.layout.xaxis.title.standoff = 15
608 template.layout.yaxis.title.standoff = 15
609
610 # Increase global font size by 1.5x (12->18)
611 template.layout.font.size = 18
612
613 # Increase scatter markers and lines by 1.5x
614 opts = {"marker": {"size": 9}, "line": {"width": 3}}
615 template.data.scatter = [opts]
616 template.data.scattergl = [opts]
617 template.data.scatter3d = [opts]
618 template.data.scatterpolar = [opts]
619 template.data.scatterpolargl = [opts]
620 template.data.scatterternary = [opts]
621 template.data.scattergeo = [opts]
622
623 # Increase default height of table cells
624 template.data.table = [{"header": {"height": 36}, "cells": {"height": 30}}]
625
626 # Automargin for pie chart
627 template.data.pie = [{"automargin": True}]
628
629 return template
630
631
632builders["presentation"] = presentation

Callers

nothing calls this directly

Calls 1

TemplateClass · 0.90

Tested by

no test coverage detected