@@ -253,44 +253,6 @@ over so that the tick labels fit in the figure:
253
253
254
254
Auto Subplots Adjust
255
255
256
- .. _howto-ticks :
257
-
258
- Configure the tick widths
259
- -------------------------
260
-
261
- Wherever possible, it is recommended to use the :meth: `~.axes.Axes.tick_params `
262
- or :meth: `~.axis.Axis.set_tick_params ` methods to modify tick properties::
263
-
264
- import matplotlib.pyplot as plt
265
-
266
- fig, ax = plt.subplots()
267
- ax.plot(range(10))
268
-
269
- ax.tick_params(width=10)
270
-
271
- plt.show()
272
-
273
- For more control of tick properties that are not provided by the above methods,
274
- it is important to know that in Matplotlib, the ticks are *markers *. All
275
- :class: `~matplotlib.lines.Line2D ` objects support a line (solid, dashed, etc)
276
- and a marker (circle, square, tick). The tick width is controlled by the
277
- ``"markeredgewidth" `` property, so the above effect can also be achieved by::
278
-
279
- import matplotlib.pyplot as plt
280
-
281
- fig, ax = plt.subplots()
282
- ax.plot(range(10))
283
-
284
- for line in ax.get_xticklines() + ax.get_yticklines():
285
- line.set_markeredgewidth(10)
286
-
287
- plt.show()
288
-
289
- The other properties that control the tick marker, and all markers,
290
- are ``markerfacecolor ``, ``markeredgecolor ``, ``markeredgewidth ``,
291
- ``markersize ``. For more information on configuring ticks, see
292
- :ref: `axis-container ` and :ref: `tick-container `.
293
-
294
256
.. _howto-align-label :
295
257
296
258
Align my ylabels across multiple subplots
@@ -312,19 +274,6 @@ setting in the right subplots.
312
274
313
275
Align Ylabels
314
276
315
- .. _date-index-plots :
316
-
317
- Skip dates where there is no data
318
- ---------------------------------
319
-
320
- When plotting time series, e.g., financial time series, one often wants to
321
- leave out days on which there is no data, e.g., weekends. By passing in
322
- dates on the x-xaxis, you get large horizontal gaps on periods when there
323
- is not data. The solution is to pass in some proxy x-data, e.g., evenly
324
- sampled indices, and then use a custom formatter to format these as dates.
325
- :doc: `/gallery/text_labels_and_annotations/date_index_formatter ` demonstrates
326
- how to use an 'index formatter' to achieve the desired plot.
327
-
328
277
.. _howto-set-zorder :
329
278
330
279
Control the depth of plot elements
0 commit comments