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

Skip to content

Commit b3f4ee4

Browse files
committed
[ 2165316 ] importing pylab overwrites x
[ 2163348 ] error in mathtext_examples.py [ 2156924 ] Typo: Missing parenthesis [ 2135925 ] API example barchart_demo.py small error svn path=/trunk/matplotlib/; revision=6207
1 parent 6f426f0 commit b3f4ee4

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/api/barchart_demo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
# add some
2323
ax.set_ylabel('Scores')
2424
ax.set_title('Scores by group and gender')
25-
ax.set_xticks(ind+width, ('G1', 'G2', 'G3', 'G4', 'G5') )
25+
ax.set_xticks(ind+width)
26+
ax.set_xticklabels( ('G1', 'G2', 'G3', 'G4', 'G5') )
2627

2728
ax.legend( (rects1[0], rects2[0]), ('Men', 'Women') )
2829

examples/pylab_examples/mathtext_examples.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
r'$\widehat{abc}\widetilde{def}$',
5050
r'$\Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega$',
5151
r'$\alpha \beta \gamma \delta \epsilon \zeta \eta \theta \iota \lambda \mu \nu \xi \pi \kappa \rho \sigma \tau \upsilon \phi \chi \psi$',
52-
#ur'Generic symbol: $\u23ce \mathrm{\ue0f2 \U0001D538}$'
5352
ur'Generic symbol: $\u23ce$',
5453
]
5554

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ def xscale(*args, **kwargs):
898898
draw_if_interactive()
899899
return ret
900900
xscale.__doc__ = dedent(xscale.__doc__) % {
901-
'scale': ' | '.join([repr(x) for x in get_scale_names()]),
901+
'scale': ' | '.join([repr(_x) for _x in get_scale_names()]),
902902
'scale_docs': get_scale_docs()}
903903

904904
def yscale(*args, **kwargs):
@@ -918,7 +918,7 @@ def yscale(*args, **kwargs):
918918
draw_if_interactive()
919919
return ret
920920
yscale.__doc__ = dedent(yscale.__doc__) % {
921-
'scale': ' | '.join([repr(x) for x in get_scale_names()]),
921+
'scale': ' | '.join([repr(_x) for _x in get_scale_names()]),
922922
'scale_docs': get_scale_docs()}
923923

924924
def xticks(*args, **kwargs):

lib/matplotlib/ticker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
2626
* FixedLocator - Tick locations are fixed
2727
28-
* IndexLocator - locator for index plots (eg where x = range(len(y))
28+
* IndexLocator - locator for index plots (eg. where x = range(len(y)))
2929
3030
* LinearLocator - evenly spaced ticks from min to max
3131

0 commit comments

Comments
 (0)