Forum Navigation
You need to log in to create posts and topics.

Output plotting scale when using render

Dear Ovito team,

When I output an image file, I can obtain an image like fig.1. But the plotting scale is very import for me when I put the image in a paper.

How can I add a precise plotting scale like fig.2 when outputting an image file? (The black line in fig.2 is plotting scale, I drew it by myself, but it's not precision.)

Thank you.


Uploaded files:
  • aa.png
  • aa2.png

Hi! Please see the following pages in the user manual on this topic.

OVITO 2.9:

OVITO 3.0:

As the documentation explains there currently is no built-in solution for this. But we have plans to add a more convenient way of rendering a scale bar to OVITO in the future. Let us know if you have any further questions.

Thank you for reply.

I will try to use python script to add a scale bar. Thank you.

I am looking to do this same thing, but when I try to use the example I get:

The Python script has exited with an error.
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'PySide2'

Any suggestions?



Most likely you are getting this error, because you are working with an older version of OVITO. Old releases were not based on the PySide2 module yet. The example code from our website is meant to be used with the latest development builds of OVITO 3.0, which include the PySide2 module.

If you don't want to upgrade and rather want to stick with your current copy of OVITO for now, you should find a corresponding version of the same script in the scripting manual that ships with the installed version of OVITO.