.. highlightlang:: us .. _what's-new-in-uniplot-4.2.2: What's New in UniPlot 4.2.2 =========================== This page describes the changes made to UniPlot 4.2.2 since version 4.2.1. New Features ------------ * A new report control with edit fields has been added to the :ref:`DialogBox` function. The new control may contain edit fields, buttons, checkboxes and combo boxes. A combo box can be defined to select colors, markers, line styles etc. .. image:: S:/uniplot-obj/images/DialogBox11-EditReport-en.* * New UniPlot File Viewer: The new Viewer 4.2.2 can zoom and scroll x/y datasets. The viewer is a free tool to view and print UniPlot documents. * Improved log-axis scaling. If the axis range is relatively small (approx. 1 decade) a linear labelling can be displayed. Example: 1 to 12 in steps of 2 will produce the labels 1,2,4,6,8,10 and 12. So far the log axis could only be labeled with full decades, e.g. 1, 10, 100, 1000. (see :ref:`diagramx/y/z-axisparameters`). Limitation: Axes with the scaling option **Log: Label linear** cannot be correctly displayed with older UniPlot versions. * The 2D filter function **boundary()** has been extended. The function can now calculate the upper and lower hull curve. The data can be unsorted and must not be monoton. (see :ref:`datadata-filter` and :ref:`datacreate-data-boundary`). New UniScript Functions ----------------------- .. us.makeindex New422, New Functions in UniPlot 4.2.2 .. include:: ../ftab/New422.ftab Modified UniScript Functions ---------------------------- .. us.makeindex Changed422, Changed Functions in UniPlot 4.2.2 .. include:: ../ftab/Changed422.ftab Bug Fixes --------- The following bugs have been fixed: * (ID810) auto_ReplaceTextFromNCFile: The netCDF file was not closed if there was no text to replace. * (ID820) The function to empty the event window (see :ref:`viewevent-window-configuration`) did not delete the events correctly. Sometimes after a new start of UniPlot events already deleted were displayed in the event window. * (ID821) MDF/VS100/INCA: Certain MDF files that could be read with UniPlot 4.2.0 could not be imported with UniPlot 4.2.1. The bug has been fixed. * (ID822) Problem with local variables if objects were used. Example: :: def test_local() { a = [.]; a.a1 = 1; a.a2 = 2; // ... a.a299 = 299; a.a300 = 300; b = 1; // Error message } In the function above UniScript calculated an incorrect number of local variables. The elements "a1" to "a300" were treated as local variables. That created the following error message "To many local variables: *** internal error ***". In fact the function has only two variables, a and b. * (ID824) Style File: If a style file in the old format (*.icb) was converted to the new format (*.sty) the attribute "label-format" (3D-Style) was not saved correctly. The created style file could not be loaded. * (ID825) MDF Files: The MDF filter has been extended to support the data type double. Time channels that are stored in the MDF file as 64-Bit-double values cannot be read. * (ID826) Import: If the unit string is already enclosed in square brackets in the source file, the brackets will be removed to avoid double brackets. * (ID827) Data exchange: In one of the older UniPlot versions an important function call was removed for test purposes. The function call updated depended datasets, for example the sort function. * (ID829) Function :ref:`DialogBox`: The number of parameters of the callback functions were determined incorrectly. If the number of parameters were greater than expected, the function was invoked with less parameters than necessary. * (ID831) UniScript-Parameter: Functions as parameters could not invoke themselves. Example: :: def TTest() { AppSetTimer(TTest, 100); } This bug has been fixed. * (ID835) Axes scaling: If the x-axis has a descending scaling the axis title could not be left or right aligned. * (ID837) The :ref:`RegConnect` function did not work in UniPlot 4.2.0 and 4.2.1. All functions which accessed the Windows registry did not work as well. * (ID840) Excel-Report: If an excel template used the option ``Scaling/Fit to`` in the "Page setup" dialog box the report could not be created correctly. The option is now set to ``Scaling/Adjust to 100% of normal size``. :sub:`id-1848576`