Announcement

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

  • r1title l1title size

    I am puzzled. r1title has a different (larger) size than l1title.
    Code:
     set scheme s2color
     
     sysuse auto, clear
    
    twoway lowess mpg weight  ///
      || lowess price weight, yaxis(2)  ///
      ||, by(foreign , r1title("Price") l1title("Price")) ///
      name(s2_r1l1, replace)
    I would love to have them both the same size controlled by a -scheme-. In -s2color- both textboxstyles refer to -subheading-. I do not know how to manipulate it further...


  • #2
    I would love to have them both the same size controlled by a -scheme-.
    Are you asking for a custom scheme or a way to resize the titles?

    Comment


    • #3
      Originally posted by Andrew Musau View Post

      Are you asking for a custom scheme or a way to resize the titles?
      I have a custom scheme but somehow both titles get a different size. Using -s2color- the left title gets -medium small- and the right title gets -medium-. I like them to get the same size at the first place. Second, I do not want to code the size in the graph command (like , size(medium)) but control the size via scheme.
      I wonder whether my problem is behind this from Stata manual (-help title_options-):
      {t|b|l|r}{1|2}title() are rarely specified. It is generally better to specify the axis_title_options ytitle() or xtitle();
      see [G-3] axis_title_options. The {t|b|l|r}{1|2}title() options are included for backward compatibility with previous
      versions of Stata.
      Maybe there is a more modern way to avoid repeated x-/ytitles when using the by-option?

      Comment


      • #4
        If I understand your problem correctly, you may want to look into grstyle by Ben Jann
        This provides plenty of options to modify schemes.
        What you need to locate, however, is how the properties for left and right tiles are stored.
        For example, If you look into the scheme s2color, you will see that color p1 is followed by the word navy.
        You will need something similar for the left and right titles.
        HTH

        Comment


        • #5
          Originally posted by FernandoRios View Post
          If I understand your problem correctly, you may want to look into grstyle by Ben Jann
          This provides plenty of options to modify schemes.
          What you need to locate, however, is how the properties for left and right tiles are stored.
          For example, If you look into the scheme s2color, you will see that color p1 is followed by the word navy.
          You will need something similar for the left and right titles.
          HTH
          Dear Fernando, thank you very much for your suggestion. I use grstyle extensively that is why I went back to the Stata original because I wanted to exclude my own scheme mistakes.
          The first feedback ftom Stata technical staff is that developers have to have a look at it.
          Best regards,
          Marc

          Comment

          Working...
          X