0
$\begingroup$

Before I start I should mention that this question has been posted in another form here, Point Renderings Slightly Off in Mathematica.

However my case is slightly different in that I do not use Graphics because of its limited array of symbols. I simply use PlotMarkers->{\[FilledSquare],15}, for example. I encounter the same problem that the markers appear slightly off from the point they are supposed to be on, this is especially obvious when looking at the plot legend:enter image description here

Does anyone have a fix for this? The working solution in the post I mentioned is to use BaseStyle -> Opacity[0.999] but this only works with Graphics. I also tried using Text[Style[\[FilledSquare],15]] within Graphics to see if the BaseStyle -> Opacity[0.999] fix would work this way - sadly no joy!

Thoughts?

$\endgroup$
  • 3
    $\begingroup$ Your question is an exact duplicate of the question you have linked to but you haven't read the answers carefully! You can't achieve exact positioning of the glyph-based plot markers like \[FilledSquare]: currently it is impossible. Instead you should use only primitive-based plot markers. I recommend my package specially designed for this. $\endgroup$ – Alexey Popkov Jun 3 '16 at 11:50
  • $\begingroup$ @AlexeyPopkov Thanks your package works nicely! One question, how do you get the markers to appear in the Plot Legend? Also if you create an answer to this post I will accept your package as the answer. Thanks again and nice work! $\endgroup$ – Q.P. Jun 3 '16 at 13:40
  • 1
    $\begingroup$ With version 10 and PlotLegends -> Automatic option the markers appear in the legend. Check the Notebook from this comment for examples of use (and add PlotLegends -> Automatic to show the legend). $\endgroup$ – Alexey Popkov Jun 4 '16 at 8:31
  • $\begingroup$ @AlexeyPopkov Unfortunately, this does not work. In the notebook you pointed me to, adding PlotLegends->Automatic causes all the plot makers to render as their respective commands e.g. fm{Triangle}. And in my note book (written in version 10.1) it does nothing at all. Do you have any other suggestions? $\endgroup$ – Q.P. Jun 5 '16 at 14:55
  • $\begingroup$ Can't test right now, it worked for me with version 10.4.1. There are many questions regarding plot legends on this site, I'm sure this case is covered. Please use search. $\endgroup$ – Alexey Popkov Jun 5 '16 at 15:10