MCPcopy Create free account
hub / github.com/Derive-Risk/pyfair / _tweak_axes

Method _tweak_axes

pyfair/report/tree_graph.py:81–92  ·  view source on GitHub ↗

Add title and run common changes

(self, ax)

Source from the content-addressed store, hash-verified

79 self._statuses['color'] = self._statuses['status'].map(self._colormap)
80
81 def _tweak_axes(self, ax):
82 """Add title and run common changes"""
83 # Set limits
84 ax.set_title('Calculation Dependency Tree', fontsize=20)
85 ax.set_xlim(0, 9_400)
86 ax.set_ylim(0, 2_900)
87 # Disappear axes and spines
88 for axis in [ax.xaxis, ax.yaxis]:
89 axis.set_visible(False)
90 for spine_name in ['left', 'right', 'top', 'bottom']:
91 ax.spines[spine_name].set_visible(False)
92 return ax
93
94 def _generate_rects(self, ax):
95 """Generate rectangles, which cannot be done via apply"""

Callers 1

generate_imageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected