Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to center text vertically for WGText ?

center text vertically
0
Posted

How to center text vertically for WGText ?

0

1. Before calling WGText use the function WGGetTextSizeNorm to get the text height in relative coordinates. 2. Knowing the plotting area height in relative coordinates (difference between rY2 and rY1 that you used in WGSetPlotArea) and the Y-axis range, recalculate the text height to physical (Y axis) coordinates. 3. Call WGText with rY adjusted by 1/2 of the text height in physical coordinates.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123