Layout of ternary contour plot, to be passed to ``go.FigureWidget`` object. Parameters ========== title : str or None Title of ternary plot width : int Figure width. height : int Figure height. pole_labels : str, default ['a', 'b', 'c']
(
title="Ternary contour plot", width=550, height=525, pole_labels=["a", "b", "c"]
)
| 12 | |
| 13 | |
| 14 | def _ternary_layout( |
| 15 | title="Ternary contour plot", width=550, height=525, pole_labels=["a", "b", "c"] |
| 16 | ): |
| 17 | """ |
| 18 | Layout of ternary contour plot, to be passed to ``go.FigureWidget`` |
| 19 | object. |
| 20 | |
| 21 | Parameters |
| 22 | ========== |
| 23 | title : str or None |
| 24 | Title of ternary plot |
| 25 | width : int |
| 26 | Figure width. |
| 27 | height : int |
| 28 | Figure height. |
| 29 | pole_labels : str, default ['a', 'b', 'c'] |
| 30 | Names of the three poles of the triangle. |
| 31 | """ |
| 32 | return dict( |
| 33 | title=title, |
| 34 | width=width, |
| 35 | height=height, |
| 36 | ternary=dict( |
| 37 | sum=1, |
| 38 | aaxis=dict( |
| 39 | title=dict(text=pole_labels[0]), min=0.01, linewidth=2, ticks="outside" |
| 40 | ), |
| 41 | baxis=dict( |
| 42 | title=dict(text=pole_labels[1]), min=0.01, linewidth=2, ticks="outside" |
| 43 | ), |
| 44 | caxis=dict( |
| 45 | title=dict(text=pole_labels[2]), min=0.01, linewidth=2, ticks="outside" |
| 46 | ), |
| 47 | ), |
| 48 | showlegend=False, |
| 49 | ) |
| 50 | |
| 51 | |
| 52 | # ------------- Transformations of coordinates ------------------- |
no outgoing calls
no test coverage detected