8000 Ada Lovelace and Grace Murray Hopper images in place of Lena by ivanov · Pull Request #1599 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Ada Lovelace and Grace Murray Hopper images in place of Lena #1599

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 3 commits into from
Jan 10, 2013
Merged
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
6 changes: 3 additions & 3 deletions examples/animation/old_animation/draggable_legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

from matplotlib.offsetbox import OffsetImage, AnnotationBbox

fn = get_sample_data("lena.png", asfileobj=False)
arr_lena = read_png(fn)
fn = get_sample_data("ada.png", asfileobj=False)
arr_ada = read_png(fn)

imagebox = OffsetImage(arr_lena, zoom=0.2)
imagebox = OffsetImage(arr_ada, zoom=0.2)

ab = AnnotationBbox(imagebox, xy,
xybox=(120., -80.),
Expand Down
2 changes: 1 addition & 1 deletion examples/misc/sample_data_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from __future__ import print_function
import matplotlib.cbook as cbook
import matplotlib.pyplot as plt
fname = cbook.get_sample_data('lena.png', asfileobj=False)
fname = cbook.get_sample_data('ada.png', asfileobj=False)

print('fname', fname)
im = plt.imread(fname)
Expand Down
2 changes: 1 addition & 1 deletion examples/pylab_examples/demo_annotation_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@


from matplotlib._png import read_png
fn = get_sample_data("lena.png", asfileobj=False)
fn = get_sample_data("grace_hopper.png", asfileobj=False)
arr_lena = read_png(fn)

imagebox = OffsetImage(arr_lena, zoom=0.2)
Expand Down
2 changes: 1 addition & 1 deletion examples/pylab_examples/demo_text_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def draw(self, renderer=None):
ax = plt.subplot(211)

from matplotlib._png import read_png
fn = get_sample_data("lena.png", asfileobj=False)
fn = get_sample_data("grace_hopper.png", asfileobj=False)
arr = read_png(fn)

text_path = TextPath((0, 0), "!?", size=150)
Expand Down
2 changes: 1 addition & 1 deletion examples/pylab_examples/image_demo3.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import matplotlib.cbook as cbook

da DD88 tafile = cbook.get_sample_data('lena.jpg')
datafile = cbook.get_sample_data('grace_hopper.jpg')
lena = Image.open(datafile)
dpi = rcParams['figure.dpi']
figsize = lena.size[0]/dpi, lena.size[1]/dpi
Expand Down
Binary file added lib/matplotlib/mpl-data/sample_data/ada.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
0