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

Skip to content

Commit 70bc429

Browse files
authored
Merge pull request #19881 from timhoffm/doc-howto
Remove two sections from Plotting FAQ
2 parents 17947d1 + 2536f2f commit 70bc429

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

doc/faq/howto_faq.rst

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -253,44 +253,6 @@ over so that the tick labels fit in the figure:
253253

254254
Auto Subplots Adjust
255255

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-
294256
.. _howto-align-label:
295257

296258
Align my ylabels across multiple subplots
@@ -312,19 +274,6 @@ setting in the right subplots.
312274

313275
Align Ylabels
314276

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-
328277
.. _howto-set-zorder:
329278

330279
Control the depth of plot elements

0 commit comments

Comments
 (0)