Announcement

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

  • chart ytitle format

    Hi,

    I have 3 charts that I want to stack on top of each other, and for each one I wanted to format the ytitle with a box around it (like the titles in the picture attached, but on the y axis instead). Is this possible at all?

    Thank you very much!
    Click image for larger version

Name:	slide_12.jpg
Views:	1
Size:	33.0 KB
ID:	1691092


  • #2
    Code:
    help textbox options 
    
    sysuse auto, clear
    scatter mpg weight, ytitle(check this out, box fcolor(red*0.1) lcolor(red)

    Comment


    • #3
      Great thank you! And is there any way to make the box bigger, so it covers the whole axis? (I checked help textbox but could not find any relevant ones)

      Comment


      • #4
        In my version of Stata (17) I see width() and height() options. Here an example such as

        Code:
        sysuse auto, clear
        scatter mpg weight, ytitle(check this out, box fcolor(red*0.1) lcolor(red) width(100))
        shows that you can stretch the box to the entire y axis. The height() option might also be useful.

        Comment


        • #5
          perfect, works great, thank you very much!

          Comment

          Working...
          X