Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions examples/lines_bars_and_markers/marker_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ def split_list(a_list):
ax.plot([y] * 3, marker=marker, **marker_style)
format_axes(ax)

plt.show()


###############################################################################
# Filled markers
# ==============
Expand All @@ -75,8 +72,6 @@ def split_list(a_list):
ax.plot([y] * 3, marker=marker, **marker_style)
format_axes(ax)

plt.show()

###############################################################################
# .. _marker_fill_styles:
#
Expand All @@ -102,9 +97,6 @@ def split_list(a_list):
ax.plot([y] * 3, fillstyle=fill_style, **filled_marker_style)
format_axes(ax)

plt.show()


###############################################################################
# Markers created from TeX symbols
# ================================
Expand All @@ -128,9 +120,6 @@ def split_list(a_list):
ax.plot([y] * 3, marker=marker, **marker_style)
format_axes(ax)

plt.show()


###############################################################################
# Markers created from Paths
# ==========================
Expand Down Expand Up @@ -160,8 +149,6 @@ def split_list(a_list):
ax.plot([y] * 3, marker=marker, **marker_style)
format_axes(ax)

plt.show()

###############################################################################
# Advanced marker modifications with transform
# ============================================
Expand Down Expand Up @@ -197,7 +184,6 @@ def split_list(a_list):
format_axes(ax)

fig.tight_layout()
plt.show()

###############################################################################
# Setting marker cap style and join style
Expand Down Expand Up @@ -235,7 +221,6 @@ def split_list(a_list):
ax.plot(x, y, marker=m, **marker_outer)
ax.text(x, len(CapStyle) - .5, f'{theta}°', ha='center')
format_axes(ax)
plt.show()

###############################################################################
# Modifying the join style:
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class MarkerStyle:
# Just used for informational purposes. is_filled()
# is calculated in the _set_* functions.
filled_markers = (
'o', 'v', '^', '<', '>', '8', 's', 'p', '*', 'h', 'H', 'D', 'd',
'.', 'o', 'v', '^', '<', '>', '8', 's', 'p', '*', 'h', 'H', 'D', 'd',
'P', 'X')

fillstyles = ('full', 'left', 'right', 'bottom', 'top', 'none')
Expand Down
6 changes: 5 additions & 1 deletion lib/matplotlib/tests/test_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,11 @@ def test_marker_fill_styles():
x = np.array([0, 9])
fig, ax = plt.subplots()

for j, marker in enumerate(mlines.Line2D.filled_markers):
# This hard-coded list of markers correspond to an earlier iteration of
# MarkerStyle.filled_markers; the value of that attribute has changed but
# we kept the old value here to not regenerate the baseline image.
Comment thread
oscargus marked this conversation as resolved.
# Replace with mlines.Line2D.filled_markers when the image is regenerated.
for j, marker in enumerate("ov^<>8sp*hHDdPX"):
for i, fs in enumerate(mlines.Line2D.fillStyles):
color = next(colors)
ax.plot(j * 10 + x, y + i + .5 * (j % 2),
Expand Down