Announcement

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

  • Line break in twoway text boxes

    Hi
    In the code below, I've tried without luck to have VW and Diesel below each other.
    Code:
    sysuse auto
    twoway qfitci  mpg weight, stdf || scatteri 41 2040 `""VW" "Diesel""'
    Is it possible?
    Kind regards

    nhb

  • #2
    You can always have two scatteri calls. Here is a nonstandard method from this thread.

    Code:
    sysuse auto, clear
    twoway qfitci  mpg weight, stdf || scatteri 41 2040 "VW`=char(13)'`=char(10)'Diesel", msy(none) leg(off)
    Click image for larger version

Name:	Graph.png
Views:	1
Size:	27.1 KB
ID:	1755570

    Comment


    • #3
      Fantastic, Thank you very much
      Kind regards

      nhb

      Comment


      • #4
        If one is to have several line breaks, this code might be better
        Code:
        . local br = char(13)+char(10)
        . twoway qfitci  mpg weight, stdf || scatteri 41 2040 "VW`br'Diesel", msy(none) leg(off)
        Kind regards

        nhb

        Comment

        Working...
        X