New ME-databases released




Nobody knows the future,


New features of MatCalc 6


Engineering your material,


Check the new version highlights


Processing Solutions

but we can simulate it...

Learn more about them

enjoy your success

Spring'17 release of ME-databases

  • How can I integrate symbols, subscript letters or a formatted output into MatCalc plots?


   When preparing the descriptions on the plot elements (title, axes, legend), the usage of special symbols not found on the keyboard would be desired (e.g. for the phase names).

   When preparing the descriptions on the plot elements (title, axes, legend), the usage of the special text features (e.g. subscript) is desired (e.g. for the units).


   MatCalc uses HTML as a basis for the text editing in the GUI. In this regards, the editing of the plot descriptions resembles the text edition on the HTML websites.


   Introduction of the special symbols or the special text features (e.g. bold text, underlined text) on the plots is possible with the usage of the HTML tags or HTML syntax. Some of the examples are given below:

Text appearing Text typed
m3 m<sup>3</sup>
Fe3C Fe<sub>3</sub>
Bold text <b>Bold text
µm <html>&mu;m
β <html>&beta;
Γ <html>&Gamma;


   Feel free to find more hints on tags/syntax in the HTML references - this information can be found also in Internet.


  • How can I define my own "user-defined" plot?


   An additional user-defined window is needed, but no 'create user-defined' button is available.


   User defined functions are stored in the /Matcalc/scripts/frame_scripts folder at your local MatCalc installation path. On the event of opening the 'Select new window' dialog, the folder is checked and the scripts found are presented (see picture below).



   Create the user defined function in the same way as you would create any other script. If you are not yet familiar with the MatCalc way of scripting, use one of the provided user-defined functions and modify them according to your needs. Assume the following: You want to plot the weight percent of alloying elements in the phase over temperature in Celsius. Now have a look at the provided '01_all_phase_fractions over T_celsius.mcs' script:

   new-gui-window p1                                                      $ create plot window
   move-gui-window . 150 100 600 500                        $ move and resize plot window

   $ define default x-axis properties
   set-gui-window-property . s u y                                 $ use default x-axis for all plots
   set-gui-window-property . s t temperature / °C     $ axis title
   set-gui-window-property . x T$c                               $ x-axis data

   $ define plot properties: phase fraction
   set-plot-option . a y 1 t phase fraction                    $ axis title
   set-plot-option . s n b f$*                                          $ add series

   In order to plot the alloying elements of any or a certain phase, respectively, over the temperature in Celsius, you simply need to modify the last part of this script:

   $ define plot properties: alloying elements
   set-plot-option . a y 1 t fraction of chemical elements   $ axis title
   set-plot-option . s n b x$PHASE$ELEMENT

   Be aware that MatCalc can only handle one wildcard (*) at a time. You either have to choose a certain phase, e.g. x$fcc_a1$* to plot the chemical contents of the fcc_a1 phase, or a certain element, e.g. x$*$cr to plot the fraction of chromium in all phases. It is of course always an option to plot a specific element in phase by using no wildcard: x$fcc_a1$cr.

   Save the modified script by using a representative file name and save it to the path shown above. It should now be accessible via the user-defined dialog.


  • How can I plot a phase fraction expressed in weight percent?


   Upon drag'n'dropping a variable from the variable window to a plot, the variable is always plotted in fraction. Modifying the data via the options window is tiring, especially when dealing with many series.


   MatCalc uses fraction for the plotting of phases just as it uses Kelvin for temperature. By adding the modifier '$C' to the temperature, you can change it from Kelvin to Celsius. Analogously a modifier can be applied for units.


   When hovering over a variable in the variables dialog, the window below offers some interesting information. The important information for our case is the 'legal unit qualifiers'-part. There is a describtion about which modifier can be applied to a variable thus changing it.

   It is obvious from the figure above, that 'wp', meaning 'weight percent' is a legal modifier to the phase fraction.

   How to apply this modifier?

   Start by opening a new X-Y-Plot if you haven't got one open already. Then, click the variable (e.g. F$* to plot all phase fraction) and drag it to the plot. DO NOT drop it yet. Press the 'Ctrl' key and release the mouse button while still holding the CTRL key. A window will now pop up:

   This dialog box lets you modify the selected variable. '%s' represents the variable you have dragged (which is 'F$*' in our case). By appending '$wp' to the '%s' we modify the phase fraction to the following expression: 'F$*$wp'. Thus, we plot the phase fraction for all phase in weight percent. Press 'OK' to plot the expression.