Adding text to plot that is a crystal direction

조회 수: 4 (최근 30일)
Benjamin Cowen
Benjamin Cowen 2017년 1월 10일
댓글: Walter Roberson 2017년 1월 11일
Hey, so I want to add text to a plot that is a crystal direction. Sounds easy enough, right?
It's easy to do [110], but what if I want to do [-110]? If you are familiar with crystallography, you know that the negative sign should be above the 1. How can I do this?
  댓글 수: 1
Star Strider
Star Strider 2017년 1월 10일
I doubt many here are familiar with crystallography. (I’m not.) Do you have an open-source (not behind a paywall) reference so we can possibly understand what you’re doing?

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2017년 1월 10일
text(xpos, ypos, '$\stackrel{-}{1} 1 0$','interpreter','latex')
or '$\bar{1} 1 0$' or '$\overline{1} 1 0$'
The shortest line is with \bar, then \stackrel, and \overline is longest.
The gap between the line and the digit appears to be smallest with \bar, then \overline, and largest with \stackrel
I find the \stackrel version easiest to read.
  댓글 수: 8
Benjamin Cowen
Benjamin Cowen 2017년 1월 11일
I see, that makes sense. One last question if you don't mind - The spacing looks nice for all of the ones that use the LATEX. But I have some crystal directions that are just [100] and it looks really cramped. How can I apply the LATEX to this without using overline?
Walter Roberson
Walter Roberson 2017년 1월 11일
Put $ pair around the text perhaps?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by