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
 Contour Plot Options

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
meluks Posted - 03/08/2011 : 11:03:02 AM
Origin Ver. and Service Release: OriginPro 8G SR1
Operating System: Win XP SP3

Hi,

I'm quite new to Origin and I want to "automate" a plot.
I could manage to load a Excel File and to plot it with a template.
First question:
Now I want to modify the Increment of the x-Axis to 0.25. I tried with
Axis axesX = grphLayer.XAxis;  
axesX.Scale.From.dVal = -1;
axesX.Scale.To.dVal = 1;
axesX.Scale.IncrementBy.dVal = 1/4; 

But only the "From" and "To" values changed in the graph. Not the ticks. Is this the wrong command?
Second question:
I want to change the settings for the levels of the color map of the graph. I want a minimum value of 0.1 and a maximum value of 0.8 and 8 for the number of levels. How can I set this with OriginC?
Third question:
How can I set the first row of the book as long name with OriginC?

Hopefully someone can help me Thanks a lot!
2   L A T E S T    R E P L I E S    (Newest First)
meluks Posted - 03/09/2011 : 02:26:34 AM
Hi,

thanks for your help. It worked!
Penn Posted - 03/08/2011 : 10:04:26 PM
Hi,

For the first question:

Two issues:
1. IncrementBy here is not the increment of axis, it is used to specify how to set the increment, if 0 (default value), by specifying the increment value, if 1, by specifying the number of major ticks. When IncrementBy is 0, use Value to set the increment.

2. 1/4 will return zero, if you want 0.25, please use 1.0/4.0.

Sample code can be:

Axis axesX = grphLayer.XAxis;  
//Tree tr;
//tr = axesX.Scale;  // set a break point here to see the tree structure
axesX.Scale.From.dVal = -1;
axesX.Scale.To.dVal = 1;
// axesX.Scale.IncrementBy.dVal = 0;  // default value is 0
axesX.Scale.Value.dVal = 1.0/4.0;


For the second question:

Please refer to Plot XYZ Contour from worksheet and custom lines and Plot Contour from matrix and custom colormap.

For the third question:

You can do that like this: 1. Set the row to the Long Name by SetAsLabel method, and then delete this row by DeleteRow method.

Penn

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