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 for Programming
 LabTalk Forum
 colored boxes behind data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

JThieser

16 Posts

Posted - 02/15/2012 :  05:27:11 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:
hi togehter,
maybe you can help me.
I'm usually working with time series of data.
e.g. 324-340 (Days of the year).
Now it would like to highlight parts of this time series with different colors. e.g 325.6-328.
I would like to have then colored boxes over this time period.
I tried just to make a worksheet with this times and to to make a stack plot. but i cannot manage it that only the parts i would like to have a colored box is colored because using this stack plot i have also on the left and right handside of the beginning and end points the color...
Any ideas??

Thanks

Drbobshepherd

USA
Posts

Posted - 02/15/2012 :  6:24:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The easiest thing to do is draw a rectangle on your plot, then double-click on the rectangle to open the Object Properties window. Select the Dimensions tab, and select Units: scale; this will allow you to size and position your rectangle according to the x-y coordinates of your plot. Color and fill your rectangle the way you want (Do not pick same color as your data plot); if you do not want a border, make the border and fill colors the same. Then click OK.

Finally, right-click on your rectangle and select "Push to back of data" to display your data in front of your rectangle.

DrBobShepherd
Go to Top of Page

easwar

USA
1965 Posts

Posted - 02/16/2012 :  11:54:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You may want to look at this tutorial:
http://originlab.com/www/helponline/Origin/en/mergedProjects/Tutorial/Tutorial/Line_Graph_with_Recession_Bars.html
which shows how to plot such "recession" bars using location data stored in worksheet column.

This will color all the bars with one color however. But it may be easier to have your data in the sheet and use that data with such a template, if you are really looking for a script solution, than drawing rectangles manually.

Easwar
OriginLab
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