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
 Forum for Origin C
 Graphic Display Error log

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
D.B. Posted - 02/25/2011 : 10:35:59 AM
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.
3   L A T E S T    R E P L I E S    (Newest First)
D.B. Posted - 02/28/2011 : 12:17:36 PM
@ greg
Thank you for the solution.

Greetings
D.B.
greg Posted - 02/25/2011 : 4:58:16 PM
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'.)
D.B. Posted - 02/25/2011 : 10:38:27 AM
Sorry wrong subforum. I thought I had the right one.

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