MCPcopy Create free account
hub / github.com/PyQt5/PyQt / __setMargins

Method __setMargins

Test/ChartView/ChartView.py:184–194  ·  view source on GitHub ↗

:param margins: margins json

(self, margins=None)

Source from the content-addressed store, hash-verified

182 color, self._chart.backgroundBrush()))
183
184 def __setMargins(self, margins=None):
185 '''
186 :param margins: margins json
187 '''
188 if not margins or not isinstance(margins, dict):
189 return
190 left = margins.get("left", 20) or 20
191 top = margins.get("top", 20) or 20
192 right = margins.get("right", 20) or 20
193 bottom = margins.get("bottom", 20) or 20
194 self._chart.setMargins(QMargins(left, top, right, bottom))
195
196 def __setLegend(self, legend=None):
197 '''

Callers 1

__analysisMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected