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

Skip to content

Commit f49ca61

Browse files
jklymaktimhoffm
andauthored
Update doc/users/faq/howto_faq.rst
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent 6355d1b commit f49ca61

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doc/users/faq/howto_faq.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@ supplied.
4545
ax[1].tick_params(axis='x', labelcolor='red', labelsize=14)
4646

4747
The solution is to convert the list of strings to numbers or
48-
datetime objects (often ``np.asarray(['2', '5', '1'], dtype='float')`` or::
49-
50-
np.asarray(['2021-10-01', '2021-11-02', '2021-12-03'],
51-
dtype='datetime64[s]')
48+
datetime objects (often ``np.asarray(numeric_strings, dtype='float')`` or
49+
``np.asarray(datetime_strings, dtype='datetime64[s]')``).
5250

5351
For more information see :doc:`/gallery/ticks/ticks_too_many`.
5452

0 commit comments

Comments
 (0)