Announcement

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

  • Stretch twoway plot to meet axis title

    I have a twoway graph pictured and I would like the plot area to be stretched out to meet the y axis title which has veered out to the left. Is there a way that I can do this?
    Click image for larger version

Name:	dummy_graph.png
Views:	1
Size:	20.2 KB
ID:	1518902

    The code to produce the figure is

    Code:
        twoway (scatter coef rowid, msize(med) msymbol(O) mcolor(navy%85) fcolor(navy%85) lcolor(navy%85) ylab(,angle(0) labsize(medlarge)) ///
            title("title", size(vlarge))) ///
            (rcap ci_lower ci_upper rowid, lwidth(thin) fcolor(navy%85) lcolor(navy%85) c(1)), ///
            ytitle("y axis title", size(vlarge)) ///
            xla(, labcolor(bg) tlength(0)) ///
            yline(0,lcolor(red) lpattern(dash)) xlab(,valuelabel angle(40) labsize(med)) xtitle("x axis title", size(vlarge)) legend(off)
    I have found similar content on aspect ratios but that is not, to my knowledge, exactly what I'm asking. Thank you very much for your help.

  • #2
    That doesn't reproduce any figure without the data. I agree that the spacing looks a puzzle given the code, but you are asking for horizontal y axis labels (often a good idea) and x axis labels at 40 degrees (not often a good idea). it could be part that part of the code expects say -0.79999999 and another part uses a display format to override that.

    You don't say whether you have tried aspect(). Otherwise an option such as xsize() seems next. The axis scale options have titlegap() suboptions which may help.

    Comment

    Working...
    X