pymad / cpymad

cPyMAD is a python interface to Mad-X using cython and libmadx
http://cern.ch/pymad
Apache License 2.0
3 stars 3 forks source link

about Usage #83

Closed Landau1908 closed 10 years ago

Landau1908 commented 10 years ago

Hey, Thomas I install cpymad on my other win7 computer, but something confuse me. First, In IDLE window I run the Usage saved as t1.py, but nothing occurs in shell window. Fortunately, no errors occur too. Second, when I run t1.py in command line, the output as follows, but no figure appears.

C:\Users\Administrator>e:

E:\>cd E:\pymad\test

E:\pymad\test>python t1.py

  ++++++++++++++++++++++++++++++++++++++++++++
  +     MAD-X 5.02.02  (32 bit, Windows)     +
  + Support: mad@cern.ch, http://cern.ch/mad +
  + Release   date: 2014.07.04               +
  + Execution date: 2014.08.12 23:39:45      +
  ++++++++++++++++++++++++++++++++++++++++++++
enter Twiss module

iteration:   1 error:   4.612817E-12 deltap:   1.000000E-06
orbit:   3.825252E-12 -6.541905E-15  0.000000E+00  0.000000E+00  0.000000E+00  0
.000000E+00

iteration:   1 error:   0.000000E+00 deltap:   0.000000E+00
orbit:   0.000000E+00  0.000000E+00  0.000000E+00  0.000000E+00  0.000000E+00  0
.000000E+00

++++++ table: summ

      length       orbit5         alfa      gammatr
26658.883200    -0.000000     0.000322    55.759505

          q1          dq1      betxmax        dxmax
   64.280001     0.989809   595.119426     2.859817

       dxrms       xcomax       xcorms           q2
    1.399314     0.000000     0.000000    59.310000

         dq2      betymax        dymax        dyrms
    0.972094   609.525928    -0.000000     0.000000

      ycomax       ycorms       deltap      synch_1
    0.000000     0.000000     0.000000     8.574408

     synch_2      synch_3      synch_4      synch_5
    0.002245     0.000001     0.000001     0.000000

  Number of warnings: 0

  ++++++++++++++++++++++++++++++++++++++++++++
  + MAD-X 5.02.02 (32 bit) finished normally +
  ++++++++++++++++++++++++++++++++++++++++++++

E:\pymad\test>
coldfix commented 10 years ago

Try to call

plt.show()

as last command.

EDIT: b.t.w. the lhc may not be suitable example for a nice plot since it is very large.

Landau1908 commented 10 years ago

Yes, It woks.

Thank you Thomas!