Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: RE: RE: X-Axis Labels
From
"Reg Jordan" <[email protected]>
To
<[email protected]>
Subject
st: RE: RE: RE: X-Axis Labels
Date
Sun, 6 Jun 2010 09:40:07 -0400
Thanks very much for your assistance.
reg
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Weiss
Sent: Friday, June 04, 2010 5:04 PM
To: [email protected]
Subject: st: RE: RE: X-Axis Labels
<>
You have Stata 11, so the FAQ posted earlier is not relevant. Here is a simple solution for you:
***********
clear*
set obs 485
gen double time2=clock("19may2010 13:00:00", "DMY hms")+60*60*1000*(_n-1)
format time2 %tc
gen PM=runiform()
two (line PM time2), xlabel(#4, angle(forty_five) format(%tcDD_Mon))
***********
HTH
Martin
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Weiss
Sent: Freitag, 4. Juni 2010 22:13
To: [email protected]
Subject: st: RE: X-Axis Labels
<>
http://www.stata.com/support/faqs/graphics/nicetime.html
HTH
Martin
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: Freitag, 4. Juni 2010 21:41
To: Statalist
Subject: st: X-Axis Labels
Stata 11.1/IC
Imagine a dataset of this type where time2 ranges from 19may2010 to 8jun2010, and PM is hourly average.
PM time2
.082 19may2010 13:00:00
.011 19may2010 14:00:00
.013 19may2010 15:00:00
.011 19may2010 16:00:00
.012 19may2010 17:00:00
.01 19may2010 18:00:00
formatting: PM double 10.0g time2 double %tc
tw line PM time2
yields x-axis labeled
20may2010 18:40:00 26may2010 13:33:20 01jun2010 08:26:40 07jun2010 03:20:00
which is messy. How may these labels be trimmed to read
20 may 26may 01jun 07jun ?
Thank you for your assistance.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/