Skip to content

Commit d67de0f

Browse files
authored
Merge pull request #5007 from irgolic/more-visible-subset-graph-symbols
owscatterplotgraph: Make + and x symbols thicker
2 parents e6be7ca + 53ef0c7 commit d67de0f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Orange/widgets/visualize/owscatterplotgraph.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,26 @@ def _define_symbols():
256256
path.lineTo(0.5, 0.5)
257257
Symbols["?"] = path
258258

259+
path = QPainterPath()
260+
plusCoords = [
261+
(-0.5, -0.1), (-0.5, 0.1), (-0.1, 0.1), (-0.1, 0.5),
262+
(0.1, 0.5), (0.1, 0.1), (0.5, 0.1), (0.5, -0.1),
263+
(0.1, -0.1), (0.1, -0.5), (-0.1, -0.5), (-0.1, -0.1)
264+
]
265+
path.moveTo(*plusCoords[0])
266+
for x, y in plusCoords[1:]:
267+
path.lineTo(x, y)
268+
path.closeSubpath()
269+
Symbols["+"] = path
270+
259271
tr = QTransform()
260272
tr.rotate(180)
261273
Symbols['t'] = tr.map(Symbols['t'])
262274

275+
tr = QTransform()
276+
tr.rotate(45)
277+
Symbols['x'] = tr.map(Symbols["+"])
278+
263279

264280
_define_symbols()
265281

0 commit comments

Comments
 (0)