File tree Expand file tree Collapse file tree 12 files changed +45
-7
lines changed Expand file tree Collapse file tree 12 files changed +45
-7
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,11 @@ <h1>Toolkits</h1>
158
158
including a choice of two projection and mapping toolkits < a href ="http://matplotlib.org/basemap "> basemap</ a > and
159
159
< a href ="http://scitools.org.uk/cartopy/docs/latest "> cartopy</ a > ,
160
160
3d plotting with < a href ="{{ pathto('mpl_toolkits/mplot3d/index') }} "> mplot3d</ a > ,
161
- axes and axis helpers in < a href ="{{ pathto('mpl_toolkits/axes_grid/index') }} "> axes_grid</ a > and more.
161
+ axes and axis helpers in < a href ="{{ pathto('mpl_toolkits/axes_grid/index') }} "> axes_grid</ a > ,
162
+ several higher-level plotting interfaces
163
+ < a href ="http://web.stanford.edu/~mwaskom/software/seaborn "> seaborn</ a > ,
164
+ < a href ="http://holoviews.org "> holoviews</ a > ,
165
+ < a href ="http://ggplot.yhathq.com "> ggplot</ a > , and more.
162
166
</ p >
163
167
164
168
< h1 > Citing matplotlib</ h1 >
Original file line number Diff line number Diff line change @@ -161,8 +161,6 @@ <h3>{{ _('Navigation') }}</h3>
161
161
162
162
{% block relbar1 %}
163
163
164
- < link rel ="shortcut icon " href ="/_static/favicon.ico ">
165
-
166
164
<!-- The "Fork me on github" ribbon -->
167
165
< img style ="float: right; margin-bottom: -40px; top: 0; right: 0; border: 0; " src ="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png " usemap ="#ribbonmap "/>
168
166
< map name ="ribbonmap ">
Original file line number Diff line number Diff line change 213
213
# Output file base name for HTML help builder.
214
214
htmlhelp_basename = 'Matplotlibdoc'
215
215
216
+ # Path to favicon
217
+ html_favicon = '_static/favicon.ico'
216
218
217
219
# Options for LaTeX output
218
220
# ------------------------
Original file line number Diff line number Diff line change @@ -172,6 +172,26 @@ level interface for drawing statistical graphics with matplotlib. It
172
172
aims to make visualization a central part of exploring and
173
173
understanding complex datasets.
174
174
175
+ .. image :: /_static/seaborn.png
176
+ :height: 157px
177
+
178
+ .. _toolkit_holoviews :
179
+
180
+ holoviews
181
+ =========
182
+ (*Not distributed with matplotlib *)
183
+
184
+ `holoviews <http://holoviews.org >`_ makes it easier to visualize data
185
+ interactively, especially in a `Jupyter notebook
186
+ <http://jupyter.org> `_, by providing a set of declarative
187
+ plotting objects that store your data and associated metadata. Your
188
+ data is then immediately visualizable alongside or overlaid with other
189
+ data, either statically or with automatically provided widgets for
190
+ parameter exploration.
191
+
192
+ .. image :: /_static/holoviews.png
193
+ :height: 354px
194
+
175
195
.. _toolkit_ggplot :
176
196
177
197
ggplot
@@ -181,6 +201,9 @@ ggplot
181
201
`ggplot <https://github.com/yhat/ggplot >`_ is a port of the R ggplot2
182
202
to python based on matplotlib.
183
203
204
+ .. image :: /_static/ggplot.png
205
+ :height: 195px
206
+
184
207
185
208
.. _toolkit_prettyplotlib :
186
209
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ def _apply_params(self, **kw):
342
342
# -> points. grab the integer from the `Text` object
343
343
# instead of saving the string representation
344
344
v = getattr (self .label1 , 'get_' + k )()
345
- setattr (self , '_ ' + k , v )
345
+ setattr (self , '_label ' + k , v )
346
346
347
347
348
348
class XTick (Tick ):
Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ def set_linestyle(self, ls):
510
510
=========================== =================
511
511
``'-'`` or ``'solid'`` solid line
512
512
``'--'`` or ``'dashed'`` dashed line
513
- ``'-.'`` or ``'dash_dot '`` dash-dotted line
513
+ ``'-.'`` or ``'dashdot '`` dash-dotted line
514
514
``':'`` or ``'dotted'`` dotted line
515
515
=========================== =================
516
516
Original file line number Diff line number Diff line change @@ -1012,7 +1012,7 @@ def set_linestyle(self, ls):
1012
1012
=========================== =================
1013
1013
``'-'`` or ``'solid'`` solid line
1014
1014
``'--'`` or ``'dashed'`` dashed line
1015
- ``'-.'`` or ``'dash_dot '`` dash-dotted line
1015
+ ``'-.'`` or ``'dashdot '`` dash-dotted line
1016
1016
``':'`` or ``'dotted'`` dotted line
1017
1017
``'None'`` draw nothing
1018
1018
``' '`` draw nothing
Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ def set_linestyle(self, ls):
370
370
=========================== =================
371
371
``'-'`` or ``'solid'`` solid line
372
372
``'--'`` or ``'dashed'`` dashed line
373
- ``'-.'`` or ``'dash_dot '`` dash-dotted line
373
+ ``'-.'`` or ``'dashdot '`` dash-dotted line
374
374
``':'`` or ``'dotted'`` dotted line
375
375
=========================== =================
376
376
Original file line number Diff line number Diff line change @@ -4330,6 +4330,17 @@ def test_pandas_indexing_hist():
4330
4330
fig , axes = plt .subplots ()
4331
4331
axes .hist (ser_2 )
4332
4332
4333
+ @cleanup
4334
+ def test_axis_set_tick_params_labelsize_labelcolor ():
4335
+ # Tests fix for issue 4346
4336
+ axis_1 = plt .subplot ()
4337
+ axis_1 .yaxis .set_tick_params (labelsize = 30 , labelcolor = 'red' , direction = 'out' )
4338
+
4339
+ # Expected values after setting the ticks
4340
+ assert axis_1 .yaxis .majorTicks [0 ]._size == 4.0
4341
+ assert axis_1 .yaxis .majorTicks [0 ]._color == 'k'
4342
+ assert axis_1 .yaxis .majorTicks [0 ]._labelsize == 30.0
4343
+ assert axis_1 .yaxis .majorTicks [0 ]._labelcolor == 'red'
4333
4344
4334
4345
if __name__ == '__main__' :
4335
4346
import nose
You can’t perform that action at this time.
0 commit comments