Skip to main content
11 events
when toggle format what by license comment
Dec 9, 2019 at 18:29 comment added Szabolcs Here's a cross function. The second argument is the size in printer's points. It acts like AbsolutePointSize and is independent of the figure size. cross[pos_, s_] := {Line[{Offset[{-s, 0}, pos], Offset[{s, 0}, pos]}], Line[{Offset[{0, -s}, pos], Offset[{0, s}, pos]}]}
Dec 9, 2019 at 17:05 history closed MarcoB
m_goldberg plotting
Duplicate of How can we make publication-quality PlotMarkers without version 10?
Dec 9, 2019 at 17:00 review Close votes
Dec 9, 2019 at 17:10
Dec 9, 2019 at 16:45 comment added Kvothe @MarcoB, indeed it might contain the answer. On a side note, it is kind of bad if the canonical answer in all versions is only found in a question that seems to be specifically about how to keep working with old versions of Mathematica. In fact it seems that the before version 10 part of the question is not that important yet it has very prominent place in the title.
Dec 9, 2019 at 16:19 comment added Alexey Popkov Looks like a use case for my PolygonMarker function.
Dec 9, 2019 at 15:07 comment added Szabolcs You could write a tiny function that takes a coordinate pair and construct a cross on top of it from Lines. Then you can use with with Epilog or with Show (as in your example). Offset coordinates will be useful for consistent sizing.
Dec 9, 2019 at 13:19 history edited Kvothe CC BY-SA 4.0
added 149 characters in body
Dec 9, 2019 at 12:59 comment added Kvothe Intuitively what I want to do is just Show[plot,Graphics[Point[{x, y}]]], but with Point replaced with cross producing a cross at the place of the point.
Dec 9, 2019 at 12:57 comment added Kvothe I would prefer not to add a whole ListPlot and instead add a Graphics object. I could do this with two lines. But I would want to declare some function cross[xylist_] that takes only the center around which there should be a cross and not all the endpoints of the lines. Perhaps the best solution is something of this form but I would still need to do something complicated in order to find the required length of the lines so that I get an absolute size and not something that depends on the data.
Dec 9, 2019 at 11:54 comment added Szabolcs I don't understand the question. Do you want to change the plot marker in ListPlot? Or do you want to add a single cross to an arbitrary existing graphic? Also, if you know how to add a point with Point, adding a cross is exactly the same, with two Lines. Please clarify and address these.
Dec 9, 2019 at 11:26 history asked Kvothe CC BY-SA 4.0