刻度线在图形中无法缩放 - 为什么以及如何解决这个问题?
当我们以越来越高的分辨率光栅化 3D 图像时,每个图像元素都应该按比例变得越来越大。然而,刻度线在一段时间后就会停止生长。有没有办法确保刻度线像文本一样与图形的其余部分成比例增长?
插图:
g = Graphics3D[Sphere[], Axes -> True, ImageSize -> 200]
Table[Image[
ImageResize[Rasterize[g, "Image", ImageResolution -> n 72],
Scaled[1/n]], Magnification -> 1], {n, 6}]
Column[Table[
Image[Rasterize[g, "Image", ImageResolution -> n 72], Magnification -> 1],
{n, 6}], Alignment -> Left]
As we rasterize 3D images at higher and higher resolution, every image element should get proportionally bigger and bigger. However, tick marks stop growing after a while. Is there a way to ensure that tick marks should grown proportionally to the rest of the graphic, like text does?
Illustration:
g = Graphics3D[Sphere[], Axes -> True, ImageSize -> 200]
Table[Image[
ImageResize[Rasterize[g, "Image", ImageResolution -> n 72],
Scaled[1/n]], Magnification -> 1], {n, 6}]
Column[Table[
Image[Rasterize[g, "Image", ImageResolution -> n 72], Magnification -> 1],
{n, 6}], Alignment -> Left]
Click here to see the output (too big to be conveniently inlined)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅http://reference.wolfram.com/mathematica/ref/Ticks.html“更多信息”和“应用程序”部分。您可以像这样指定刻度长度:
See http://reference.wolfram.com/mathematica/ref/Ticks.html "More information" and "Application" sections. You can specify tick length like this: