Announcement

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

  • Coefplot - Different plot when switching from StataIC16 to StataMP17

    Hi all,

    I started working on my project with StataIC 16 and used the following code

    Code:
    coefplot (m4a, levels(95) label(Men) ciopts(recast(rcap))) , vertical keep(td_3 td_2 td_1 td0 td1 td2 td3 td4 td5) ytitle(Earnings(Euro)) xtitle(Years since/to job loss) lwidth(*2) omitted legend(off) yline(0) recast(connected) color(navy) nooffset xlabel(1 "-3" 2 "-2" 3 "-1" 4 "0" 5 "1" 6 "2" 7 "3" 8 "4" 9 "5") graphregion(color(white))
    to plot:
    Click image for larger version

Name:	plot1.jpg
Views:	1
Size:	14.3 KB
ID:	1680554



    A couple of days ago I switched from StataIC 16 to StataMP 17, and now, I get a slightly a different graph using the same code (as above):

    Click image for larger version

Name:	plot2.jpg
Views:	1
Size:	46.8 KB
ID:	1680555


    Since all graphs are for the same document, I would like to keep the old design. Does anyone know how to alter the code such that I get rid of the background lines / the grid, how to make the xaxis black and the lines of the confidence intervals gray?

    Best,
    Kathrin

  • #2
    Presumably you have defaults for IC that aren't there for MP.

    Comment


    • #3
      Jared Greathouse: But don't there are possibilities to also change it manually in the graph?

      Comment


      • #4
        I also don't buy that this is the same code. It can't be. Why not? Your reference line in figure 1 is navy. Here in figure 2, it's pink. You also don't even make the reference line navy in the first post, it just comes out as black or navy by default. So, this can't be the same code, barring changes you may have made to default options. The same code does the same thing every time, but it's possible I'm mistake

        Edit; yes you can manually change them. I think with the standard two way/line options, eg
        Code:
        yline(0, lcol(navy))
        Last edited by Jared Greathouse; 03 Sep 2022, 05:53.

        Comment


        • #5
          It was the same do-file I opened just with a different Stata-version...

          Thanks for the advice, it works and I have added scheme(s1color) and changed ciopts(recast(rcap) lcol(gray))). I now get the old graph.

          Comment


          • #6
            Yeah this suggests to me (I think this is how it is, I could be TOTALLY wrong about this) your old version had different defaults. For example, my default scheme is white_tableau, a user written scheme. If I still had IC, I think my default scheme was something different. Point is, the likely issue here was software differences and that kinda thing, but again, I could be totally wrong about this. Either way, so long as it looks how you want!

            Comment

            Working...
            X