|
From: Benjamin R. <ben...@ou...> - 2014-08-28 13:33:54
|
You are asking for the twinx() feature: http://matplotlib.org/examples/api/two_scales.html On Thu, Aug 28, 2014 at 9:24 AM, Shantha Kumara <shk...@in...> wrote: > Hi All, > > Thank you so much for your help, It really worked for me. > > > I need one more favor, > > > I have ploted the graph with 2 Y-axes > > Here is the code > > lns1 = ax1.plot(x1, y1, 'r-o',label=LY1,markersize=4) > ax1 = self.set_ylim(ax1,y1,label=LY1) > lns2 = ax2.plot(x2, y2, 'b-o',label=LY2,markersize=4) > > I want to set the grid to the second y-axes in the same graph. > > Please help on the same. > > See here the difference > > (Embedded image moved to file: pic19302.gif) > > > > SHANTHA KUMARA REVANASIDDAPPA > Python Developper > Operations & Production Control, A1 Telekom > IBM > M +43-6642196132 > @ Sha...@ex... > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |