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

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/users/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ Please see :ref:`figures-not-showing`.
.. _how-to-too-many-ticks:

Why do I have so many ticks, and/or why are they out of order?
In simple terms, this happens because Matplotlib treats strings as categories instead of numeric values. As a result, the axis may display ticks in an unexpected order or show too many ticks.
--------------------------------------------------------------

One common cause for unexpected tick behavior is passing a *list of strings
A common cause for unexpected tick behavior is passing a *list of strings
instead of numbers or datetime objects*. This can easily happen without notice
when reading in a comma-delimited text file. Matplotlib treats lists of strings
as *categorical* variables
Expand Down
4 changes: 3 additions & 1 deletion doc/users/getting_started/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Installation quick-start
Draw a first plot
-----------------

Here is a minimal example plot:
Here is a minimal example of a plot:

.. plot::
:include-source:
Expand All @@ -24,6 +24,8 @@ Here is a minimal example plot:
fig, ax = plt.subplots()
ax.plot(x, y)
plt.show()

This will open a window displaying the plotted graph.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not always true but depends on which backend you are using. For example, the inline and ipympl backends used in Jupyter notebooks show the plot within the page.


If a plot does not show up please check :ref:`troubleshooting-faq`.

Expand Down
Loading