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 for Programming
 LabTalk Forum
 Axis Title

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
Francesco84 Posted - 10/31/2018 : 11:24:53 AM
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










3   L A T E S T    R E P L I E S    (Newest First)
Francesco84 Posted - 11/05/2018 : 03:45:29 AM
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.
Castiel Posted - 10/31/2018 : 9:37:06 PM
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
**********************************************************
Francesco84 Posted - 10/31/2018 : 12:07:24 PM
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

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