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
 placement axis ticks in column plot not consistent

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
Biloba Posted - 01/21/2016 : 04:46:20 AM
Hi!

I am doing some column plots of rainfall data for different years. In the x axis I have major ticks every week and minor ticks for every day. When I plot the data corresponding to the first year, each column is placed between two ticks, while when I do it for the second year, each column is in top of one tick (which is how I want it to be). Why is this happening if I have not modified any settings? Why the placement of the columns vs.the X-axis ticks is not consistent?

See the two examples here:



How can I solve this?

Thanks a lot!

3   L A T E S T    R E P L I E S    (Newest First)
KenLefebvre Posted - 01/22/2016 : 11:45:14 AM
You're welcome Aida! Glad you found a workaround.
My supervisor has also suggested that if you open the column properties (dbl-click on header) for your data and set your date format to display with hours and minutes as well, you might find your data is set to 00:00 for each respective date.

However the tick marks on your axis may be from 12:00:00.000 for their range, so if you go into the axis dialog after modifying your date format, you might also be able to adjust the tick marks by setting the From and To to be at ##/##/## 00:00:00.000 for the given date range, rather than midday.

Ken
Biloba Posted - 01/22/2016 : 05:00:45 AM
Hi Ken,

After arranging the x-ranges so that they match exactly in size, the problem remains the same:




But after trying a bit I found that the problem is because I had defined the major ticks by 1 week intervals and the minor by count. If I change it to match my dataset then the ticks are placed in the middle of the column :)

Thanks for your help!

Aida
KenLefebvre Posted - 01/21/2016 : 09:21:41 AM
Hi Biloba,

The intervals of the tick-marks are relative to the number of points of x-data, because the two ranges of dates are slightly different in size, the tick marks aren't adjusted exactly alike. One way to correct for this is to double click on the axes and define them as the same range. Or in that same dialog you can set major ticks to display "By Custom Positions" if you really want to keep these axes in the same place relative to your data.

E.g. You have x values 4 and 5, your tick mark will display between them is if it's set to mark 4.5.

After defining a series of custom ticks and/or a custom interval for your x-axis, you could set the "rescale" option to manual. Then, closing out of the axis dialog, you can right-click on the title bar of your graph window and save this as a template which you could use to plot other data of a similar scope (obviously adjusting labels for the correct date).

This is just one idea, perhaps one of my coworkers can further elaborate on this.

Best regards

Ken Lefebvre
Technical Service Engineer
OriginLab

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