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 for Programming
 LabTalk Forum
 Axis Title
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Francesco84

Italy
21 Posts

Posted - 10/31/2018 :  11:24:53 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. OriginPro 2018 (64bit) and Service Release 1
Operating System: Windows 10

Hi everyone,
I would like to ask a question.

I'm creating a graph with Labtalk, where the Y axis starts from 1E-08 up to 1E+4.
I want to create the X axis label.
This is my code:

layer1.y.from = 1E-8;
layer1.y.to = 1E4;
layer1.type = 2; // Logarithmic scale
layer1.y.labelSubtype = 5; // Scientific notation

label -xb \b(hh:mm); // Title x axis (bold)
xb.y =1E-10; // I move the title to y = 1E-10

The problem is that the title of the X axis is not shown in the graph.
If I write xb.y= from the Command Window, I get a value of the type 1.56520106866529E-25.

I can not understand where I'm wrong.

Thanks for any answers.
Francesco










Francesco84

Italy
21 Posts

Posted - 10/31/2018 :  12:07:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I update what I wrote above.
With Code Builder, If I put a breakpoint at the code line xb.y=1E-10 and then continue the program, I get the X axis title at the correct position.

Very strange.

Francesco
Go to Top of Page

Castiel

343 Posts

Posted - 10/31/2018 :  9:37:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Francesco84

I update what I wrote above.
With Code Builder, If I put a breakpoint at the code line xb.y=1E-10 and then continue the program, I get the X axis title at the correct position.

Very strange.

Francesco



1. To set y axis as log10 scale, it should be
layer1.y.type = 2


2. Before moving the title, you have to wait till the graph gets updated. You may change the code like
sec -pw %H;
xb.y = 1E-10;


It's really awkward that one has to pause the process, explicitly, to wait for some time so the graph shows as expected. But that usually works.


                                          &&&&&&&&&
                                        &&&
                                       &&
                                      &  _____ ___________
                                     II__|[] | |   I I   |
                                    |        |_|_  I I  _|
                                   < OO----OOO   OO---OO
**********************************************************
Go to Top of Page

Francesco84

Italy
21 Posts

Posted - 11/05/2018 :  03:45:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the reply Castiel.

I tried with the sec -pw %H command you suggested, but also in this way I did not get the right position of the title.

So I tried with the sec -p 1 command, and this works.

Francesco.
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