Template that increases the size of text and markers/lines for certain trace types
()
| 597 | |
| 598 | |
| 599 | def 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 | |
| 632 | builders["presentation"] = presentation |