Return the width of a single bar, when width of the page is given.
(maxwidth)
| 460 | |
| 461 | |
| 462 | def _get_width(maxwidth): |
| 463 | """Return the width of a single bar, when width of the page is given.""" |
| 464 | width = maxwidth / 3 |
| 465 | if maxwidth <= 60: |
| 466 | width = maxwidth |
| 467 | elif 60 < maxwidth <= 120: |
| 468 | width = maxwidth / 2 |
| 469 | return width |
no outgoing calls
no test coverage detected