Announcement

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

  • Problem adding boldface to -text- in graph

    I am unable to transfer clipboard from the server, so I will give an example.

    I have some text I to customly place in the graph, so I have this code:

    Code:
    graph twoway line y_var x_var, text(4 5 {bf:"Some interesting text"})
    But I get the error:
    Code:
    invalid point, "Some interesting text"
    .

    I have tried this:"{bf:"Some interesting text"}", but does not work. I was unable to find others with similar problems or think of other solutions. Anyone here know why this does not work?

  • #2
    Code:
    graph twoway line y_var x_var, text(4 5 "{bf:Some interesting text}")
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      Originally posted by Maarten Buis View Post
      Code:
      graph twoway line y_var x_var, text(4 5 "{bf:Some interesting text}")
      Ah, yes, thank you. I see I misunderstood completely how that bf works. It is strange, because the behaviour is not consistent across different -text- -title- etc. For example, this worked:

      Code:
      title({bf:"Some interesting text"})
      So this made me confused, but everything works very well now!
      Last edited by Karl Tjensvoll; 15 Nov 2019, 04:31.

      Comment

      Working...
      X