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
 Origin Forum
 Adding Fill Area Plots to Existing Fill Area Plots
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kpongani

USA
17 Posts

Posted - 01/24/2010 :  4:00:57 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8.0 and Service Release 6
Operating System: Vista

I have a basic Fill Area Plot (in this case a simple rectangle).

I want to add a second (and subsequent) Fill Area Plots to the existing graph. However, when I add the second Area Plot to the exist graphing (using Graph, Add Plot to Layer) the x-axis of the graph jumps to the center of the page rather than staying on the bottom. It bears no relation to the y-axis zero. It simply doesn't make sense.

Is this a bug? Why is this happening?

I also noticed that the first graph says it is a High-Low-Close graph, rather than the Fill Area graph I had originally selected. The subsequent graph is correctly labeled as an Area graph.

I realize that I could create separate graphs and then merge them all into one graph, but since my graph needs to display 30 or more small rectangular areas that would require working with 30 or more layers, which would be a nightmare to manage.

Is there any workaround for this? Any help would be greatly appreciated.

larry_lan

China
Posts

Posted - 01/25/2010 :  01:18:58 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Katherine:

Yes, that's bugs. The Fill Area / Area plots are different from other graphs like scatter, etc. Some code need to run before plotting area plots. So, in your case, when you first create a Fill Area plot, you can see the graph type is "High-Low-Close", which is wrong actually. However, when you add another plot from Graph: Add Plot to Layer: Area, you add a different plot to the layer. Area and Fill Area are different, where Area plot is a cumulative graph.

Whatever, we will clean up our area plot in next version. For now, the work-around is using Plot Setup I think. For example:

1. Suppose there are two Fill Area plot dataset in the worksheet:



2. Create an empty graph page, and double-click the layer icon to bring up Plot Setup dialog:



3. Add corresponding data and plot type to the layer:



and



4. Click OK to create graph, then rescale your graph page.

I know it's not a good solution since you have more than 30 datasets. Sorry for the inconvenience.


BTW, I cannot reproduce the x-axis jumps issue, could you send the OPJ to us?

Thanks
Larry
OriginLab Technical Services

Edited by - larry_lan on 01/25/2010 01:22:50 AM
Go to Top of Page

kpongani

USA
17 Posts

Posted - 01/25/2010 :  02:05:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Many thanks for your prompt reply. I have emailed an example OPJ file to you separately.

I will try out your suggestions tomorrow when I'm in lab and let you know how it works with my data set.

I really appreciate the help.

Cheers!
Go to Top of Page

larry_lan

China
Posts

Posted - 01/25/2010 :  03:06:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Katherine:

I can reproduce your problem now. Well, for any Area Plot, Origin will plot the area from Y=0 to the curve, that is, fill color under the curve. In your Project, data in Book1 are all positive, while data in Book2 are Negative. For negative data, area plot will plot the area from 0 to -2 (minimum Y in Book2). That's why you see X axis "jump to the center".

I think you actually want Fill Area plot rather than Area Plot. For current Origin version, you can just use Plot Setup to do that, just like my above reply. Sorry again for the inconvenience.

Thanks
Larry
Go to Top of Page

kpongani

USA
17 Posts

Posted - 01/25/2010 :  10:04:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks! It works much better than managing endless layers.

Here's a prototype of my final graph.
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