Large circle causes matplotlib to hang

Hi,

The following code causes matplotlib to hang:

···

---

import numpy as np

import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.patches import Circle

fig = plt.figure()
ax = fig.add_subplot(1,1,1)
ax.add_patch(Circle((1.e17, 1.e17), radius=1.e15))
fig.savefig('test.png')

---

Am I doing something wrong?

Thanks for any help,

Cheers,
Tom

Hi,

The following code causes matplotlib to hang:

---

import numpy as np

import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.patches import Circle

fig = plt.figure()
ax = fig.add_subplot(1,1,1)
ax.add_patch(Circle((1.e17, 1.e17), radius=1.e15))
fig.savefig('test.png')

---

Am I doing something wrong?

You found a bug, presumably in extension code, since Ctl-C doesn't bring it to a halt.

Eric

···

On 04/15/2011 12:08 PM, Thomas Robitaille wrote:

Thanks for any help,

Cheers,
Tom