Outputting to eps with Mplot3d one of the walls loses its lines.

I have version 1.2.x of matplotlib. The minimal example shows the case below. The back wall will lose its lines. Is there a reason for this? Is there a transparent layer there so eps has to put it as a solid wall? If so, is there a way to remove that transparent layer?

Pdf and the other backends have no problem exporting correctly.

import matplotlib.pyplot as plt

from mpl_toolkits.mplot3d import Axes3D

fig = plt.figure()

ax = fig.add_subplot(111, projection=‘3d’)

plt.savefig(‘testing.eps’)

Finally had some time to investigate this a bit...

Diving into the eps output, I can tell that the grid lines are being output
to the file, but it seems like the color of the gridline matches that
particular wall's color, which is why we can't see it. The odd thing is
that the line colors are correct, but for some reason, the face colors are
wrong for eps. Looking at the output for pdf and png, the walls are not
shaded nearly as much as it is in eps. There is probably something messed
up in our PS backend that is misinterpreting the grayscale color
information it is getting.

Will have to dive in some more...

Cheers!
Ben Root

···

On Fri, Jul 26, 2013 at 4:41 PM, Jeffrey Spencer <jeffspencerd@...287...>wrote:

I have version 1.2.x of matplotlib. The minimal example shows the case
below. The back wall will lose its lines. Is there a reason for this? Is
there a transparent layer there so eps has to put it as a solid wall? If
so, is there a way to remove that transparent layer?

Pdf and the other backends have no problem exporting correctly.

import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
plt.savefig('testing.eps')

Yes, I see that now. I hadn’t noticed that the face color for the bottom of the 3d plot is off as well. Thanks for the update and keep me posted.

Cheers,

Jeff

···

On Sat, Aug 3, 2013 at 3:41 AM, Benjamin Root <ben.root@…1304…> wrote:

On Fri, Jul 26, 2013 at 4:41 PM, Jeffrey Spencer <jeffspencerd@…287…> wrote:

I have version 1.2.x of matplotlib. The minimal example shows the case below. The back wall will lose its lines. Is there a reason for this? Is there a transparent layer there so eps has to put it as a solid wall? If so, is there a way to remove that transparent layer?

Pdf and the other backends have no problem exporting correctly.

import matplotlib.pyplot as plt

from mpl_toolkits.mplot3d import Axes3D

fig = plt.figure()

ax = fig.add_subplot(111, projection=‘3d’)

plt.savefig(‘testing.eps’)

Finally had some time to investigate this a bit…

Diving
into the eps output, I can tell that the grid lines are being output to
the file, but it seems like the color of the gridline matches that particular wall’s color, which is why we can’t see it. The odd thing is
that the line colors are correct, but for some reason, the face colors are wrong for eps. Looking at the output for pdf and png, the walls are
not shaded nearly as much as it is in eps. There is probably something
messed up in our PS backend that is misinterpreting the grayscale color
information it is getting.

Will have to dive in some more…

Cheers!

Ben Root