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
 X Axis problem when zoomming in and out in V8.6
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

newuser_ca

70 Posts

Posted - 04/30/2012 :  3:24:44 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Windows 7, OriginPro 8.6.0(64-bit) Sr3

I noticed that when I press "Z" key to zoom in and then zoom out, the X axis became very ugly. Please see the attachment.

To fix this, I have to change the "Increment" in the "properties".

Can Origin do the scale automatically?

Before:


After zooming in and zooming out:

Hideo Fujii

USA
1582 Posts

Posted - 04/30/2012 :  5:51:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi newuser_ca,

How about to change the Rotation angle ("Custom Tick Labels" tab inX Axis dialog box) to show the tick labels vertically e.g., by setting it to 90? Zooming should keep the label orientation.

--Hideo Fujii
OriginLab
Go to Top of Page

newuser_ca

70 Posts

Posted - 05/01/2012 :  11:10:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks.

It is better, but it is not a perfect solution. It is ideal if Origin can scale by itself.

We use Origin as our plot software to show the result to the user. We don't want the user to configure the plot too much.

Any good idea?

Here is the result when I change the rotation angle (The more you zoom in then zoom out, the closer the X is):

Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 05/01/2012 :  11:29:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi newuser_ca,

I think you can set the "# Major Ticks" instead of "Increment" for the X axis (in the "Scale" tab in "X Axis" dialog) so that even when you zoom-in/out, the number of major tick labels stays the same.

Does it work?

--Hideo Fujii
OriginLab
Go to Top of Page

newuser_ca

70 Posts

Posted - 05/01/2012 :  2:46:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Now it is much better.

I created the plot from OriginC. I added the following codes :
Axis axisx;
Tree tr;
axisx=gl.XAxis;
tr.Root.Scale.IncrementBy.nVal = 1;
tr.Root.Scale.MajorticksCount.nVal = 6;
...
axisx.UpdateThermeIDs(tr.Root);
axisx.ApplyFormat(tr, true, true);

The problem is solved.
Thanks a lot for the help!

Edited by - newuser_ca on 05/01/2012 3:10:23 PM
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