Author Topic: How to add colorbar in Python script?  (Read 1085 times)

Akula

  • Newbie
  • *
  • Posts: 2
How to add colorbar in Python script?
« on: August 29, 2017, 04:15:30 PM »
Dear all,

I am trying to render a series of pictures using python script, and I find it's hard to add a colorbar/legend to the scene. Is there a solution using overlay or something else?

Alexander Stukowski

  • Administrator
  • Hero Member
  • *****
  • Posts: 638
Re: How to add colorbar in Python script?
« Reply #1 on: August 29, 2017, 08:04:52 PM »
Dear Akula,

I'm afraid I have bad news: Python bindings for the color legend overlay are still missing in the current version of OVITO. You won't be able to use it from a script.

I can add the missing bindings in the next program version. However, it's going to be a few days, perhaps weeks, until I can do that and also provide new development builds. Let me know if you cannot find a workaround and need them as quick as possible.

-Alex

P.S.: I have created a corresponding issue in our issue tracking system: https://gitlab.com/stuko/ovito/issues/44
« Last Edit: August 29, 2017, 08:11:03 PM by Alexander Stukowski »

Akula

  • Newbie
  • *
  • Posts: 2
Re: How to add colorbar in Python script?
« Reply #2 on: September 01, 2017, 11:12:10 AM »
Sorry for my late reply. Please take your time, I don't need it badly.

 

Alexander Stukowski

  • Administrator
  • Hero Member
  • *****
  • Posts: 638
Re: How to add colorbar in Python script?
« Reply #3 on: September 21, 2017, 11:35:41 AM »
Just to let you know: Python bindings for the color legend are now included in the newest preview release of OVITO. See

http://ovito.org/index.php/about/version-history

and

http://ovito.org/manual_testing/python/modules/ovito_vis.html#ovito.vis.ColorLegendOverlay