Announcement

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

  • Ytitle with euro sign does not display horizontally

    Despite putting angle(0) the title will not be displayed horizontally. Since this only happens for the title but not the label, I presume it is because I have a char sign in there. But how to change that?

    MWE

    Code:
    clear
    input year cost 
    2006 36 
    2007 54
    2008 71
    2009 96
    2010 11
    2011 11 
    2012 16 
    2013 19 
    2014 21
    2015 26
    2016 30
    2017 36 
    end
    
    twoway line cost year, title(Title) xtitle("") ytitle("Mio. {c 0128}", angle(0)) ylabel(, angle(0))

  • #2
    Code:
     ytitle("Mio. {c 0128}", orientation(horiz))

    Comment


    • #3
      Thanks! That worked, but created a new problem that the Euro sign is placed over the ylabels. Do you know perhaps also how to shift the title outward?

      Comment


      • #4
        See the titlegap() option documented under

        Code:
        help axis scale options

        Comment

        Working...
        X