Text size in rhino




I am new to this forum and to grasshoper/ladybug. I have a very simple question

The text is huge in the rendering from ladybugs. How can I change it ?

Thanks a lot


You can use LegendParameters component to set the font size. Not sure why is it happening in the first place! What is the version of Rhino and your model units?


Mostapha, its version 6. Its meters I am using.


I am facing this same issue on RHINO 6. Seems like it works fine if I generate any graph in a new blank file, but the font size are huge when adding a ladybug diagram to a file with existing geometry. The scale below happens irrespective of the model units (i changed from feet to meters, and also tried changing the tolerance)


Also, funny enough, but legend parameters like font size are not working when this happens


After changing units did you recompute the script?


Yes, even tried a new file.


I cannot reproduce this error! :confused: @wim do you have any inputs on this? It seems to be limited to Rhino 6.


@mostapha can you try with this RHINO file. SunPath.3dm (544.2 KB)


Thank you @ApoorvGoyal! Now I can recreate the error. It is because of an inconsistency in Rhino 6. You can try to recreate it using the code below:

import Rhino as rc
plane = rc.Geometry.Plane.WorldXY
rc.RhinoDoc.ActiveDoc.Objects.AddText('test', plane, 10, 'Arial', False, False)

In Rhino 5 it generates the test with a height of 9.94 feet. The same code in Rhino 6 generated a text with the height of (99.46) which is 10 times larger. As you mentioned it only happens in your Rhino file and if I run the code in a new document it works fine. This looks like something that should be fixed in Rhino 6. cc: @wim


Hi @mostapha, I see that here in that file as well and will look into this some more. Thanks for the heads-up!


@mostapha, @ApoorvGoyal,
In Rhino 5, text was not assigned an annotation style like it is in Rhino 6.

In new files from default templates in Rhino 6, the default annotation style has model space scaling set to 1. In the file that was supplied here, that scale is set to 10. In the case of the python sniplet, the result in the model space will be the height (10) multiplied by the scale (10), which yields 100.



@wim Thanks! That makes sense. Is this something that can be controlled using python/ghpython?


You can find it here. I will add the fix to the code to divide the text size by this value.



I pushed the fix to GitHub. @dorekos and @ApoorvGoyal thank you for reporting this and thank you @wim for the great support as always!

Update Ladybug and it should works fine in both Rhino 5 and Rhino 6.