Skip to content

Commit afe9178

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR matplotlib#31721: Improve some example titles.
1 parent daa7ca7 commit afe9178

3 files changed

Lines changed: 11 additions & 12 deletions

File tree

galleries/examples/ticks/colorbar_tick_labelling_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
=======================
3-
Colorbar Tick Labelling
3+
Colorbar Tick labelling
44
=======================
55
66
Vertical colorbars have ticks, tick labels, and labels visible on the *y* axis,

galleries/examples/ticks/date_demo_convert.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
=================
3-
Date Demo Convert
4-
=================
5-
2+
===================
3+
Date converter demo
4+
===================
65
"""
6+
77
import datetime
88

99
import matplotlib.pyplot as plt
@@ -21,14 +21,13 @@
2121
fig, ax = plt.subplots()
2222
ax.plot(dates, y**2, 'o')
2323

24-
# this is superfluous, since the autoscaler should get it right, but
24+
# This is superfluous, since the autoscaler should get it right, but
2525
# use date2num and num2date to convert between dates and floats if
26-
# you want; both date2num and num2date convert an instance or sequence
26+
# you want; both date2num and num2date convert an instance or sequence.
2727
ax.set_xlim(dates[0], dates[-1])
2828

2929
# The hour locator takes the hour or sequence of hours you want to
30-
# tick, not the base multiple
31-
30+
# tick, not the base multiple.
3231
ax.xaxis.set_major_locator(DayLocator())
3332
ax.xaxis.set_minor_locator(HourLocator(range(0, 25, 6)))
3433
ax.xaxis.set_major_formatter(DateFormatter('%Y-%m-%d'))

galleries/examples/ticks/fig_axes_customize_simple.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=========================
3-
Fig Axes Customize Simple
4-
=========================
2+
======================================
3+
Customizing figure and axes appearance
4+
======================================
55
66
Customize the background, labels and ticks of a simple plot.
77

0 commit comments

Comments
 (0)