Re: [Matplotlib-users] 2nd y axis, same data

 Re: [Matplotlib-users] 2nd y axis, same data From: Jeff Whitaker - 2007-05-30 22:45:06 ```James Battat wrote: > Hello, > > (for a 2-d plot) > Any example code of how to label the 2nd y-axis using a different scale > than the first y-axis for the same dataset? > > For example, how do you make a plot of distances with the left y-axis in > kilometers and the right y-axis in miles? > > Thanks in advance for your help, > James > James: Use twinx - as demonstrated in thee 'two_scales.py' example. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@... 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg ```

 [Matplotlib-users] 2nd y axis, same data From: James Battat - 2007-05-30 22:24:24 ```Hello, (for a 2-d plot) Any example code of how to label the 2nd y-axis using a different scale than the first y-axis for the same dataset? For example, how do you make a plot of distances with the left y-axis in kilometers and the right y-axis in miles? Thanks in advance for your help, James ```
 Re: [Matplotlib-users] 2nd y axis, same data From: Jeff Whitaker - 2007-05-30 22:45:06 ```James Battat wrote: > Hello, > > (for a 2-d plot) > Any example code of how to label the 2nd y-axis using a different scale > than the first y-axis for the same dataset? > > For example, how do you make a plot of distances with the left y-axis in > kilometers and the right y-axis in miles? > > Thanks in advance for your help, > James > James: Use twinx - as demonstrated in thee 'two_scales.py' example. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@... 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg ```