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

Skip to content

Commit ffab54f

Browse files
committed
Remove two sections from Plotting FAQ
- Configure the tick widths This is a standard `tick_params()` parameter. Thus, the elaboration on the implementation details (ticks are markers) is not needed for the specific question. It's an off-topic comment, and as mentioned also described in `axis-container` `tick-container` refs. Furthermore tick width is too specific for a FAQ. - Skip dates where there is no data As stated this is described in `/gallery/text_labels_and_annotations/date_index_formatter`, so the information is already available. I consider this too specific as well to be justify a FAQ entry.
1 parent 07fd38f commit ffab54f

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

doc/faq/howto_faq.rst

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -263,45 +263,6 @@ over so that the tick labels fit in the figure:
263263

264264
Auto Subplots Adjust
265265

266-
.. _howto-ticks:
267-
268-
Configure the tick widths
269-
-------------------------
270-
271-
Wherever possible, it is recommended to use the :meth:`~.axes.Axes.tick_params`
272-
or :meth:`~.axis.Axis.set_tick_params` methods to modify tick properties::
273-
274-
import matplotlib.pyplot as plt
275-
276-
fig, ax = plt.subplots()
277-
ax.plot(range(10))
278-
279-
ax.tick_params(width=10)
280-
281-
plt.show()
282-
283-
For more control of tick properties that are not provided by the above methods,
284-
it is important to know that in Matplotlib, the ticks are *markers*. All
285-
:class:`~matplotlib.lines.Line2D` objects support a line (solid, dashed, etc)
286-
and a marker (circle, square, tick). The tick width is controlled by the
287-
``"markeredgewidth"`` property, so the above effect can also be achieved by::
288-
289-
import matplotlib.pyplot as plt
290-
291-
fig, ax = plt.subplots()
292-
ax.plot(range(10))
293-
294-
for line in ax.get_xticklines() + ax.get_yticklines():
295-
line.set_markeredgewidth(10)
296-
297-
plt.show()
298-
299-
The other properties that control the tick marker, and all markers,
300-
are ``markerfacecolor``, ``markeredgecolor``, ``markeredgewidth``,
301-
``markersize``. For more information on configuring ticks, see
302-
:ref:`axis-container` and :ref:`tick-container`.
303-
304-
305266
.. _howto-align-label:
306267

307268
Align my ylabels across multiple subplots
@@ -323,19 +284,6 @@ setting in the right subplots.
323284

324285
Align Ylabels
325286

326-
.. _date-index-plots:
327-
328-
Skip dates where there is no data
329-
---------------------------------
330-
331-
When plotting time series, e.g., financial time series, one often wants to
332-
leave out days on which there is no data, e.g., weekends. By passing in
333-
dates on the x-xaxis, you get large horizontal gaps on periods when there
334-
is not data. The solution is to pass in some proxy x-data, e.g., evenly
335-
sampled indices, and then use a custom formatter to format these as dates.
336-
:doc:`/gallery/text_labels_and_annotations/date_index_formatter` demonstrates
337-
how to use an 'index formatter' to achieve the desired plot.
338-
339287
.. _howto-set-zorder:
340288

341289
Control the depth of plot elements

0 commit comments

Comments
 (0)