Skip to content

Commit 8081fe6

Browse files
committed
1 parent 2785b4c commit 8081fe6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/introductory/quick_start.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,16 +468,16 @@ def my_plotter(ax, data1, data2, param_dict):
468468
# :doc:`/gallery/subplots_axes_and_figures/secondary_axis` for further
469469
# examples.
470470

471-
fig, (ax1, ax3) = plt.subplots(1, 2, figsize=(8, 2.7), layout='constrained')
471+
fig, (ax1, ax3) = plt.subplots(1, 2, figsize=(7, 2.7), layout='constrained')
472472
l1, = ax1.plot(t, s)
473473
ax2 = ax1.twinx()
474474
l2, = ax2.plot(t, range(len(t)), 'C1')
475475
ax2.legend([l1, l2], ['Sine (left)', 'Straight (right)'])
476476

477477
ax3.plot(t, s)
478-
ax3.set_xlabel('Angle [°]')
478+
ax3.set_xlabel('Angle [rad]')
479479
ax4 = ax3.secondary_xaxis('top', functions=(np.rad2deg, np.deg2rad))
480-
ax4.set_xlabel('Angle [rad]')
480+
ax4.set_xlabel('Angle [°]')
481481

482482
##############################################################################
483483
# Color mapped data

0 commit comments

Comments
 (0)