Skip to content

DOC: fixed labels in "Plotting with error bars" #34884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 20, 2020
Merged
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
11 changes: 6 additions & 5 deletions doc/source/user_guide/visualization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ Here is an example of one way to easily plot group means with standard deviation
# Plot
fig, ax = plt.subplots()
@savefig errorbar_example.png
means.plot.bar(yerr=errors, ax=ax, capsize=4)
means.plot.bar(yerr=errors, ax=ax, capsize=4, rot=0)

.. ipython:: python
:suppress:
Expand All @@ -1445,9 +1445,9 @@ Plotting with matplotlib table is now supported in :meth:`DataFrame.plot` and :

.. ipython:: python

fig, ax = plt.subplots(1, 1)
fig, ax = plt.subplots(1, 1, figsize=(7, 6.5))
df = pd.DataFrame(np.random.rand(5, 3), columns=['a', 'b', 'c'])
ax.get_xaxis().set_visible(False) # Hide Ticks
ax.xaxis.tick_top() # Display x-axis ticks on top.

@savefig line_plot_table_true.png
df.plot(table=True, ax=ax)
Expand All @@ -1464,8 +1464,9 @@ as seen in the example below.

.. ipython:: python

fig, ax = plt.subplots(1, 1)
ax.get_xaxis().set_visible(False) # Hide Ticks
fig, ax = plt.subplots(1, 1, figsize=(7, 6.75))
ax.xaxis.tick_top() # Display x-axis ticks on top.

@savefig line_plot_table_data.png
df.plot(table=np.round(df.T, 2), ax=ax)

Expand Down