Announcement

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

  • How to get clarity in Scale of 2nd Y axis

    Hi!
    I am trying to scale two graphs in two different axis but my y-axis labels of the right hand side scale is not getting legible:
    I am using the following codes

    twoway bar act_kol date1, sort yaxis(1) yscale(range(0) axis(1)) ///
    ||(connected m_fare date1 if lockdownphase==0, sort msymbol(triangle) yaxis(2) yscale(range(0) axis(2)))(connected m_fare date1 if lockdownphase==1, sort msymbol(circle) yaxis(2) yscale(range(0) axis(2)))
    || scatter act_kol date1, mlabel(act_kol) mlabpos(12) m(none) yaxis(1) ///
    || scatter m_fare date1 ,mlabel(m_fare) mlabpos(3) m(none) yaxis(2) ///
    || ,legend(order(1 3))

    Click image for larger version

Name:	Active Cases_kolkata_with fare 2.png
Views:	1
Size:	16.8 KB
ID:	1697419

    Any suggestions in this matter would be much appreciated. Thanks for sparing your valuable time.
Working...
X