Announcement

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

  • graph bar, caption(".") not showing the full caption

    Dear Statalist members,

    I am using Stata 18 for windows. I am trying to create a graph with a more lenghty caption. However, when running the code, the desired graph does not include the full caption despite its intend to describe the data. In order to exemplify this issue, I prepared the following code:

    PHP Code:
    webuse autoclear
    graph bar price
    over(foreignnote("data retrieved from the internet"caption("somehow this text is not fitted completely in the caption note. Therefore, I would kindly like to ask the Statalist forum for help."
    Hence, I would kindly like to ask you for a way to make the full caption visible such that I can later export the graph into a .png file or copy into a word/.rtf file.

    Kind regards,
    Moritzs

  • #2
    Here are two methods I can think of:

    Code:
    graph bar price, over(foreign) note("data retrieved from the internet") caption("somehow this text is not fitted completely in the caption note. Therefore, I would kindly like to ask the Statalist forum for help.", size(*0.7))  
    
    graph bar price, over(foreign) note("data retrieved from the internet") caption("somehow this text is not fitted completely in the caption note." "Therefore, I would kindly like to ask the Statalist forum for help.")

    Comment


    • #3
      Use line breaks to break it over multiple lines. The implementation is such that you have "line 1" "line 2" "line 3".

      Code:
      sysuse auto, clear
      graph bar price, over(foreign) note("data retrieved from the internet") ///
      caption("somehow this text is not fitted completely in the caption note." ///
      "Therefore, I would kindly like to ask the Statalist forum for help.")
      Click image for larger version

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


      Note: Crossed with #2.

      Comment

      Working...
      X