Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How I could do to increase the space between each tick?

    Hello!

    I have a tsline graph with quarter time from 1994q3 to 2015q3, where 1994q3 is the third quarter of 1994. The quater time is the x axis. I need increase the space between each tick. For example if the space between each tick is 0.25 cm, I need increase the space between each tick to 0.75 cm.


    I am using the following programming to generate the graph:

    tsline pib if pib<6, lwidth(thick) lcolor(midblue) yti("GDP" " ", ///
    height(10) ) || (tsline depvis if depvis<39, lwidth(thick) lcolor(orange_red) yaxis(2) ///
    yti(" " "Deposits", height(10) axis(2)) ylabel(-39(13)39, axis(2))) in 2/86, ///
    xmtick(##4) xlabel(#22, labsize(vsmall) angle(vertical)) xtitle("", height(9)) ylab(-6(2)6,nogrid) ///
    legend( label(1 "GDP (eje izquierdo)")label(2 "Deposits (eje derecho)") ///
    label(3 "") label(4 "") order(1 3 2 4) size(medium) region(lwidth(none))) ///
    subtitle("1994-2015", size(medium) color(black)) ///
    graphregion(fcolor(white))

    Attachment data that I am using for the graph


    Thanks for your helping .
    Attached Files

  • #2
    The last time you posted, you were asked by Friedrich Huebler to do the following:

    In the future please consider sharing an excerpt from your data so that other list members can test your commands. You can use dataex from SSC to post your data. Please read section 12 in the FAQ for more information.
    The FAQ asks that you don't post attachments, (but to use dataex instead) and that you place your commands in [CODE] blocks.


    Is this what you want?

    Code:
    tsline pib if pib<6, lwidth(thick) lcolor(midblue) yti("GDP" " ", ///
    height(10) ) || (tsline depvis if depvis<39, lwidth(thick) lcolor(orange_red) yaxis(2) ///
    yti(" " "Deposits", height(10) axis(2)) ylabel(-39(13)39, axis(2))) in 2/86, ///
    xmtick(##4) xlabel(#22, labsize(vsmall) angle(vertical)) xtitle("", height(9)) ylab(-6(2)6,nogrid) ///
    legend( label(1 "GDP (eje izquierdo)")label(2 "Deposits (eje derecho)") ///
    label(3 "") label(4 "") order(1 3 2 4) size(medium) region(lwidth(none))) ///
    subtitle("1994-2015", size(medium) color(black)) ///
    graphregion(fcolor(white)) ///
    xsize(10)
    Last edited by Carole J. Wilson; 05 Mar 2016, 14:06.
    Stata/MP 14.1 (64-bit x86-64)
    Revision 19 May 2016
    Win 8.1

    Comment


    • #3
      Yes, thank you so much. I will check the section 12 in the FAQ.

      Comment

      Working...
      X