Announcement

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

  • lgraph appearing with misplaced 'y'-labels / 'x'-labels

    Dear all,

    I often use 'lgraph' for having a quick look of the trends in my long-format datasets. 'lgraph' is a user written program by Timothy Mark, and the program is avaialble through 'ssc install'. I am having a weird problem with this. Any graph I am producing, 'lgraph' showing y-labels and x-labels misplaced. The weirdest thing is, not only the new graphs, it is not even producing the identical graphs (with same codes) those I created couple of months back. Could anyone please confirm if having the same problem or it is only me !! See the example graph below:


    Code:
    clear
    edi
    set obs 300
    gen y = runiform()
    gen x = int((1-0+1)*runiform()+0)
    replace y =y*x if x==1
    gen time = int((3-1+1)*runiform()+1)
    lgraph y time x
    Note the ylabels gone up than the ticks and the xlabels next to the ticks. Also note the default size of the x/y labels and I am sure they were never like this.

    Click image for larger version

Name:	Graph.jpg
Views:	1
Size:	121.3 KB
ID:	1323236
    Roman

  • #2
    Code:
     
    * ??? 
    which lgraph 
    update query

    Comment


    • #3
      Thanks Nick. It is the most updated version "version 3.0.3 Timothy Mak Mar2015." Not sure why it is happening. It wasn't like this even in my recent use. Even the command for ylab( , labize(large)) returns same small labels with no change in positions.
      Roman

      Comment


      • #4
        Please confirm Stata version (#2):

        Code:
        update query

        Comment


        • #5
          Apology. Stata Version 13.1
          Roman

          Comment


          • #6
            As I write I'm on Stata 10.1 and cannot reproduce your problem with the latest lgraph.

            Comment


            • #7
              Many thanks for your effort Nick. Hope someone else can replicate and tell us wheter facing the same problem or not.
              Roman

              Comment


              • #8
                Just to updtae the status, I confirm that there is nothing wrong with the program. There is something wrong with my computer !! . I tried the above codes and others in my work computer and it works perfect. Now I am wondering what could cause my computer to behave differently !!!!
                Roman

                Comment

                Working...
                X