GeoStudio | PLAXIS Forum - Quick way of export Mstage or Msf plot or data?
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Quick way of export Mstage or Msf plot or data?

by
Bentley Communities Legacy Member
Expert
Created (Edited ) in GeoStudio | PLAXIS Forum

Hi guys,

I'm trying to export Mstage and Msf plots from Plx using Python. The one way I've found on forum is

step=[]

Msf=[]

plt.figure()

for phase in MsfPhases:

      step_x=[]

      Msf_x=[]

      for c,s in enumerate(phase.Steps[::10]):

            step_x.append(c)

            Msf_x.append(s.Reached.SumMsf.value)

      plt.plot(step_x,Msf_x,label=phase.Identification)

      step.append(step_x)

      Msf.append(Msf_x)

But this is super slow. I see that there's been similar questions posted on forum from earlier. So I'm wondering a few things:

1. I haven't found any way we can use python command (e.g. _tabulate or _getresults) to get the Msf-table. Is there a python command to get the table directly in python instead of copy-paste to Excel?

2. Or is there any python command to generate the Msf-plot (similar to g_i.structureplot, g_i.plot) and export/save the plot afterwards?

 image

I guess either of these two methods would be much faster than the code above.

Thanks a lot for help!