Adding text to plot that is a crystal direction
조회 수: 4 (최근 30일)
이전 댓글 표시
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
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
2017년 1월 10일
Based on http://tex.stackexchange.com/questions/9318/question-mark-over-equals-sign and https://yoo2080.wordpress.com/2014/11/30/putting-a-bar-or-a-tilde-over-a-letter-in-latex/ I see you can do
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!