Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 40d5e41

Browse filesBrowse files
committed
FIX small nitpicks
1 parent b03b71a commit 40d5e41
Copy full SHA for 40d5e41

File tree

Expand file treeCollapse file tree

4 files changed

+3
-8
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+3
-8
lines changed

‎lib/matplotlib/mpl-data/stylelib/classic.mplstyle

Copy file name to clipboardExpand all lines: lib/matplotlib/mpl-data/stylelib/classic.mplstyle
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ xtick.major.top : True # draw x axis top major ticks
254254
xtick.major.bottom : True # draw x axis bottom major ticks
255255
xtick.minor.top : True # draw x axis top minor ticks
256256
xtick.minor.bottom : True # draw x axis bottom minor ticks
257+
xtick.alignment : center
257258

258259
ytick.left : True # draw ticks on the left side
259260
ytick.right : True # draw ticks on the right side

‎lib/matplotlib/rcsetup.py

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,7 @@ def validate_animation_writer_path(p):
12001200
# fontsize of the xtick labels
12011201
'xtick.labelsize': ['medium', validate_fontsize],
12021202
'xtick.direction': ['out', six.text_type], # direction of xticks
1203+
'xtick.alignment': ["center", _validate_alignment],
12031204

12041205
'ytick.left': [True, validate_bool], # draw ticks on the left side
12051206
'ytick.right': [False, validate_bool], # draw ticks on the right side
@@ -1220,7 +1221,6 @@ def validate_animation_writer_path(p):
12201221
'ytick.labelsize': ['medium', validate_fontsize],
12211222
'ytick.direction': ['out', six.text_type], # direction of yticks
12221223
'ytick.alignment': ["center_baseline", _validate_alignment],
1223-
'xtick.alignment': ["center", _validate_alignment],
12241224

12251225

12261226
'grid.color': ['#b0b0b0', validate_color], # grid color

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ def test_bar_tick_label_multiple():
11461146
@image_comparison(baseline_images=['bar_tick_label_multiple_old_label_alignment'],
11471147
extensions=['png'])
11481148
def test_bar_tick_label_multiple_old_alignment():
1149-
# From 2516: plot bar with array of string labels for x axis
1149+
# Test that the algnment for class is backward compatible
11501150
matplotlib.rcParams["ytick.alignment"] = "center"
11511151
ax = plt.gca()
11521152
ax.bar([1, 2.5], [1, 2], width=[0.2, 0.5], tick_label=['a', 'b'],

‎lib/matplotlib/tests/test_backend_pgf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_backend_pgf.py
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def create_figure():
7878

7979

8080
# test compiling a figure to pdf with xelatex
81-
@cleanup(style='_classic_test')
8281
@switch_backend('pgf')
8382
def test_xelatex():
8483
if not check_for('xelatex'):
@@ -92,7 +91,6 @@ def test_xelatex():
9291

9392

9493
# test compiling a figure to pdf with pdflatex
95-
@cleanup(style='_classic_test')
9694
@switch_backend('pgf')
9795
def test_pdflatex():
9896
if not check_for('pdflatex'):
@@ -109,7 +107,6 @@ def test_pdflatex():
109107

110108

111109
# test updating the rc parameters for each figure
112-
@cleanup(style='_classic_test')
113110
@switch_backend('pgf')
114111
def test_rcupdate():
115112
if not check_for('xelatex') or not check_for('pdflatex'):
@@ -142,7 +139,6 @@ def test_rcupdate():
142139

143140

144141
# test backend-side clipping, since large numbers are not supported by TeX
145-
@cleanup(style='_classic_test')
146142
@switch_backend('pgf')
147143
def test_pathclip():
148144
if not check_for('xelatex'):
@@ -161,7 +157,6 @@ def test_pathclip():
161157

162158

163159
# test mixed mode rendering
164-
@cleanup(style='_classic_test')
165160
@switch_backend('pgf')
166161
def test_mixedmode():
167162
if not check_for('xelatex'):
@@ -178,7 +173,6 @@ def test_mixedmode():
178173

179174

180175
# test bbox_inches clipping
181-
@cleanup(style='_classic_test')
182176
@switch_backend('pgf')
183177
def test_bbox_inches():
184178
if not check_for('xelatex'):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.