@@ -125,3 +125,86 @@ Matplotlib's original logo (2003 -- 2008).
125125 plt.axis([1, 1.72, -60, 10])
126126 plt.gca().set_xticklabels([])
127127 plt.gca().set_yticklabels([])
128+
129+ Matplotlib logo (2008 - 2015).
130+
131+ ..
132+ This logo was added in 325e47b.
133+
134+ .. plot ::
135+
136+ import numpy as np
137+ import matplotlib as mpl
138+ import matplotlib.pyplot as plt
139+ import matplotlib.cm as cm
140+
141+ mpl.rcParams['xtick.labelsize'] = 10
142+ mpl.rcParams['ytick.labelsize'] = 12
143+ mpl.rcParams['axes.edgecolor'] = 'gray'
144+
145+
146+ axalpha = 0.05
147+ figcolor = 'white'
148+ dpi = 80
149+ fig = plt.figure(figsize=(6, 1.1), dpi=dpi)
150+ fig.patch.set_edgecolor(figcolor)
151+ fig.patch.set_facecolor(figcolor)
152+
153+
154+ def add_math_background():
155+ ax = fig.add_axes([0., 0., 1., 1.])
156+
157+ text = []
158+ text.append(
159+ (r"$W^{3\b eta}_{\d elta_1 \r ho_1 \s igma_2} = "
160+ r"U^{3\b eta}_{\d elta_1 \r ho_1} + \f rac{1}{8 \p i 2}"
161+ r"\i nt^{\a lpha_2}_{\a lpha_2} d \a lpha^\p rime_2 "
162+ r"\l eft[\f rac{ U^{2\b eta}_{\d elta_1 \r ho_1} - "
163+ r"\a lpha^\p rime_2U^{1\b eta}_{\r ho_1 \s igma_2} "
164+ r"}{U^{0\b eta}_{\r ho_1 \s igma_2}}\r ight]$", (0.7, 0.2), 20))
165+ text.append((r"$\f rac{d\r ho}{d t} + \r ho \v ec{v}\c dot\n abla\v ec{v} "
166+ r"= -\n abla p + \m u\n abla^2 \v ec{v} + \r ho \v ec{g}$",
167+ (0.35, 0.9), 20))
168+ text.append((r"$\i nt_{-\i nfty}^\i nfty e^{-x^2}dx=\s qrt{\p i}$",
169+ (0.15, 0.3), 25))
170+ text.append((r"$F_G = G\f rac{m_1m_2}{r^2}$",
171+ (0.85, 0.7), 30))
172+ for eq, (x, y), size in text:
173+ ax.text(x, y, eq, ha='center', va='center', color="#11557c",
174+ alpha=0.25, transform=ax.transAxes, fontsize=size)
175+ ax.set_axis_off()
176+ return ax
177+
178+
179+ def add_matplotlib_text(ax):
180+ ax.text(0.95, 0.5, 'matplotlib', color='#11557c', fontsize=65,
181+ ha='right', va='center', alpha=1.0, transform=ax.transAxes)
182+
183+
184+ def add_polar_bar():
185+ ax = fig.add_axes([0.025, 0.075, 0.2, 0.85], projection='polar')
186+
187+ ax.patch.set_alpha(axalpha)
188+ ax.set_axisbelow(True)
189+ N = 7
190+ arc = 2. * np.pi
191+ theta = np.arange(0.0, arc, arc/N)
192+ radii = 10 * np.array([0.2, 0.6, 0.8, 0.7, 0.4, 0.5, 0.8])
193+ width = np.pi / 4 * np.array([0.4, 0.4, 0.6, 0.8, 0.2, 0.5, 0.3])
194+ bars = ax.bar(theta, radii, width=width, bottom=0.0)
195+ for r, bar in zip(radii, bars):
196+ bar.set_facecolor(cm.jet(r/10.))
197+ bar.set_alpha(0.6)
198+
199+ ax.tick_params(labelbottom=False, labeltop=False,
200+ labelleft=False, labelright=False)
201+
202+ ax.grid(lw=0.8, alpha=0.9, ls='-', color='0.5')
203+
204+ ax.set_yticks(np.arange(1, 9, 2))
205+ ax.set_rmax(9)
206+
207+
208+ main_axes = add_math_background()
209+ add_polar_bar()
210+ add_matplotlib_text(main_axes)
0 commit comments