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
1 change: 1 addition & 0 deletions examples/animation/basic_example_writer_sgskip.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def update_line(num, data, line):

fig1 = plt.figure()

#########################################################################
data = np.random.rand(2, 25)
l, = plt.plot([], [], 'r-')
plt.xlim(0, 1)
Expand Down
2 changes: 1 addition & 1 deletion examples/axes_grid1/demo_fixed_size_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def demo_fixed_size_axes():

ax.plot([1, 2, 3])


############################################################################
def demo_fixed_pad_axes():
fig = plt.figure(2, (6, 6))

Expand Down
7 changes: 5 additions & 2 deletions examples/axes_grid1/make_room_for_ylabel_using_axesgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def ex1():
ax.set_yticks([0.5])
ax.set_yticklabels(["very long label"])

make_axes_area_auto_adjustable(ax)
oake_axes_area_auto_adjustable(ax)

#########################################################################

def ex2():

Expand All @@ -37,6 +39,7 @@ def ex2():
make_axes_area_auto_adjustable(ax1, pad=0.1, use_axes=[ax1, ax2])
make_axes_area_auto_adjustable(ax2, pad=0.1, use_axes=[ax1, ax2])

#########################################################################
def ex3():

fig = plt.figure(3)
Expand All @@ -59,7 +62,7 @@ def ex3():

ax2.set_title("Title")
ax2.set_xlabel("X - Label")

#########################################################################
ex1()
ex2()
ex3()
Expand Down
2 changes: 1 addition & 1 deletion examples/showcase/xkcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# Based on "The Data So Far" from XKCD by Randall Monroe
# http://xkcd.com/373/

#############################################################################
fig = plt.figure()
ax = fig.add_axes((0.1, 0.2, 0.8, 0.7))
ax.bar([0, 1], [0, 100], 0.25)
Expand Down