File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,20 @@ You may pass ``logy`` to get a log-scale Y axis.
91
91
@savefig series_plot_logy.png width =4.5in
92
92
ts.plot(logy = True )
93
93
94
+ Plotting on a Secondary Y-axis
95
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
96
+
97
+ To plot data on a secondary y-axis, use the ``secondary_y `` keyword:
98
+
99
+ .. ipython :: python
100
+
101
+ plt.figure()
102
+
103
+ df.A.plot()
104
+
105
+ @savefig series_plot_secondary_y.png width =4.5in
106
+ df.B.plot(secondary_y = True , style = ' g' )
107
+
94
108
95
109
Targeting different subplots
96
110
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -107,6 +121,7 @@ You can pass an ``ax`` argument to ``Series.plot`` to plot on a particular axis:
107
121
@savefig series_plot_multi.png width =4.5in
108
122
df[' D' ].plot(ax = axes[1 ,1 ]); axes[1 ,1 ].set_title(' D' )
109
123
124
+
110
125
Other plotting features
111
126
-----------------------
112
127
You can’t perform that action at this time.
0 commit comments