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
 Plotting double-X graphs

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
lijbereket Posted - 11/24/2020 : 11:41:12 AM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2020b
Operating System:Windows 10

Hi,

Origin has a neat option for drawing graphs with multiple Y-axes. However, I have not found an option for plotting a graph with a double X-axes. I have three columns of data, two of which I would like to draw as separate(un-linked)X-axes at the top and bottom of the plotting area. Is it possible to do this? If so, how?

Thank you!
9   L A T E S T    R E P L I E S    (Newest First)
snowli Posted - 01/04/2021 : 12:18:48 PM
Hi,

If you have different positive and negative error bars, you need to first make sure both error bars are added in graph.

In your graph, if you double click the plot, in left side of Plot Details dialog, I think you will only see plot node A(X), B(Y) and one error bar node. E.g. A(X), B(Y), C(xErr).

If u choose the error bar node. on Error bars tab, u will see there are checkboxes for Plus, Minus, X Error bar. I suppose it has Minus checked and Plus unchecked so you only see it on left side.

We need to first add J error bar into graph.
You can go to worksheet and highlight column J header. Move mouse to right/left edge of the column till cursor changes into a graph icon. Drag it to the graph. It will add J column as X Error bar to the plot.

Now double click plot to open Plot Details dialog again. You should see another error bar node: A(X), B(Y), J1(XErr) node. Uncheck Minus checkbox with make it only show on the right side.


Thanks, Snow


lijbereket Posted - 12/31/2020 : 6:33:25 PM
Thanks, Snow, for your response.

I got stuck when trying to include X-error bars in my latest result. The Y-Shared Double-X template in the OriginLab blog post has a column (Column C in figure below) for including errorbars; however, it assumes the same error value in the positive and negative directions. I have different values in these directions, so I inserted an extra column (J1 Column in figure) and set it as a postive X-error and entered the negative X-error values in the original error column of the template. My resulting graph only shows the negative error values; the positive values from the extra column do not show up. Is there a way around this?

It is also worth noting that double-clicking on the negative error bars, the J1 column does not appear in the layer.

snowli Posted - 11/25/2020 : 10:50:54 AM
Hello,

Great to know it works.

By default when you drag a tick label, all tick labels move together.
But u can set one label to be a special one. Then u can move or hide the individual tick label.

Here are the steps:
Double click any tick label on the top axis to open Axis dialog again.
Go to Special Tick tab.
Enter 0 as a new entry there and click OK.
--> Now 0 becomes a special tick label.
Click 0 and move it a little bit to avoid overlapping.
Also on Special Tick Labels tab, u can click Details button. Then go to Label Format tab and uncheck Auto. Freely customize color, position, show leader line, etc. of the special tick label.
https://youtu.be/_AZ04UyFo-g

Thanks, Snow
lijbereket Posted - 11/24/2020 : 7:47:54 PM
Thank you, Snow, for bringing the Origin Blog page to my attention. I used the file provided in the page. Except for axis labels overlapping a little, it seems to have worked. In case anyone following this thread is wondering, here is what the final result looks like (done using a similar set of data points to those in previous images I posted)

snowli Posted - 11/24/2020 : 5:58:03 PM
Hello,

I think what you want is Y-shared Double-X so only one plot in graph with corresponding bottom X and top X.

Could you try
http://blog.originlab.com/how-to-make-a-neat-double-x-graph

3) Y-shared Double-X part.
There is a link of zip file. U can unzip it and open the project in Origin. Fill in your data and try it according to the blog


Thanks, Snow
lijbereket Posted - 11/24/2020 : 5:32:12 PM
Thank you, James, for your suggestion. So I have tried switching the From and To values, as you said, and also the Double-X Plot tool you provided in the link. Both attempts don't quite achieve what I want to do, but it's getting close. Here are my results (I have tried to give a clear description below; let me know if I did not do a good job):

1) Switching From and To values does reverse the top axis. However, it still leaves two sets of data points (the blue and black ones). I would like to have one set of data points, with each data point having coordinates (bottom-X value, top-X value, Y value). Now I can turn off the blue data points, but the problem is that the black data points do not align with the top-X axis (see figure below).



2)In the Double-X Plot tool, I used Arrhenius graph type and made the necessary edits. The result is shown below. The predicament in this case is that the top-X axis is not linked to the corresponding column in the data table. This means there is no correspondence between a latitude value and temperature (data points should align with every 10-degree latitude). Rather the top-axis value of a data point simply depends on the range (From-To values) and the Type of axis (Linear, Log, etc) used. I don't know if there is a way to tell Origin to take top-axis values from a specific column in the data table, but my guess is that is what I need to do to make this work.

YimingChen Posted - 11/24/2020 : 1:53:31 PM
Hi,

Maybe you can double click on the upper x axis, switch the From and To values under Scale tab. If your two x axes are linked with some formula, you can also try this app:
https://www.originlab.com/fileExchange/details.aspx?fid=558

James
lijbereket Posted - 11/24/2020 : 12:44:17 PM
Thank you for your response, @Szone1! Your hint has gotten me a step closer to the graph I would like to plot.

I have included my result below. Instead of two Y-axes, I would like to have one shared Y-axis between the two X-axes. This way the top axis will be reversed so that low latitude values will correspond to high temperature. My attempts so far to achieve this have been unsuccessful. Is it possible to plot it as described?

Szone1 Posted - 11/24/2020 : 11:57:55 AM
Try the 9th button of this tool:
https://www.originlab.com/fileExchange/details.aspx?fid=165

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