diff --git a/doc/python/multiple-axes.md b/doc/python/multiple-axes.md
index 5e598827d62..245a0442d44 100644
--- a/doc/python/multiple-axes.md
+++ b/doc/python/multiple-axes.md
@@ -189,7 +189,7 @@ fig.update_layout(
         position=0.15
     ),
     yaxis3=dict(
-        title="yaxis4 title",
+        title="yaxis3 title",
         titlefont=dict(
             color="#d62728"
         ),
@@ -201,7 +201,7 @@ fig.update_layout(
         side="right"
     ),
     yaxis4=dict(
-        title="yaxis5 title",
+        title="yaxis4 title",
         titlefont=dict(
             color="#9467bd"
         ),
@@ -225,4 +225,4 @@ fig.show()
 ```
 
 #### Reference
-All of the y-axis properties are found here: https://plotly.com/python/reference/#YAxis.  For more information on creating subplots see the [Subplots in Python](/python/subplots/) section.
\ No newline at end of file
+All of the y-axis properties are found here: https://plotly.com/python/reference/#YAxis.  For more information on creating subplots see the [Subplots in Python](/python/subplots/) section.