enthought / enthought/mayavi

Ghosted Axis Text

Open
#243 3 comments 0 reactions 0 assignees View on GitHub
support
Dominant language
Python
Stars
1.4k
Forks
316
Avg merge
7h 44m
Merged PRs (30d)
5

Description

I've had issues with axis 'ghosting' when saving PNG images. The code to generate plots follows:

```
plot = mlab.contour3d(scalars, contours=10, opacity=.8, transparent=True, figure=predictFig)
plot.compute_normals = False
a = mlab.axes(xlabel='Area', ylabel='Aspect Ratio', zlabel='Sweep', ranges=ranges1, nb_labels=2)
a.axes.corner_offset=0.0601
a.title_text_property.font_family = 'times'
a.label_text_property.font_family = 'times'
engine = mlab.get_engine()
scene = engine.current_scene
scene.scene.isometric_view()
f = mlab.gcf()
f.scene.camera.zoom(.9)
f.scene.render()
mlab.savefig('%s_prediction.pdf' % name, figure=predictFig)
```

This sometimes works:
![d2model_prediction](https://cloud.githubusercontent.com/assets/210252/9291722/26f02b40-4385-11e5-8007-ba19a52a96d4.png)

And sometimes produces ghosted text:
![d1model_prediction](https://cloud.githubusercontent.com/assets/210252/9291720/1cab287e-4385-11e5-923f-b192a9a5ee0e.png)

Any ideas about what's going on?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.