Skip to content

text alignment seems a bit off #47

@chaosphere2112

Description

@chaosphere2112

One would expect the cross to be drawn exactly in the center of the middle H it is instead a bit off to the left and down

import vcs
x=vcs.init()
t = vcs.createtext()
t.x=[.8]
t.y=[.8]
t.string = "HHHHH"
t.valign = "half"
t.halign="center"
x.plot(t)
l=vcs.createline()
l.color=["red"]
l.x=[.1,.9]
l.y=[t.y,t.y]
x.plot(l)
l=vcs.createline()
l.color=["blue"]
l.y=[.1,.9]
l.x=[t.x,t.x]
x.plot(l)
x.png("blah")
raw_input("Blah")

blah

Migrated from: CDAT/cdat#2082

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions