WinPLOTR

  • What is WinPLOTR ?
  • Install WinPLOTR
  • WinPLOTR.set file
  • data file format
  • User's guide
  • Diffractometers
  • Use of the mouse
  • E-mail
  • LLB home page


  • WinPLOTR is a software to plot powder diffraction patterns. It can be used to plot raw or normalized data files coming from neutron and X-ray diffractometers (conventionnal or synchrotron radiation) as well as as Rietveld files created by the Fullprof refinement program. WinPLOTR has been developped to run on PC's under Windows 95 and Windows NT versions 3.51 and up.

    The main capabilities of the WinPLOTR software are the following:

    return

    HOW TO INSTALL WinPLOTR on YOUR PC?

    Remarks:

    return

    WinPLOTR.set file

    return


    THE DATA FILES FORMAT:

    File descriptionDefault
    extension

    X,Y data: file with 2 (or 3) columns

        - line 1*  : text
        - line 1_1 : separator (-------------------)
        - lines l  : column 1: 2Theta(deg.) position
                     column 2: counting
                     column 3: sigma
           rk: if the third column doesn't exist, the sigma of the countings are
               calculated as SQR(counting)
    .xy

    INSTRM=0: free format file
        - line 1  : 2Theta_min(deg.)   step(deg.)    2Theta_max(deg.)    +  comments
        - lines l : counting
    rk: sigmas(n) = SQR(counting(n))
    .dat
    INSTRM=1: data file from multicounters diffractometers
        - line 1  : 2Theta_min(deg.)   step(deg.)    2Theta_max(deg.)    +  comments
        - lines l : n pairs (number_of_counters, counting)
                    n = (2Theta_max - 2Theta_min) / step + 1
           rk: sigmas(n) = SQR(counting(n) / number_of_detectors)  
    .dat
    INSTRM=3: data file from D1B, D20 (ILL) new format
        - line 1: nset
        - line 2: date time text
        - line 3: nset1 files numors
        - line 4: par par 2Theta_Min(deg.) par par par par par step(deg.)
        - line 5: n
        - lines l: n pairs (number_of_detectors, counting) format=10(i2,f8.0)
           rk: sigmas(n) = SQR(counting(n) / number_of_detectors(n))
    .dat
    INSTRM=5: free format file
        - line 1-3: text
        - line 4  : n, param, param, ivari, monitor1, monitor2
        - line 5  : 2Theta_min(deg.)   step(deg.)     2Theta_max(deg.)
        - lines l : n countings ( n = [2Theta_max - 2Theta_min]/pas + 1)
           rk: if (ivari /=0) then
                following lines: n sigmas
               else
                if (monitor1 > 1. and monitor2 > 1) then
                 cnorm = (monitor1 / monitor2)**2
                else
                 cnorm = 1
                end if
                sigmas(n) = SQR(counting(n) * cnorm)
               endif
    .dat
    INSTRM=6: data file from multicounters diffractometers
        - line 1  : text
        - line 2  : a21 a22 step(deg) a23 a24 a25
        - line 3  : 2Theta_min(deg)
        - line 4  : Monitor1 Monitor2 Tsample Tregulation
        - lines l : n pairs (number_of_detectors, counting)
           rk: if (monitor2 < 1.) then
                cnorm = 1
                Monitor2 = Monitor1
               else
                cnorm = (Monitor1 / Monitor2)**2
               endif
               sigmas(n) = SQR(counting(n) * cnorm / number_of_detectors)
    .dat
    Data file created by the Rietveld-type Fullprof program (IPL2 = 1, -3, +3)
    • powder data: 2theta(deg), Iobs, Icalc, Iobs-Icalc, 2Theta(hkl) ...
        PRF file is considered as 4 different files
    • crystal data: sinTheta/l , F2obs, F2calc
        PRF file is considered as 3 different files

    .prf
    Data file from the GSAS analysis data software:
        - line 1: text
        - line 2: item 3 = number of points (n)
        - following lines: depending on item10 and item5
          -item10="STD" item5="CONST"
            . xmin=item6/div
            . pas =item7/div
            . read(10(i2,F6.0) iww(i),y(i) i=1,npts
              sigmas(i) = SQR(y(i) / iww(i)) i=1,npts
          -item10="ESD" item5="CONST"
            . xmin=item6/div
            . pas =item7/div
            . read(10F8.0) y(i),sigmas(i) i=1,npts
          -item10="ALT" item5="RALF"
            . xmin=item6/32
            . pas =item7/32
            . read(4(F8.0,F7.4,F5.4) x(i),y(i),sigmas(i) i=1,npts
               x(i)=x(i)/32       i=1,npts
               do i=1,npts-1
                div=x(i+1)-x(i)
                y(i)=  1000 *  y(i) / div
                sigmas(i) = 1000 * sigmas(i) / div
               end do
          -item10="ALT" item5="CONST"
            . xmin=item6
            . pas =item7
            . read(4(F8.0,F7.4,F5.4) x(i),y(i),sigmas(i) i=1,npts
               x(i)=x(i)/32       i=1,npts
    
              Rk: . time of flight data:      div = 1.
                  . constant wavelength data: div = 100.

    HRMPD file: data file from the new High Resolution Multicounters Powder Diffractometer G42 / LLB)
        - lines 1-7: text
        - n x  lines:
          . line 1: point number
                    couting time
                    angular positions of the counters banks (2theta in deg.)
                    setting temperature and sample temperature
          . line 2: format 10I8: counting of the 10 detectors of bank 1
          . line 3: format 10I8: counting of the 10 detectors of bank 2
               ...
          . line 8: format 10I8: counting of the 10 detectors of bank 7
    .mpd
    6T1 file: data file from the 6T1 diffractometer at LLB
            rk: sigmas(n) = counting(n)

    RX (Socabim): X-rays data file created by the Socabim software on X-rays diffractometer
            rk: sigmas(n) = counting(n)

    .UXD
    return


    WinPLOTR user's guide


  • File menu
  • Plot menu
  • Options menu
  • Points selection menu
  • X space menu
  • Calculation menu
  • PRF options menu
  • Command menu
  • Text menu
  • Help menu

  • FILES menu

    Open data file:
  • choice of the data file format
  • access to the 'Windows directories dialog box' to select a data file
  • plot on screen the loaded files

  • open buffer file: access to the 'Windows directories dialog box' to select a buffer file, (.BUF) i.e. a file with a listing of data file (with the same format) to load and plot

    open .WPL file: access to the 'Windows directories dialog box' to select a buffer file, (.WPL) i.e. a template file

    Select files: Select, among the loaded files, the files to plot
    !! option not available if more than 20 loaded files !!

    Select section: Select a single section to plot
    !! option available only for HRMPD file !!

    View file: Write on a window the last loaded data file

    Reset: Clear all the arrays and reinitialize parameters

    Save as .WPL file: Access to the 'Windows directories dialog box' to select a template .WPL file name to save the current plot settings, as follows:
            . X_space  data_type:  Xspace= 1 (2theta/tof)
                                   data  = 0: constant wavelength data
                                           1: time of flight data
            . Main legend:
            . X legend:
            . Y legend:
            . Xmin Xmax:
            . Ymin Ymax:
            . X_shift  Y_shift:
            . X_offset Y_offset:
            . X and Y graduations number: 0: automatic gradutions
            . Write text (X frad., Y grad., Yneg. grad., file_name): 0: no / 1: yes
            . Grid (X and Y): 0: no / 1: yes
            . Frame width [0.2-0.8]:
            . Hidden part:    0: no / 1:yes
            . Data directory:
            . ------------------------------------------------------------
            . file_name  format  color  marker_type  marker_size  style  pen_width  title

    Save settings: Save the current WinPLOTR settings in the 'WinPLOTR.set' file (in the WinPLOTR directory defined by the WinPLOTR environment variable or in the current directory):
          . number of loaded files
          . number of points per files
          . last visited directory
          . FullProf version
          . plot options: colors, markers, styles, pen_width
          . PRF plot options: colors, markers, styles
          . grid, number of graduations
          . frame width
          . text colors ...

    Print setup: Access to the 'Windows print setup dialog box' to select printer, orientation, margins...

    Print: Access to the 'Windows print dialog box' to print the graphic window

    Save as PS file: Create a PostScript file (only in black and white)

    Save as HPGL file: Create a Hewlett Packard Graphic Language (only in black and white)

    Exit: Exit WinPLOTR

    return




    PLOT menu

    Focus: Access to a dialog box to enter Xmin and Xmax for the plot: Ymin and Ymax are automatically scaled

    Zoom: Access to a dialog box to enter Xmin, Xmax, Ymin and Ymax for the plot

    Shift: access to a dialog box to enter x and Y shift values:
      first file is unchanged file 2 will be shifted by 'shift' versus the first file
      file n will be shifted by '(n-1)*shift' versus the first file

    Offset: access to a dialog box to enter x and Y offset values:
      X(i,j) => X(i,j) + offset_x
      Y(i,j) => Y(i,j) + offset_y

    Hidden parts: Plot or not the hidden parts

    Frame width: Enter a frame width value to control the rectangular aspect of the plot

    Error bars: Plot or not the error bars of the countings for the last loaded file
    !! not available with .PRF and .MPD files !! of the plot

    return




    OPTIONS menu

    Graduations: Access to a dialog box to enter the number of graduations on X and Y axes (zero values leads to number of graduations automatically determined by WinPLOTR)

    Grid: Access to a dialog box to select or not grids on X and Y axes for the plot

    Colors: - access to a dialog box to select same color for all patterns or one color per pattern
    - access to the 'Windows color dialog box' to select available color

    Markers: - access to a dialog box to select same marker for all patterns or one pattern per pattern
    - access to a dialog box to select a marker and the corresponding size

    Style: - access to a dialog box to select same style for all patterns or one style per pattern
    - access to a dialog box to select a style for the pattern: non-continuous line, continuous line, dashed line, dotted line or histogram

    Pen width: - access to a dialog box to select same style for all patterns or one pen width per pattern
    - access to a dialog box to select a pen width value [1-9]

    return




    POINTS SELECTION menu

    Select background: Select and plot, by clicking on the left mouse button, background points

    Save background: Access to the 'Windows directories dialog box' to select a file to save the previously selected background points

    Select points: Select and plot points, by clicking on the left mouse button,

    Save selected points: Access to the 'Windows directories dialog box' to select a file to save the previously selected points

    return




    X_SPACE menu

    2Theta/T.O.F.: Plot in the 2theta (deg.) space (constant wavelength data) or time of flight data

    Q (Å-1): Plot in the reciprocal Q space: Q = 4pi.sinTheta/l or Q = 2pi/d

    d (Å): Plot in the d(hkl) space

    sinTheta/l (Å-1): Plot in the reciprocal sintheta/l space: s = Q / 4pi

    return




    CALCULATION menu

    Summation: sum of Y's of files on screen + plot the result
  • !! - number of files on screen has to be > 1.
  • files must have identical X values and the same number of data.

  • Difference: substraction of Y dat a of 2 files on screen + plot result on screen
  • !! - number of files on screen has to be equal to 2
  • files must have identical X values and the same number of data.

  • Average: Calculation of the average of Y data on screen
  • !! - number of files on screen has to be > 1
  • files must have identical X values and the same number of data.

  • Multiply Y: Access to a dialog box to select coefficient to multiply the Y's data

    Centroid: - determination of the maximum intensity position
    - calculation of the centroid of poins, corresponding intensity and estimated FWHM (gaussian profile case)
    - results in a window

    Integration: - select, with the left mouse button, the limits for the integration calculation
    - integration results are display in a window and stored in a file.INT
  • !! - only 1 file on the screen

  • Profile fitting:
  • select, with the left mouse button: left and right background, intensity, position and Fwhm for any peak to fit (max=15)
  • exit with the right mouse button
  • access to a dialog box to change starting fitting parameters and select parameters to fit
  • profile fitting procedure (XRFIt software)
  • graphical results
  • !! only 1 file on screen !!
  • Reload data file: reload previous data file on screen
    !! only available after a profile fitting procedure !!
    return




    PRF OPTION menu

    (hkl) list: open a window and display the list of Bragg positions and indexation of Bragg reflections on screen
    (!! - available only for PRF files )

    Zero difference: Draw an horizontal line to represent Yobs - Ycalc = 0
    (!! - available only for PRF files )

    Reload PRF file: Load the previous PRF file and plot it the same graphic options (plot range, colors...). This can be useful if FullProf is running in another window without exit WinPLOTR.

    return




    TEXT menu

    Filename: Display or not the filenames on screen

    Legend text: Access to a dialog box to enter X and Y legends and main title

    Write graduations: Access to a dialog box to select to write or not X and Y graduations

    Write negative graduations: Write or not the Y negative graduations

    Main legend color: Access to the 'Windows color dialog box 'to select a text color for the main title

    X and Y legend color: Access to the 'Windows color dialog box 'to select a text color for the X and Y legend

    X graduations color: Access to the 'Windows color dialog box 'to select a text color for the X graduations

    Y graduations color: Access to the 'Windows color dialog box 'to select a text color for the Y graduations

    return




    COMMANDS menu

    DOS command: - Access to a dialog box to enter a DOS command
    - Run the previous DOS command

    RUN FullProf: - If no PCR file has been edited before, access to the 'Windows directories dialog box' to select the PCR file name needed by FullProf
    - if necessary, access to the 'Windows directories dialog box' to select the data file name needed by FullProf
    - RUN the Rietveld-type FullProf program (If the version of FullProf to be run is not stored in the 'WinPLOTR.set' file, the 'FP_90' version will be used.

    Edit PCR file: - acess to the 'Windows directories dialog box' to select a PCR file to edit
    - load the PCR file into the editor (the text editor can be specified in the 'WinPLOTR.set' file via the 'Edit: ' item the line just after the 'FullProf: ' item; if not, the 'EDIT' DOS editor will be used
    - Unfortunately, you have to exit from the editor to run FullProf

    return




    HELP menu

    User's guide: - Display the 'WinPLOTR.ins' file in a window

    What's new ?: - Display the 'WinPLOTR.new' file in a window

    Settings: - Display the 'WinPLOTR.set' file in a window, or the main parameters and associated values used by WinPLOTR

    Arrays memories: Display the total allocated arrays memory

    About: E-mail and http addresses

    return


    USE OF THE MOUSE:

    Moreover, different kinds of operations can also be realized with the mouse, depending on menu selections:

    return

    Some Neutron Powder Diffractometers:

  • 3T2:
  • high resolution powder diffractometer (LLB / Ge (335): l=1.227Å)
  • G42:
  • multicounters powder diffractometer (LLB / Ge (hhl): l=2.12; 2.38; 3.13; 5.99 Å)
  • G41:
  • PSD (800) powder diffractometer (LLB / Graphite (002): l=2.426 Å)
  • G61:
  • PSD (400) powder diffractometer (LLB / Graphite (002): l=4.76 Å)
  • D1A:
  • high resolution powder diffractometer (ILL)
  • D2B:
  • high resolution powder diffractometer (ILL)
  • DMC:
  • high resolution powder diffractometer (Wurenlingen, PSI)
  • HRPD:
  • high resolution time of flight powder diffractometer (ISIS)


    back to WinPLOTR home page

    Please, address your remarks to:

    WinPLOTR

    last updated: LLB april 98