This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz

Is there a way to specify that the logical (x,y) coordinate of a symbol in a scatter plot should be treated as the center of the symbol instead of the topleft corner? I've attached an example of the plot I'm working on, in which I have two scatter series (one for the solid circles and the other for the hollow ones), and a line series which is supposed to show a linear regression on the solid points. Because there are only two solid points (at 36 and 164 degrees), the regression line should pass exactly through the solid points since the regression is an exact fit, but because the symbols are drawn with their (x,y) logical positions as the topleft corners instead of the centers, the regression line appears to miss the points when in fact it's going through their topleft corners. Likewise, the lines from the labels to the circles goes to the circles' topleft corners instead of the centers, which results in some odd effects such as at the 44degree point where the label line passes through the symbol, or the 76degree point where the label line appears to miss entirely. I am hoping there's a way to have the symbols drawn using the (x,y) coordinates I provide as the centers of the symbols instead of the topleft corners. I can adjust the logical coordinates of the scatter series if necessary, but it would be much cleaner if it were handled at the logicaltophysical translation layer. Unfortunately I am using version 7.0.34.23280 but constrained from updating. Thanks, Darrell Pittman 


Hi Darrell, Thanks for contacting us. This issue can be solved by putting a margin on your custom symbol styles. For example, if your symbol size is 8x8, you could use a margin as follows:
This will center the symbols around their plotting positions and cause the regression line and labels to all line up as expected. Apologies for the trouble, we'd left it to the developers to align their custom symbols, though centering by default would have been better. Let me know if you have further questions about this. Jason Fauchelle 


Worked like a champ! Many thanks, Darrell Pittman 


Now that the symbols are centered (thanks very much!), there is a different issue with the labels. As can be seen from the attached examples, when the chart is first rendered all the scatter points have labels. However, after zooming in, some of the labels and their lines are not repainted (in this example, the ones for 76, 108, 116, and 124 degrees; the others are offscale). When the original axis ranges are restored, all the labels appear again. I am wondering whether you've seen this issue before, and/or whether you have an idea where the problem might lay. Thanks, Darrell Pittman 


Hi Darrell, Thanks for pointing this out. This was a bug in the scatter series which I've now fixed. The fix will be available in the next nightly build which will be downloadable after 1200GMT (about 14.5 hours from now). Nightly builds can be downloaded from here: http://www.mindscapehq.com/products/wpfelements/nightlybuilds Let me know if you have further questions. Jason Fauchelle 


Thanks! That did the trick. 
