简体   繁体   English

如何在 xmgrace 中添加顶部 x 轴?

[英]How to add top x-axis in xmgrace?

I have plotted a graph with xmgrace, the x-values are in linear scale of nm (for wavelength).我用 xmgrace 绘制了一个图表,x 值是 nm 的线性刻度(对于波长)。 I want to add a top reciprocal x-axis in eV units.我想以 eV 单位添加顶部倒数 x 轴。

The formula to transform nm to eV is:将 nm 转换为 eV 的公式为:

eV=\frac{1240}{nm}

I could not find a way to add another x-axis without adding a new data set.在不添加新数据集的情况下,我找不到添加另一个 x 轴的方法。

This is possible without any particular hack which, since we are dealing with xmgrace, is quite amazing:-) Here is how you do it:这是可能的,无需任何特定的 hack,因为我们正在处理 xmgrace,这非常令人惊讶:-) 这是您的操作方法:

  • Open the axis properties打开轴属性
  • Select the "Alt X axis" option in the "edit" drop-down menu Select “编辑”下拉菜单中的“Alt X 轴”选项
  • Go to the "Tick labels" tab Go 到“勾选标签”选项卡
  • Select "Opposite" as the Placement side Select“相反”作为放置侧
  • Put "1240 / $t" in the "Axis transform" textbox at the bottom将“1240 / $t”放在底部的“轴变换”文本框中
  • Click "Apply"点击“申请”

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

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