The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Legend offset between text and symbol/line

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
maxm22 Posted - 09/20/2018 : 4:47:54 PM
Origin Ver. and Service Release (Select Help-->About Origin): 2018b
Operating System:Win10

Hello everyone,

I have noticed that with certain fonts you will have a vertical offset between your text and the respective symbol/line of your plot in the graph legend (see here: https://gyazo.com/ab95cda2339f7824071b8d1d4b968db1).
Is there any chance to (auto)-adjust that without having to add another text object?

Regards Max
8   L A T E S T    R E P L I E S    (Newest First)
kinsle8 Posted - 11/26/2021 : 04:24:04 AM
nice post
Hideo Fujii Posted - 09/24/2018 : 10:38:43 AM
Hi Max,

As the legend in both preview and graph page (after pressing "Apply") in your screenshot shows
that the general font setting was still under the original default Areal (or Times New Roman).
This behavior is, I think, reasonable, though it seems a kind of bug of refreshing when you modify
the font partially inside this dialog.

Could you please check again if you click OK, then again open the Text Object dialog for the legend,
to see if the general font control is still LM Roman 10, or not?

--Hideo Fujii
OriginLab

P.S. My coworker has let me notice that you can control the width of the legend symbol from the
"Legend/Titles" tab in Plot Details dialog(at page level). This place is difficult to find, so in next
Origin 2019, you will be also able to change the width from the Text Object dialog (under Symbol tab).
maxm22 Posted - 09/22/2018 : 11:08:25 AM
It doesn't really seem to depend on the resolution of the graph window: https://gyazo.com/2685f973185f60709aea41bedaeca8dd (first is Arial)

It should be noted however that the difference between Arial and Times New Roman is just a minor vertical shift that can't really be seen.
Hideo Fujii Posted - 09/21/2018 : 3:53:52 PM
Hi Max,

I couldn't reproduce the difference of legend symbols when I made 3 different versions with
Arial, Time New Roman, and LM Roman. Don't you think it's an artifact to certain display resolution?
Do you still see the difference even the graph window is expanded to full? (Then, could you show
me the screenshot?)

--Hideo Fujii
OriginLab
maxm22 Posted - 09/21/2018 : 3:06:31 PM
Hi Hideo Fujii,

one more thing: this font isn't the only one having this issue.
It also seems like that every font causes (slightly) different legend symbols, even for fonts like Arial and Times New Roman.

Regards Max
Hideo Fujii Posted - 09/21/2018 : 2:44:05 PM
Hi Max,

It's wonderful you found a work-around, and thank you for the font information. For me, it makes
sense because the baseline position of the symbol accords with the control of the text part.
Probably what you did is the right way, but I will further talk to our developers if possible to deal with.

--Hideo Fujii
OriginLab
maxm22 Posted - 09/21/2018 : 2:27:26 PM
Hi Hideo Fujii,

I am using the Latin Modern Roman font and I think that I have found a work-around for this issue. It seems like that the font is directly affecting the position and size of the legend symbol. It looks fine again if you just set text to the specific font and leave out the legend symbol:
\l(1) \f:LM Roman 10(test)
The vertical shift appears as soon as I set the overall legend font to LM Roman which basically translates into:
\f:LM Roman 10(\l(1)) \f:LM Roman 10(test)

A comparison can be seen here: https://gyazo.com/f249fd26440d5107b186fd0691d30e0d

Do you know why a font is able to affect parameters of the legend symbol?

Regards Max
Hideo Fujii Posted - 09/21/2018 : 11:40:03 AM
Hi Max,

I guess no way as it must be a matter of the font design - probably the designer of such fonts wanted
a wider space above the body of regular lower case alphabets - for example to give more space for
the diacritical marks like ´ ` ¨ . See the sample comparison between Times New Roman (less space above)
vs. Century (more space above)



Probably only work-around is to duplicate the legend, having only label part in one, and only plot image
in other, and to put these two legends side-by-side with a little bit vertical shift.

By the way for the future reference, could you give me the names of such fonts you have experienced this issue?

--Hideo Fujii
OriginLab

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000