Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
tutorials:t6 [2023/08/01 16:20] – [Combining built-in variables in new expressions] pwarczok | tutorials:t6 [2023/08/01 16:21] – [User-defined variables] pwarczok |
---|
Close the **'Functions & Variables'** box to return to the main screen. Expand **'functions'** in the **'Variables'** window by clicking on the small plus-sign to the left of the word. This should give a list of the new functions: | Close the **'Functions & Variables'** box to return to the main screen. Expand **'functions'** in the **'Variables'** window by clicking on the small plus-sign to the left of the word. This should give a list of the new functions: |
| |
{{:tutorials:t6:img:t6_var_func_2014.png| MatCalc variables window}} | {{:tutorials:t6:img:t6_var_func_6050006.png| MatCalc variables window}} |
| |
Make a new plot and drag and drop the functions just defined into it (To select multiple entries, hold **'Ctrl'**-key while clicking on them), together with the **'XS$C'** variable, to check that this gives the same appearance as the plot above. | Make a new plot and drag and drop the functions just defined into it (To select multiple entries, hold **'Ctrl'**-key while clicking on them), together with the **'XS$C'** variable, to check that this gives the same appearance as the plot above. |
When a variable is dragged and dropped from the **'variables'** window, it automatically becomes a **'buffer result'**-type series. To add a **'function/expression'** series, click on the plot, then in the options window, select **'new series'** from the right-click menu, and choose **'function/expression'**. By **'y-data'** for the new series, type in **'Liquid_line'**. Edit the **'x-data'** line to **'x1..0.5'**. | When a variable is dragged and dropped from the **'variables'** window, it automatically becomes a **'buffer result'**-type series. To add a **'function/expression'** series, click on the plot, then in the options window, select **'new series'** from the right-click menu, and choose **'function/expression'**. By **'y-data'** for the new series, type in **'Liquid_line'**. Edit the **'x-data'** line to **'x1..0.5'**. |
| |
{{:tutorials:t6:img:t6_function_to_plot_2016.png| MatCalc function}} | {{:tutorials:t6:img:t6_function_to_plot_6050006.png| MatCalc function}} |
| |
The plot should now look as shown in the image below (with the **'Liquid_line'** series highlighted). | The plot should now look as shown in the image below (with the **'Liquid_line'** series highlighted). |