Skip to content

Commit

Permalink
Merge pull request #5007 from irgolic/more-visible-subset-graph-symbols
Browse files Browse the repository at this point in the history
owscatterplotgraph: Make + and x symbols thicker
  • Loading branch information
ajdapretnar committed Oct 2, 2020
2 parents e6be7ca + 53ef0c7 commit d67de0f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Orange/widgets/visualize/owscatterplotgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,26 @@ def _define_symbols():
path.lineTo(0.5, 0.5)
Symbols["?"] = path

path = QPainterPath()
plusCoords = [
(-0.5, -0.1), (-0.5, 0.1), (-0.1, 0.1), (-0.1, 0.5),
(0.1, 0.5), (0.1, 0.1), (0.5, 0.1), (0.5, -0.1),
(0.1, -0.1), (0.1, -0.5), (-0.1, -0.5), (-0.1, -0.1)
]
path.moveTo(*plusCoords[0])
for x, y in plusCoords[1:]:
path.lineTo(x, y)
path.closeSubpath()
Symbols["+"] = path

tr = QTransform()
tr.rotate(180)
Symbols['t'] = tr.map(Symbols['t'])

tr = QTransform()
tr.rotate(45)
Symbols['x'] = tr.map(Symbols["+"])


_define_symbols()

Expand Down

0 comments on commit d67de0f

Please sign in to comment.