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 alignment seems a bit off #47

Closed
chaosphere2112 opened this issue Nov 23, 2016 · 6 comments
Closed

text alignment seems a bit off #47

chaosphere2112 opened this issue Nov 23, 2016 · 6 comments
Labels
Milestone

Comments

@chaosphere2112
Copy link
Contributor

@chaosphere2112 chaosphere2112 commented Nov 23, 2016

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

@danlipsa
Copy link
Contributor

@danlipsa danlipsa commented Nov 30, 2016

@aashish24 @doutriaux1 @chaosphere2112 Here are some test files from the latest VTK showing various alignments of labels. I am working to use that VTK into uvcdat.

multiLineText
http://www.vtk.org/files/ExternalData/MD5/63c4f3d5bb1dcfcd0592fa7522316f66

TestScatterPlotMatrixVisible
http://www.vtk.org/files/ExternalData/MD5/fa2c3d87a180352afa623b0be3dff100

@danlipsa
Copy link
Contributor

@danlipsa danlipsa commented Nov 30, 2016

Here is the test run with that VTK;
blah

@durack1
Copy link
Member

@durack1 durack1 commented Nov 30, 2016

@danlipsa CDAT/cdat#1077, CDAT/cdat#1079, CDAT/cdat#1080 and CDAT/cdat#2082 may also provide some user insights/be relevant/duplicates here

@aashish24
Copy link
Contributor

@aashish24 aashish24 commented Nov 30, 2016

@danlipsa the result are looking very good, thanks for the hard-work on tracking this.

@aashish24
Copy link
Contributor

@aashish24 aashish24 commented Nov 30, 2016

@durack1 thanks for tracking the issues. @danlipsa can you have a look at them?

@danlipsa
Copy link
Contributor

@danlipsa danlipsa commented Dec 1, 2016

@durack1 @aashish24 Thanks for tracking these issues. I think there are very nice bits there that we can add to our test suite. Some complain about the text size changing between versions. My latest VTK update resulted in text size change - this was just one pixel difference I think. Big changes should not happen - unless there are bugs that could be fixed.

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

Successfully merging a pull request may close this issue.

None yet
5 participants