Browse files

use Ada Lovelace's and Grace Hopper's images

  • Loading branch information...
1 parent 5da2608 commit 06010eb80188fe8c89d32a95d1b1b2a04c0ad94a @ivanov committed Dec 15, 2012
View
6 examples/animation/old_animation/draggable_legend.py
@@ -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.),
View
2 examples/misc/sample_data_demo.py
@@ -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)
View
2 examples/pylab_examples/demo_annotation_box.py
@@ -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)
View
2 examples/pylab_examples/demo_text_path.py
@@ -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)
View
2 examples/pylab_examples/image_demo3.py
@@ -7,7 +7,7 @@
import matplotlib.cbook as cbook
-datafile = 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

0 comments on commit 06010eb

Please sign in to comment.