Message Boards Message Boards

Specify how overlapping plots are displayed with "OverlapStyle"?

Posted 6 years ago

Is there a way to specify how overlapping plots are displayed?

Graphics[{Thickness[0.002], Line[{{{0, 0}, {5, 5}}, {{1, 1}, {4, 4}}, {{2, 2}, {3, 3}}}]}]

enter image description here

It's subtle, but overlapping portions of the lines are thicker. It would be nice for some applications if we could specify such that there is no added thickness, so it would look more like:

Graphics[{Thickness[0.002], Line[{{{0, 0}, {5, 5}}}]}]

enter image description here

POSTED BY: Bryan Lettner
2 Replies

No there is not. This the consequence of having lines thinner than (or around) one pixel probably in combination with your antialiasing settings.

Make the ImageSize bigger, Rasterize it, and then use ImageResize to get a smaller one again.

Graphics[{Thickness[0.002], 
  Line[{{{0, 0}, {5, 5}}, {{1, 1}, {4, 4}}, {{2, 2}, {3, 3}}}]}, 
 ImageSize -> 800]
POSTED BY: Sander Huisman
Posted 6 years ago

Thank you, that might do the trick.

POSTED BY: Bryan Lettner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract