Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text the last letter gets cropped #81

Closed
joonro opened this issue Aug 22, 2013 · 1 comment
Closed

Text the last letter gets cropped #81

joonro opened this issue Aug 22, 2013 · 1 comment

Comments

@joonro
Copy link
Contributor

joonro commented Aug 22, 2013

For example, with the surf() example (http://docs.enthought.com/mayavi/mayavi/auto/mlab_helper_functions.html#mayavi.mlab.surf):

import numpy
from mayavi.mlab import *

def test_triangular_mesh():
    """An example of a cone, ie a non-regular mesh defined by its
        triangles.
    """
    n = 8
    t = numpy.linspace(-numpy.pi, numpy.pi, n)
    z = numpy.exp(1j*t)
    x = z.real.copy()
    y = z.imag.copy()
    z = numpy.zeros_like(x)

    triangles = [(0, i, i+1) for i in range(1, n)]
    x = numpy.r_[0, x]
    y = numpy.r_[0, y]
    z = numpy.r_[1, z]
    t = numpy.r_[0, t]

    return triangular_mesh(x, y, z, triangles, scalars=t)

When I change the title to 1, only a dot shows up in the plot:

test_triangular_mesh()
title("1")

Long words are the same:

test_triangular_mesh()
title("Iteration")

The n is not correctly rendered.

@stefanoborini
Copy link
Contributor

Cannot reproduce as of today, either on OSX or Linux. While the font is definitely not the best available (bad kerning, but I doubt is a problem at the mayavi level) every letter is present and readable. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants