Skip to content

Commit 21eb005

Browse files
committed
Fix errors discovered by CI
1 parent 054046c commit 21eb005

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

doc/users/next_whats_new/extending_MarkerStyle.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ The appearance of individual markers can be further controlled by
66
transform supplied during creation.
77

88
.. plot::
9-
:include-source:
9+
:include-source: true
10+
1011
import matplotlib.pyplot as plt
1112
from matplotlib.markers import MarkerStyle
1213
from matplotlib.transforms import Affine2D

examples/lines_bars_and_markers/marker_reference.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def split_list(a_list):
171171
# selected marker shape (e.g. caret up, caret down). Following example shows
172172
# how user supplied rotation applies to several marker shapes.
173173

174-
common_style = {k: v for k, v in filled_marker_style.items() if v != 'marker'}
174+
common_style = {k: v for k, v in filled_marker_style.items() if k != 'marker'}
175175
angles = [0, 10, 20, 30, 45, 60, 90]
176176

177177
fig, ax = plt.subplots()
@@ -227,7 +227,7 @@ def split_list(a_list):
227227
fig.suptitle('Marker CapStyle', fontsize=14)
228228
fig.subplots_adjust(left=0.1)
229229

230-
for y, cap_style in enumerate([None, *CapStyle]):
230+
for y, cap_style in enumerate(CapStyle):
231231
ax.text(-0.5, y, cap_style.name, **text_style)
232232
for x, theta in enumerate(angles):
233233
t = Affine2D().rotate_deg(theta)
@@ -240,7 +240,7 @@ def split_list(a_list):
240240

241241
###############################################################################
242242
# Follwing example show how to change the join style and how different styles
243-
# look.
243+
# looks like.
244244

245245
fig, ax = plt.subplots()
246246
fig.suptitle('Marker JoinStyle', fontsize=14)

examples/lines_bars_and_markers/multivariate_marker_plot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
from matplotlib.colors import Normalize
1919

2020
SUCCESS_SYMBOLS = [
21-
TextPath((0,0), "☹"),
22-
TextPath((0,0), "😒"),
23-
TextPath((0,0), "☺"),
21+
TextPath((0, 0), "☹"),
22+
TextPath((0, 0), "😒"),
23+
TextPath((0, 0), "☺"),
2424
]
2525

2626
N = 25
@@ -40,6 +40,6 @@
4040
m = MarkerStyle(SUCCESS_SYMBOLS[mood], transform=t)
4141
ax.plot(pos[0], pos[1], marker=m, color=cmap(thrust))
4242
fig.colorbar(plt.cm.ScalarMappable(norm=Normalize(0, 1), cmap=cmap),
43-
ax=ax, label="Normalized Thrust [a.u.]")
43+
ax=ax, label="Normalized Thrust [a.u.]")
4444
ax.set_xlabel("X position [m]")
4545
ax.set_ylabel("Y position [m]")

0 commit comments

Comments
 (0)