Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
If it is not possible to make the command work as intended in Mathematica 13, is there a simple way to reimplement the original definitions from Mathematica 12 in a new custom command?
Nice idea! Anyhow, it leads to problems if PlotRangeClipping is indeed needed. One could make a new empty plot, put the original plot with PlotRangeClipping as an inset and then add the Text, but this is exactly the fiddling I want to avoid. This question is not to find a working solution, but to find a way to easily change this option.
Thank you for your input! The proposed solutions work either with Labeled or by fiddeling with text in Epilog. To add a litte bit to the problem: Labeled has two distinct problems: 1. it adds extra space around the plot and 2. the alignment of the text is complicated. I could of course fiddle around with Labeled, Epilog, Text, Inset etc. until I get a satisfying result and I did so in the past. But now I want to find an easier solution. Especially since newer users always stumble across this problem and post the same questions.
@ihojnicki your solution works great! Thank you very much! Could you please write an answer in which you explain what RelieveDPZFighting does and why it works? Also for you to collect the bounty!
@Alexei changing the RasterSize is not a good solution. By chance it can happen that no line is present in the rasterization, but this is no reliable solution.
An alternative would be to use "BSPTree" as "3DRenderingMethod" instead. But compared to "Automatic" it produces very ugly shadows with my data (very high contrasts and unnaturally looking). Changing the lighting accordingly is also no option, since one rendering takes 10min and I have many datasets. So an alternative answer to removing the meshlines resulting from "HardwareDepthPeeling", which is the "3DRenderingMethod" used automaticly, would be to have better shadows (compareable with "HardwareDepthPeeling") for "BSPTree".
I don't know what you mean. In my case the result of the ResourceFunction is exactly the ImageSize in printers points I needed. There is no mismatch. Thank you very much!