I am using Python Scripting with Plaxis 2D.
I have exported a plot of the Phase deviatoric strain Pys.
However i cant work out how to hide the Nodes and StressPoints on the plot.
In the GUI it is very simple using the tree, but it does not fill in anything in the command line.
Thanks in Advance
Dear Natalie,
You are right, this is missing in the Python scripting layer and I have asked our developers to include it.
Usually, the nodes and stress points do not appear by default. However, it can be that Output remembers the last time you opened it as you had the nodes and/or stress points visible.
So, the main question is, when you manually click to view the results from Input, does Output show the nodes? If yes, try to hide them from the menu, select to Close Output and try clicking to view the results again from Input. I expect that the nodes would not be shown by default.
Hi Stefanos - any update on the ability to turn off nodes and stress points using python?
Hello Glem,
Sure this is possible using the commands:
The same goes for the show command.
Hello,
I have a similar problem:
I iterate through phases and get plots out using this snippet:
print(len(g_o.Phases[:]))plotter = [g_o.ResultTypes.Soil.Utot,g_o.ResultTypes.Soil.Ux]for phase in g_o.Phases[:]:....#print(phase.InputSettings.DeformCalcType)....ii = 0....print('i'+str(i))....for pl in plotter:........print('ii'+str(ii))........newest_plot.Phase = g_o.Phases[i] ........newest_plot.ResultType = plotter[ii]........newest_plot.MeshSettings.ElementContours........newest_plot.hide(g_o.MeshNodes)........newest_plot.hide(g_o.MeshStressPoints)........image_wrapper = newest_plot.export(1600, 1200)........image_wrapper.image.save(str(phase.Identification)+'_'+str(plotterTitle[ii])+".png") ........ii+=1 ....i+=1
this produces only in the last phase the desired result (nodes and stress points are switched off in the plot) however the ElementContours are swiched off in all plot files.
What is wrong here?
____________________________
Or another approach: is it possible to get a bunch of different plots prepared already and have them updated in the different phases?
Example:
Plot1 - Deformations X
Plot2 - Deformations Y
Plot3 - Deformations Total
Plot4 - Plasticity points
.... etc.
and then cycle through the different phases, have these plots updated and then get a copy (image file) from it.