Skip to content

Commit

Permalink
Merge pull request matplotlib#6300 from mdboom/linewidth
Browse files Browse the repository at this point in the history
Remake of matplotlib#6286
  • Loading branch information
mdboom committed Apr 14, 2016
2 parents 18accb7 + f5e87d4 commit f859b74
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/matplotlib/rcsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ def validate_animation_writer_path(p):
'verbose.fileo': ['sys.stdout', six.text_type],

# line props
'lines.linewidth': [2.5, validate_float], # line width in points
'lines.linewidth': [1.5, validate_float], # line width in points
'lines.linestyle': ['-', six.text_type], # solid line
'lines.color': ['b', validate_color], # blue
'lines.marker': ['None', six.text_type], # black
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions lib/matplotlib/tests/test_backend_pgf.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ def test_rcupdate():
'\\usepackage[T1]{fontenc}',
'\\usepackage{sfmath}']})
tol = (6, 0)
original_params = mpl.rcParams.copy()
for i, rc_set in enumerate(rc_sets):
mpl.rcParams.clear()
mpl.rcParams.update(original_params)
mpl.rcParams.update(rc_set)
create_figure()
compare_figure('pgf_rcupdate%d.pdf' % (i + 1), tol=tol[i])
Expand Down
2 changes: 1 addition & 1 deletion matplotlibrc.template
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ backend : $TEMPLATE_BACKEND
### LINES
# See http://matplotlib.org/api/artist_api.html#module-matplotlib.lines for more
# information on line properties.
#lines.linewidth : 2.0 # line width in points
#lines.linewidth : 1.5 # line width in points
#lines.linestyle : - # solid line
#lines.color : blue # has no affect on plot(); see axes.prop_cycle
#lines.marker : None # the default marker
Expand Down

0 comments on commit f859b74

Please sign in to comment.