How to define graphics?

The section <RESULTS> permits to define the graphics to display. It is optional, and by default every output defined in the <OUTPUT> section will be plotted w.r.t time.

To pre-define the graphics, a section [GRAPHICS] is used with the following information:

  • The output on the X-axis, using the keyword x. If omitted, the value by default is the time. Any variable listed in the <OUTPUT> section can be used, for instance x={Ac}.
  • The output on the Y-axis, using the keyword y, for example y={Cc}. This is mandatory. Several outputs can be displayed on the same graph, for instance with y={Ac,Ad}. The outputs to display must be taken from the list of outputs defined in the <OUTPUT> section.
  • The label of the X-axis, using the keyword xlabel. The desired xlabel should be specified under quotes, for instance xlabel='time (h)'.
  • The label of the Y-axis, using the keyword ylabel. The desired ylabel should be specified under quotes, for instance ylabel='Concentration (mM)'.

These pre-defined graphics can be modified via the GUI later on. More options such as color, etc are then also available.

Example

If one wants to plot (Ad,Ac) w.r.t. time in a first plot and Ad w.r.t. Ac in a second plot, it writes in Mlxtran

<RESULTS>
[GRAPHICS]
p1 = {y={Ac,Ad}, ylabel='Ac,Ad', xlabel='Time'}
p2 = {y={Ad}, x={Ac}, ylabel='Ad', xlabel='Ac'}

Several graphics can be defined. To arrange them in space, the function gridarrange can be used. As arguments, the list of graphics to display is given, as well as the number of columns (e.g nb_cols=2, optional), and a flag to enforce the use of same y or x limits (samelimitsy=true and/or samelimitsx=true, optional). Thus, putting the two graphics, first p2 and then p1, in two lines with the same Y-axis writes:

<RESULTS>
[GRAPHICS]
p1 = {y={Ac,Ad}, ylabel='Ac,Ad', xlabel='Time'}
p2 = {y={Ad}, x={Ac}, ylabel='Ad', xlabel='Ac'}
gridarrange(p2,p1,nb_cols=1,samelimitsy=true)