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

Viewing area is not rescaled to text in shifted references #23

Open
hohlraum opened this issue Feb 25, 2015 · 0 comments
Open

Viewing area is not rescaled to text in shifted references #23

hohlraum opened this issue Feb 25, 2015 · 0 comments

Comments

@hohlraum
Copy link
Owner

Matplotlib's autoscale does not take artists added by add_artist into account when calculating dataLim. f27da5b introduces an ugly hack to explicitly add text objects to the datalim. It more or less works for cells, but not for references that have been subjected to transformations.

For instance in the code below c.show() works as expected, but top.show() does not.

t1 = core.Text('one', (-10,0), layer=8)
t2 = core.Text('two', (0,5))
t3 = core.Text('three', (-20,5))
t4 = core.Text('four', (10,0))

c = core.Cell('cell')
c.add([t1, t2, t3, t4])

ref = core.CellReference(c, origin=(10,10))

top = core.Cell('top')
top.add(ref)
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

1 participant