@@ -1423,7 +1423,7 @@ Here is an example of one way to easily plot group means with standard deviation
1423
1423
# Plot
1424
1424
fig, ax = plt.subplots()
1425
1425
@savefig errorbar_example.png
1426
- means.plot.bar(yerr = errors, ax = ax, capsize = 4 )
1426
+ means.plot.bar(yerr = errors, ax = ax, capsize = 4 , rot = 0 )
1427
1427
1428
1428
.. ipython :: python
1429
1429
:suppress:
@@ -1444,9 +1444,9 @@ Plotting with matplotlib table is now supported in :meth:`DataFrame.plot` and :
1444
1444
1445
1445
.. ipython :: python
1446
1446
1447
- fig, ax = plt.subplots(1 , 1 )
1447
+ fig, ax = plt.subplots(1 , 1 , figsize = ( 7 , 6.5 ) )
1448
1448
df = pd.DataFrame(np.random.rand(5 , 3 ), columns = [' a' , ' b' , ' c' ])
1449
- ax.get_xaxis().set_visible( False ) # Hide Ticks
1449
+ ax.xaxis.tick_top( ) # Display x-axis ticks on top.
1450
1450
1451
1451
@savefig line_plot_table_true.png
1452
1452
df.plot(table = True , ax = ax)
@@ -1463,8 +1463,9 @@ as seen in the example below.
1463
1463
1464
1464
.. ipython :: python
1465
1465
1466
- fig, ax = plt.subplots(1 , 1 )
1467
- ax.get_xaxis().set_visible(False ) # Hide Ticks
1466
+ fig, ax = plt.subplots(1 , 1 , figsize = (7 , 6.75 ))
1467
+ ax.xaxis.tick_top() # Display x-axis ticks on top.
1468
+
1468
1469
@savefig line_plot_table_data.png
1469
1470
df.plot(table = np.round(df.T, 2 ), ax = ax)
1470
1471
0 commit comments