Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Size of boxes of latex code within text plot not symmetric

When I run the command

text('$%s$' %latex(1/2),(1,1), background_color='red')

I get an unsymmetric output of the bounding box.

image description

Left/right is okay, but at the bottom it's bigger than at the top.

It becomes worse when increasing the fontsize.

text('$%s$' %latex(1/2),(1,1), background_color='red', fontsize=50)

image description

Any ideas how to make it symmetric?

I get a similar problem with

text('$%s$' %latex(1),(1,1), background_color='red')

image description

Size of boxes of latex code within text plot not symmetric

When I run the command

text('$%s$' %latex(1/2),(1,1), background_color='red')

I get an unsymmetric output of the bounding box.

image description

Left/right is okay, but at the bottom it's bigger than at the top.

It becomes worse when increasing the fontsize.

text('$%s$' %latex(1/2),(1,1), background_color='red', fontsize=50)

image description

Any ideas how to make it symmetric?

I get a similar problem with

text('$%s$' %latex(1),(1,1), background_color='red')

image description

Size Wrong arrangement of boxes LaTeX output within bounding box of latex code within text plot not symmetricplot

When I run the command

text('$%s$' %latex(1/2),(1,1), background_color='red')

I get an unsymmetric output of the bounding box. Or more precisely, the fraction is too far above.

image description

Left/right is okay, but at the bottom it's bigger than at the top.

It becomes worse when increasing the fontsize.

text('$%s$' %latex(1/2),(1,1), background_color='red', fontsize=50)

image description

Any ideas how to make it symmetric?right?

I get a similar problem with

text('$%s$' %latex(1),(1,1), background_color='red')

image description

Wrong arrangement of LaTeX output within bounding box of text plot

When I run the command

text('$%s$' %latex(1/2),(1,1), background_color='red')

I get an unsymmetric output of the bounding box. Or more precisely, the fraction is too far above.

image description

It becomes worse when increasing the fontsize.

text('$%s$' %latex(1/2),(1,1), background_color='red', fontsize=50)

image description

The fraction line should be further down.

Any ideas how to make it right?

I get a similar problem with

text('$%s$' %latex(1),(1,1), background_color='red')

image description

Wrong arrangement of LaTeX output within bounding box of text plot

When I run the command

text('$%s$' %latex(1/2),(1,1), background_color='red')
background_color='red', typeset='latex')

I get an unsymmetric output of the bounding box. Or more precisely, the fraction is too far above.

image description

It becomes worse when increasing the fontsize.

text('$%s$' %latex(1/2),(1,1), background_color='red', fontsize=50)
fontsize=50, typeset='latex')

image description

The fraction line should be further down.down. This can be reproduced on the Sage cell server: http://sagecell.sagemath.org/?z=eJwdy0EKgCAQAMCveFBWYaEMOvqWMN0iEg3dwHp90NyHqbMGqZoEoZJn6toOk0Ft0RoUqw_nXsud4xJKKtVBpQgotpK5HS-5eUTBz0WN2MH_wXw25Bqp&lang=sage

Any ideas how to make it right?

I get a similar problem with

text('$%s$' %latex(1),(1,1), background_color='red')

image description

Wrong arrangement of LaTeX output within bounding box of text plot

When I run the command

text('$%s$' %latex(1/2),(1,1), background_color='red', typeset='latex')

I get an unsymmetric output of the bounding box. Or more precisely, the fraction is too far above.

image description

It becomes worse when increasing the fontsize.

text('$%s$' %latex(1/2),(1,1), background_color='red', fontsize=50, typeset='latex')

image description

The fraction line should be further down. This can be reproduced on the Sage cell server: http://sagecell.sagemath.org/?z=eJwdy0EKgCAQAMCveFBWYaEMOvqWMN0iEg3dwHp90NyHqbMGqZoEoZJn6toOk0Ft0RoUqw_nXsud4xJKKtVBpQgotpK5HS-5eUTBz0WN2MH_wXw25Bqp&lang=sage

Any ideas how to make it right?

I get a similar problem with

text('$%s$' %latex(1),(1,1), background_color='red')
background_color='red', typeset='latex')

image description