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
 Origin Forum
 Strange axis swap in image plot

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
Frank_H Posted - 06/29/2005 : 06:37:50 AM
Origin Version (Select Help-->About Origin): 7.5 SR5
Operating System: XP

I have a strange issue with image plots:

I am using image (intensity) plot as a fast and efficient plot for data (faster and smaller output files compared to contour plot).
The problem starts if I want to use negative increment of the (y-)axis (From-y > To-y). When doing that, the bottom x-axis is suddenly plotted at the top of the graph! But looking into the Format->x-axis options I find that Origin still thinks that it is the bottom axis.

Is this a bug or a feature, and if its a feature, how do I turn it off?

Please do not suggest to swap the MinRow and MaxRow setting in the matrix instead of swapping the axis - of cause I thought of that, but I would like to have consistency of different data sets without the need of tracking sign changes.

Regards,
Frank
3   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 06/29/2005 : 2:31:10 PM
Looks like this property is not available via theme access, so LT is needed. You need to use proper graph layer's LT_execute,






void sy(int nSet)
{
GraphPage gp = Project.Pages();
if(!gp)
return;

foreach(GraphLayer gl in gp.Layers)
{
string strLT = "layer.Y.reverse=" + nSet;
gl.LT_execute(strLT);
}
}








CP


Frank_H Posted - 06/29/2005 : 1:32:51 PM
Hi Greg

Thanks, that helps!
Can I access this property also in OriginC in the Layer tree? I did not find this property when printing the tree with
gl.GetLayerContents(tr);
out_tree(tr);

Regards,
Frank
greg Posted - 06/29/2005 : 10:36:11 AM
Early on it was decided that image plots should use the coordinate system where Y increases from the top down - as opposed to normal Cartesian where Y increases from the bottom up.
The Image Plot does this with a LAYER property which reverses the direction of the Y axis. The 'Top' and 'Bottom' are still in the Cartesian sense, so that 'Top' X axis that you normally see is really the 'Bottom' X axis being displayed at the top of the image due to that layer property :

LAYER.Y.REVERSE = 1

If you just want the normal Cartesian system, change the property :

LAYER.Y.REVERSE = 0

If you always want your Image Plots this way, saving the Template will not help here because code in the Plot3D.OGS file handles this. You should change the code in the [ImagePlot] section if you prefer Cartesian.


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