Skip to content
Prev Previous commit
Next Next commit
Fix mandelbrot example.
(Apparently the version parsing can sometimes fail on Travis.)
  • Loading branch information
anntzer committed Jan 9, 2018
commit 2eac3fad6c3eaff209e46fc368b5c988e2aa21fa
5 changes: 2 additions & 3 deletions examples/showcase/mandelbrot.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ def mandelbrot_set(xmin, xmax, ymin, ymax, xn, yn, maxiter, horizon=2.0):

# Some advertisement for matplotlib
year = time.strftime("%Y")
major, minor, micro = matplotlib.__version__.split('.', 2)
text = ("The Mandelbrot fractal set\n"
"Rendered with matplotlib %s.%s, %s - http://matplotlib.org"
% (major, minor, year))
"Rendered with matplotlib %s, %s - http://matplotlib.org"
% (matplotlib.__version__, year))
ax.text(xmin+.025, ymin+.025, text, color="white", fontsize=12, alpha=0.5)

plt.show()