enthought / enthought/mayavi

Mysterious horizontal lines in image

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

Description

```
import numpy as np
from mayavi import mlab

u, v = np.mgrid[-5:5:800j, -5:5:800j]
x = u
y = v
z = 0.5*(u**2 + v**2)

fig = mlab.figure(size=(1000, 1000))
mlab.mesh(x, y, z, colormap='Blues', figure=fig)
mlab.view(30.0, 80.0, 45.0)

mlab.savefig('new.png', magnification=5)
```
What are the horizontal lines that pass through the surface? By reducing the image size, I can eliminate those lines, but what exactly is the mechanism behind this phenomenon?

I've attached an image.

![Screenshot 2019-04-06 at 4 38 45 PM](https://user-images.githubusercontent.com/27421574/55667087-84e76880-588a-11e9-8537-ba21aa47add2.png)

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.