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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Legend offset between text and symbol/line
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

maxm22

14 Posts

Posted - 09/20/2018 :  4:47:54 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Hideo Fujii

USA
1582 Posts

Posted - 09/21/2018 :  11:40:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - Hideo Fujii on 09/21/2018 12:42:46 PM
Go to Top of Page

maxm22

14 Posts

Posted - 09/21/2018 :  2:27:26 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 09/21/2018 :  2:44:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - Hideo Fujii on 09/21/2018 2:56:12 PM
Go to Top of Page

maxm22

14 Posts

Posted - 09/21/2018 :  3:06:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - maxm22 on 09/21/2018 3:11:13 PM
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 09/21/2018 :  3:53:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - Hideo Fujii on 09/21/2018 3:54:17 PM
Go to Top of Page

maxm22

14 Posts

Posted - 09/22/2018 :  11:08:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 09/24/2018 :  10:38:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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).

Edited by - Hideo Fujii on 09/24/2018 11:09:12 AM
Go to Top of Page

kinsle8

1 Posts

Posted - 11/26/2021 :  04:24:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
nice post
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000