Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: X-Axis Labels


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: X-Axis Labels
Date   Fri, 4 Jun 2010 22:12:35 +0200

<>

http://www.stata.com/support/faqs/graphics/nicetime.html


HTH
Martin

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of drreg@earthlink.net
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index