[Gmsh] Changing Post processing "Aspect" options on the API

Max Orok morok at mevex.com
Wed Sep 25 16:46:43 CEST 2019


Hi Tomas,

I think nearly every option can be controlled through the API.
The trick is finding the right name for them.

View [0] will have options like View[0].Option1, etc.

For specific options, one way to find them is changing them in the GUI and
checking which option name got modified.
You can do that by going to the Current Options window (Help -> Current
Options...)

For example, here's the Point Size option,

[image: image.png]

In Python, you could set this using

gmsh.option.setNumber("View[0].PointSize", 2.0)

Hope this helps!
Max


On Wed, Sep 25, 2019 at 9:25 AM SilveiraPO . <tsilveira1993 at gmail.com>
wrote:

> Dear professor,
>
> Is it possible to change the settings in the "Aspect" menu from the
> post-processor through the API (in python)?
> For example, changing the options (in red), in the following picture
> [image: 1.PNG]
>
> Thanks in advance once again,
> Tomas
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
>


-- 
Max Orok
Contractor
www.mevex.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190925/d80e7d22/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.PNG
Type: image/png
Size: 26629 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20190925/d80e7d22/attachment-0001.PNG>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 26062 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20190925/d80e7d22/attachment-0001.png>


More information about the gmsh mailing list