简体   繁体   English

Grace 图上的矩形

[英]rectangles on Grace plots

I have been using Grace (xmgrace) plotting for many years.多年来,我一直在使用 Grace (xmgrace) 绘图。 I recently had an important idea for my work, and it involves rectangles on my plots.我最近对我的工作有了一个重要的想法,它涉及到我的地块上的矩形。 Grace supports rectangles (called "boxes"), but when I use a filled "box" it blocks my data curves. Grace 支持矩形(称为“框”),但是当我使用填充的“框”时,它会阻塞我的数据曲线。 I want the curves to show over the filled rectangles.我希望曲线显示在填充的矩形上。 This is driving me nuts.这让我发疯了。 Does anyone know how to put the filled rectangles in the background so they don't block data curves?有谁知道如何将填充的矩形放在背景中,这样它们就不会阻塞数据曲线? Thanks.谢谢。

Unfortunately there is no option in the xmgrace graphical interface that allows you to modify the z order of drawing objects such as boxes:不幸的是,在 xmgrace 图形界面中没有允许您修改绘图对象(例如框)的 z 顺序的选项:

在此处输入图像描述

I also saved the graph as an.agr file and viewed it in a text editor.我还将图形保存为 .agr 文件并在文本编辑器中查看。 There doesn't seem to be any flag within the file format to modify z position, either.文件格式中似乎也没有任何标志来修改 z position。 Same story if you save a parameter file and check it in a text editor.如果您保存参数文件并在文本编辑器中检查它,情况也是如此。

So it looks like it is really not possible in xmgrace.所以看起来这在 xmgrace 中确实是不可能的。

One workaround would be to print to a postscript, EPS or SVG file and open it inside a vector graphics program such as Inkscape (results vary, you might need to experiment with filetypes to see which works best).一种解决方法是打印到 postscript、EPS 或 SVG 文件,然后在 Inkscape 等矢量图形程序中打开它(结果会有所不同,您可能需要尝试文件类型以查看哪种文件最有效)。 Then you can easily alter the z order of objects.然后您可以轻松更改对象的 z 顺序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM