Announcement

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

  • Fixing the x-axis range for combined (scatter and line) graphs

    Dear All,
    When I plot the below graphs, I am not able to arrange the x axis range. I want it to be maximum 400, but in the graph (attached) it goes beyond 400. How can I fix this? graph twoway (scatter export_mn TotalYP_mn) (line export_mn TotalYP_1mn) (line export_mn TotalYP_2mn), ylabel(0 (100) 400) ymtick(0 (100) 400) xlabel(0 (100) 300) xmtick(0 (100) 300) xscale(range(0 400))
    Attached Files

  • #2
    Code:
    graph twoway (scatter export_mn TotalYP_mn if TotalYP_mn < 400) ///
                 (line export_mn TotalYP_1mn if TotalYP_1mn < 400 )  ///
                 (line export_mn TotalYP_2mn if TotalYP_2mn < 400), ///
                  ylabel(0 (100) 400) ymtick(0 (100) 400) ///
                  xlabel(0 (100) 300) xmtick(0 (100) 300) 
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment

    Working...
    X