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
 Forum for Origin C
 Graphic Display Error log
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

D.B.

Germany
4 Posts

Posted - 02/25/2011 :  10:35:59 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 8.5.0G SR1
Operating System: Win XP

I tried to plot data from the following forumlar in y-log Plot:
Y = -13.6*x*x;
with x values from 1 to 32 and caluclated y values.

But because the values are less then 0 it was not possible to set a plot range from -20000 to -1. (Yes I know that log(x) is not defined for x<0. But a log like display style is sometimes also interessting for negative values.)

Now I tried to plot the y = 13.6*x*x formular instead of the y = -13.6*x*x formular and plot it in y-log style with inverted y-range from y_min=20000 to y_max=1.

But the result was a graphic display error.

as you see, the angular between x and y axis is not anymore 90° and also the numbers are wrong placed.

Here you find the opj file
http://www.originlab.com/ftp/forum_and_kbase/Images/graphicalDisplayProblem.opj

First I want to inform the Origin Company and secondly I am looking for a solution how to display negative values with strongly different orders of magnitude in a logarithmic way without manually calculating a Y2 = - log(-Y) from the negative Y values.

With best regards
D.B.

D.B.

Germany
4 Posts

Posted - 02/25/2011 :  10:38:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Sorry wrong subforum. I thought I had the right one.
Go to Top of Page

greg

USA
1379 Posts

Posted - 02/25/2011 :  4:58:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This is a bug in 8.5SR1 that has been fixed in internal builds and will be available to maintenance customers when 8.5.1 is released or to everyone else when 9.0 is released.

There is a workaround. After you first create the plot:
Open the Script Window (under the Window menu in Origin)
Copy and paste the next line
layer.y.reverse = 1
and press Enter
You should see the X axis flip to the top of the graph
Select Format : Axes : Y Axis and change the Scale Type to Log10
Enter From = 1 and To = 20000
and click OK

(You can also use the Tick Labels and Title & Format tabs to use the Top axis rather than the Bottom since the above command has exchanged 'top' and 'bottom'.)
Go to Top of Page

D.B.

Germany
4 Posts

Posted - 02/28/2011 :  12:17:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
@ greg
Thank you for the solution.

Greetings
D.B.
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