0

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?

user27119
  • 2,500
  • 13
  • 34
  • 3
    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. – Alexey Popkov Jun 03 '16 at 11:50
  • @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! – user27119 Jun 03 '16 at 13:40
  • 1
    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). – Alexey Popkov Jun 04 '16 at 08:31
  • @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? – user27119 Jun 05 '16 at 14:55
  • 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. – Alexey Popkov Jun 05 '16 at 15:10
  • Okay, thanks for your help! – user27119 Jun 05 '16 at 15:11
  • I just have checked with version 10.0.1 and found that PlotLegends -> Automatic works nicely when included in the Notebook I have linked to. My plot markers do appear in the legend but have smaller size than in the plot. The latter issue was discussed on this site already in details. Please use search! – Alexey Popkov Jun 05 '16 at 18:17
  • My guess is that you simply haven't evaluated all the Cells in the Notebook. Please be more careful! – Alexey Popkov Jun 05 '16 at 18:20
  • Eugh!! Quite right, my apologies! I will see if I can recreate this in my own notebook now...thanks again! – user27119 Jun 05 '16 at 18:22

0 Answers0