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

Skip to content

Commit e7b3c31

Browse files
Salil VanvariNelleV
Salil Vanvari
authored andcommitted
FIX Removed random extra white space and other nitpicks
1 parent 8de60af commit e7b3c31

File tree

5 files changed

+55
-44
lines changed

5 files changed

+55
-44
lines changed

doc/users/mathtext.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,12 @@ When using the `STIX <http://www.stixfonts.org/>`_ fonts, you also have the choi
214214
``\mathfrak{Fraktur}`` :math-stix:`\mathfrak{Fraktur}`
215215
``\mathsf{sansserif}`` :math-stix:`\mathsf{sansserif}`
216216
``\mathrm{\mathsf{sansserif}}`` :math-stix:`\mathrm{\mathsf{sansserif}}`
217-
====================================== =========================================
217+
====================================== =========================================
218218

219-
.. htmlonly::
219+
.. htmlonly::
220220

221-
====================================== =========================================
221+
====================================== =========================================
222222
``\mathcircled{circled}`` :math-stix:`\mathcircled{circled}`
223-
224223
====================================== =========================================
225224

226225
There are also three global "font sets" to choose from, which are

examples/misc/multiprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
# Demo of using multiprocessing for generating data in one process and plotting
33
# in another.
44
# Written by Robert Cimrman
5-
from six.moves import input
65

76
from __future__ import print_function
7+
from six.moves import input
8+
89
import time
910
from multiprocessing import Process, Pipe
1011
import numpy as np

examples/pylab_examples/griddata_demo.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
from numpy.random import uniform, seed
21
from matplotlib.mlab import griddata
32
import matplotlib.pyplot as plt
43
import numpy as np
5-
from six.moves import input
64

75
# make up data.
8-
#npts = int(input('enter # of random points to plot:'))
9-
seed(0)
6+
random_state = np.random.RandomState(19680801)
7+
108
npts = 200
11-
x = uniform(-2, 2, npts)
12-
y = uniform(-2, 2, npts)
9+
x = random_state.uniform(-2, 2, npts)
10+
y = random_state.uniform(-2, 2, npts)
1311
z = x*np.exp(-x**2 - y**2)
1412
# define grid.
1513
xi = np.linspace(-2.1, 2.1, 100)

examples/widgets/lasso_selector_demo.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88
from matplotlib.path import Path
99

1010

11-
try:
12-
raw_input
13-
except NameError:
14-
# Python 3
15-
raw_input = input
16-
17-
1811
class SelectFromCollection(object):
1912
"""Select indices from a matplotlib collection using `LassoSelector`.
2013

lib/matplotlib/axes/_base.py

Lines changed: 46 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2927,17 +2927,29 @@ def get_xscale(self):
29272927
get_xscale.__doc__ = "Return the xaxis scale string: %s""" % (
29282928
", ".join(mscale.get_scale_names()))
29292929

2930-
@docstring.dedent_interpd
29312930
def set_xscale(self, value, **kwargs):
29322931
"""
29332932
Set the x-axis scale
29342933
29352934
Parameters
29362935
----------
2937-
value: float
2938-
Value to scale x-axis by
2936+
value : ["linear", "log", "symlog", "logit"]
2937+
scaling strategy to apply
2938+
2939+
Notes
2940+
-----
2941+
Different kwargs are accepted, depending on the scale. See
2942+
the `~matplotlib.scale` module for more information.
2943+
2944+
See also
2945+
--------
2946+
matplotlib.scale.LinearScale : linear transfrom
2947+
2948+
matplotlib.scale.LogTransform : log transform
29392949
2940-
Different kwargs are accepted, depending on the scale
2950+
matplotlib.scale.SymmetricalLogTransform : symlog transform
2951+
2952+
matplotlib.scale.LogisticTransform : logit transform
29412953
"""
29422954
# If the scale is being set to log, clip nonposx to prevent headaches
29432955
# around zero
@@ -3007,24 +3019,22 @@ def get_xticklabels(self, minor=False, which=None):
30073019
self.xaxis.get_ticklabels(minor=minor,
30083020
which=which))
30093021

3010-
@docstring.dedent_interpd
30113022
def set_xticklabels(self, labels, fontdict=None, minor=False, **kwargs):
30123023
"""
3013-
Set the xtick labels with list of strings labels
3024+
Set the xtick labels with list of string labels
30143025
30153026
Parameters
30163027
----------
3017-
labels: list of str
3028+
labels : list of str
30183029
list of string labels
30193030
30203031
Returns
30213032
-------
3022-
list of str
3023-
A list of axis text instances
3033+
A list of `~matplotlib.text.Text` instances
30243034
30253035
Other Parameters
30263036
-----------------
3027-
kwargs : :class:`~matplotlib.text.Text` properties.
3037+
**kwargs : `~matplotlib.text.Text` properties.
30283038
"""
30293039
if fontdict is not None:
30303040
kwargs.update(fontdict)
@@ -3214,20 +3224,29 @@ def get_yscale(self):
32143224
get_yscale.__doc__ = "Return the yaxis scale string: %s""" % (
32153225
", ".join(mscale.get_scale_names()))
32163226

3217-
@docstring.dedent_interpd
32183227
def set_yscale(self, value, **kwargs):
32193228
"""
32203229
Set the y-axis scale
32213230
32223231
Parameters
32233232
----------
3224-
value: float
3225-
Value to scale y-axis by
3233+
value : ["linear", "log", "symlog", "logit"]
3234+
scaling strategy to apply
32263235
3227-
Other Parameters
3228-
-----------------
3229-
kwargs : :class:`~matplotlib.text.Text` properties.
3236+
Notes
3237+
-----
3238+
Different kwargs are accepted, depending on the scale. See
3239+
the `~matplotlib.scale` module for more information.
3240+
3241+
See also
3242+
--------
3243+
matplotlib.scale.LinearScale : linear transfrom
3244+
3245+
matplotlib.scale.LogTransform : log transform
3246+
3247+
matplotlib.scale.SymmetricalLogTransform : symlog transform
32303248
3249+
matplotlib.scale.LogisticTransform : logit transform
32313250
"""
32323251
# If the scale is being set to log, clip nonposy to prevent headaches
32333252
# around zero
@@ -3300,25 +3319,22 @@ def get_yticklabels(self, minor=False, which=None):
33003319
self.yaxis.get_ticklabels(minor=minor,
33013320
which=which))
33023321

3303-
@docstring.dedent_interpd
33043322
def set_yticklabels(self, labels, fontdict=None, minor=False, **kwargs):
33053323
"""
33063324
Set the xtick labels with list of strings labels
33073325
33083326
Parameters
33093327
----------
3310-
labels: list of str
3328+
labels : list of str
33113329
list of string labels
33123330
33133331
Returns
33143332
-------
3315-
list of str
3316-
A list of :class:`~matplotlib.text.Text` instances.
3333+
A list of `~matplotlib.text.Text` instances.
33173334
33183335
Other Parameters
33193336
----------------
3320-
*kwargs* set the :class:`~matplotlib.text.Text` properties.
3321-
3337+
**kwargs : `~matplotlib.text.Text` properties.
33223338
"""
33233339
if fontdict is not None:
33243340
kwargs.update(fontdict)
@@ -3898,17 +3914,19 @@ def twinx(self):
38983914
"""
38993915
Create a twin Axes sharing the xaxis
39003916
3901-
Create a twin of Axes for generating a plot with a sharex
3902-
x-axis but independent y axis. The y-axis of self will have
3917+
Create a twin of Axes for generating a plot with a shared
3918+
x-axis but independent y-axis. The y-axis of self will have
39033919
ticks on left and the returned axes will have ticks on the
39043920
right. To ensure tick marks of both axis align, see
3905-
:class:`~matplotlib.ticker.LinearLocator`
3921+
`~matplotlib.ticker.LinearLocator`
39063922
39073923
Returns
39083924
-------
39093925
Axis
39103926
The newly created axis
39113927
3928+
Notes
3929+
-----
39123930
For those who are 'picking' artists while using twinx, pick
39133931
events are only called for the artists in the top-most axes.
39143932
"""
@@ -3926,7 +3944,7 @@ def twiny(self):
39263944
Create a twin Axes sharing the yaxis
39273945
39283946
Create a twin of Axes for generating a plot with a shared
3929-
y-axis but independent x axis. The x-axis of self will have
3947+
y-axis but independent x-axis. The x-axis of self will have
39303948
ticks on bottom and the returned axes will have ticks on the
39313949
top.
39323950
@@ -3935,6 +3953,8 @@ def twiny(self):
39353953
Axis
39363954
The newly created axis
39373955
3956+
Notes
3957+
------
39383958
For those who are 'picking' artists while using twiny, pick
39393959
events are only called for the artists in the top-most axes.
39403960
"""

0 commit comments

Comments
 (0)