Announcement

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

  • Adding uniform y-axis scale to graphs while combining them

    Hi all,
    I have been trying to make two different kdensity plots using command below:

    kdensity tsolar, addplot((kdensity bsolar)) legend(order(1 "Census Tract" 2 "Census Block") pos(12)) ytitle(Density) xtitle(Number of census tracts (blocks)) name(t_b_solar, replace)
    kdensity tsolar, addplot((kdensity bsolar)) legend(order(1 "Census Tract" 2 "Census Block") pos(12)) ytitle(Density) xtitle(Number of census tracts (blocks)) name(t_b_sample_solar, replace)

    Then when I combine them:

    graph combine t_b_solar t_b_sample_solar

    I see those graphs have different y scale. I tried different ways to make these graphs to have a same y-axis range (0 - 0.3), but nothing worked. Could someone help?

  • #2
    Hi Dhiroi,

    Did you try:
    Code:
    graph combine t_b_solar t_b_sample_solar, ycommon
    ?
    http://publicationslist.org/eric.melse

    Comment


    • #3
      I may be missing something but what is different about those commands? Are you changing the data in between?

      Comment

      Working...
      X