What’s New in UniPlot 4.0.0¶
This page describes the changes made to UniPlot 4.0.0 since version 3.6.x.
Important changes to UniPlot 4¶
UniPlot 4.x can be used with Windows 98, Windows Me, Windows NT 4.0, Windows 2000 and Windows XP.
UniPlot 4.x cannot be used with Windows 95.
UniPlot 4.x and UniPlot 3.x can be used on the same computer parallely . More information about using UniPlot 4 and 3 is covered in the next chapter.
The file format (
.IPW
) has been changed in UniPlot 4. UniPlot 4 can read all former UniPlot file formats, but older UniPlot versions cannot read the UniPlot 4 file format.A new license key is necessary for UniPlot 4.0. The 3.x license key is invalid for UniPlot4.x. If you have purchased UniPlot 3.x or an update to 3.x after October 1, 2002 you can receive a new license key free of charge. Please send an e-mail with your current license key. If you purchased your license or your update before October 1, 2002 will would be happy to send you a quote for an update.
New Features¶
UniPlot-3DView¶
UniPlot 4.0 can create 3D surface plots of multiple datasets in one diagram. See UniPlot:3DView for more information about the new plot type.
Table Object¶
Under UniPlot 3.x tables were created by multiple text and line objects. UniPlot 4.0 offers a table object to make it easier to create legends and text fields (see Table Objects).
Features of the table object:
Undo/Redo, Clipboard support.
Insert/Delete columns and rows.
Merge Cells.
Settings for individual fill color, font, border.
Settings for individual font and the alignment.
Number and date format.
Rotating cell text.
Named cells.
Field functions in cells.
Filter functions for x/y datasets¶
New to UniPlot 4.0 a XY dataset can have one or more filter functions. A filter function calculates the output data that is displayed on the plot from its input data, eg. a spline curve. The filter functions are saved with the dataset. The filter functions are recalculated if the original data is modified.
UniPlot comes with a number of filter functions. For a list of functions see:ref:filter-functions-for-xy-datasets.
3D-Bubble-Plots¶
The bubble diameter and color can be set to be proportional to the z-variable. (see Data=>3D-Dataset=>Scatter Plot.)
Improved Command: Data=>Dataset List¶
The command Data=>Dataset List now displays all datasets of the active page. So far only the datasets of the selected diagram were listed.
Embedding picture files¶
Picture files can be embedded into a UniPlot document. Embedded pictures are saved in the IPW document.
Two new picture formats are now supported: PNG and GIF (see Edit=>Insert Graphic).
Document Password Protection¶
To control access to information in UniPlot documents set a password that is required to open or modify the document. To set the password for a document choose Tools=>Protect Document. If you have high security needs however you should protect your documents with a different tool.
Background Page¶
For documents with multiple pages one page can be selected as the background page. The background page will only be displayed, it cannot be edited unless if the background page is active. To select a background page choose Page=>Select Master Page from the page context menu. To open this menu right click outside the page frame.
Data Browser¶
The data browser has been enhanced by new functions to load datasets. Besides the available functions to load 1D-, 2D- and 3D datasets, the following commands have been added:
Add File: The function adds one or more datasets to a page. One dataset must be selected in the page to retrieve the data source. The function finds all datasets in the page which were loaded from the same data source. The function creates copies and loads the data from the open NC file. Example: Two datasets (Torque and power versus speed) have been loaded from a data file
Test1.nc
. The function will add two datasets (Torque and power versus speed) from the open NC file.Replace File: The function replaces the data of all datasets of one data source given by the selected dataset.
Text: Create Header Table: Creates a table with placeholders for the selected global attributes.
Text: Load Placeholder text: Loads attribute values for all placeholders in the active page..
2D Cycle: Splits a signal into cycles and creates a separate dataset for each cycle.
More New Features¶
Error Bars for xy datasets
New Editor for UniScript files.
New Expat version 1.95.5 (see Overview XML).
New sqlite version 2.8.6 (see Overview SQLite).
New pcre version 4.2 (see regsplit).
UniScript: The length of constant strings is no longer limited to 255 characters.
UniScript: The size of UniScript functions and script files is no longer limited.
Please note UniScript-Libraries (see saveiclib) and Extension-DLLs (see loadlib) created for UniPlot 3.x need to be rebuild for UniPlot 4.x.
Using UniPlot 3 and UniPlot 4 on the same computer¶
The file format (
.IPW
) has been changed in UniPlot 4. UniPlot 4 can read all former UniPlot file formats, but older UniPlot versions cannot read the UniPlot 4 file format. Some safety have been built in to prevent problems with the new format:If you open a UniPlot 3 file with UniPlot 4 you will be warned if you want to save this file with UniPlot 4. You can save the file under a different name to make sure that the original file can continue to be opened by UniPlot 3.
If you try to open a UniPlot 4 file with UniPlot 3 you will get a message box that this file has been created by a newer version. The file can then be opened by the current UniPlot Viewer. Viewer 4 is installed with UniPlot 3.6.7 and 3.6.8.
New and altered UniScript Functions¶
New Functions in UniPlot 4.0.0 |
|
---|---|
ADDIN_AddToUI adds a function to the UniPlot user interface. |
|
DocGetProtectionComment retrieves the comment that is displayed when a password protected document is opened. |
|
DocGetProtectionFlags returns the protection flag. |
|
DocIsReadOnly checks if the read-only flag is set. |
|
DocSetProtectionFlags sets the password, the comment and the protection flag. |
|
DocSetReadOnly sets the read-only flag. |
|
EdFind finds a string in an editor. |
|
EdFindReplace replaces a string in an editor. |
|
EdGetCurrentPos returns the cursor position in characters from the beginning of the file. |
|
EdGetCursorPos returns the cursor position in column/row coordinates. |
|
EdGetLineFromPos returns the line number for the given position. |
|
EdGetPosFromLine returns the position of the given line. The position is the number of characters from the beginning of the file. |
|
EdGetWnd returns the window handle |
|
EdGotoPos sets the cursor to the given position |
|
EdIsReadOnly checks if the read-only flag is set. |
|
EdSetReadOnly sets the read-only flag. |
|
GetProfileSection returns all keys with their values of the specified section in the form key=value. |
|
GetProfileSectionNames returns a string vector with the section names. |
|
GridLoadCallback_xxx is called when the user presses the Load button in the data browser. |
|
ImageIsFrame checks if the picture frame is visible. |
|
ImageMirror reflects the image vertically. |
|
ImageRotate90 rotates the image by 90 degrees clockwise or counterclockwise. |
|
ImageSaveAs saves the picture in its orignal format as a file. |
|
ImageShowFrame shows or hides the frame of the picture. |
|
The NC_DlgGetFileName function returns the NC file name of the currently open file in the NC file browser. |
|
OLESavePicture saves one OLE object in a file. |
|
PageSetBackgroundPageName selects the page given by its name to be displayed in the background. The page must belong to the same document. |
|
PageSetForegroundPageName selects the page given by its name to be displayed in the foreground. The page must belong to the same document. |
|
RemoveDirectory deletes an existing directory. The directory must be empty, and it must not be the current working directory or the root directory. |
|
Is replaced by EdFindReplace. |
|
Is replaced by EdFind. |
|
Is replaced by EdFoldAll. |
|
Is replaced by EdGetMarginType. |
|
Is replaced by EdSetMarginType |
|
Is replaced by EdToggleFolding. |
|
TYAddData adds data to a y/t dataset (1D dataset). |
|
TYSetData sets the coordinates of a y/t datasets (1D-dataset). |
|
TableAddBrush adds a new bush (fill color) to the brush list. |
|
TableAddFont adds a font to font list of a table object. |
|
TableAddFormat adds a format string and cell type to a table object. |
|
TableAddPen adds a pen to the list of pens of the specified table object. |
|
TableCreate create a new table object. |
|
TableDeleteColumn deletes a table column. |
|
TableDeleteRow removes the specified row from the table |
|
TableDestroy destroys the given table object and frees any memory the object occupied. |
|
TableGetAlign retrieves the text alignment for all cells or a range of cells. |
|
TableGetAttrib returns a matrix of cell attributes. |
|
TableGetBrushIndex returns a matrix with the brush indices. |
|
TableGetBrushList returns a matrix with 3 columns. Each row specifies a color used in the table. |
|
TableGetColumnWidth returns a vector with column width in centimeters. |
|
TableGetEdgeDistance returns the distance between the text and the left cell edge. |
|
TableGetFontIndex returns a vector of font indices. |
|
TableGetFontList returns a vector with font handles. |
|
TableGetFormatIndex returns a matrix with the format indices. |
|
TableGetFormatList returns a string matrix with two columns with cell format information. |
|
TableGetName returns a matrix of cell names. |
|
TableGetPenList returns a vector with pen handles. A pen is used to draw the cell border line. |
|
TableGetRowHeight returns a vector with row heights in centimeters. |
|
TableGetSelection returns the current selection. |
|
TableGetSize returns the number of rows and columns. |
|
TableGetText returns a matrix of cell text. |
|
TableGetTextAngle returns the text directions of all cells or a selection of cells. |
|
TableGetTextExt returns the width and height of cell text. |
|
TableInsertColumn inserts a new column of cells to the specified table. |
|
TableInsertRow inserts a new row of cells to the specified table. |
|
TableIsCellMerged returns TRUE (1) if the specified cell belongs to a merged cell. |
|
TableMergeCells specifies which neighbouring cells are merged. |
|
TableSetAlign sets the text alignment for all cells or a range of cells. |
|
TableSetAttrib sets the cell attributes. |
|
TableSetBorderPenIndex sets the pen index that is used to draw the border. Every cell is enclosed by 4 border lines. |
|
TableSetBrushIndex sets the brush indices. |
|
TableSetColumnWidth sets the column width in centimeters. |
|
TableSetEdgeDistance sets the distance between the text and the cell edge. |
|
TableSetFontIndex sets the font index. |
|
TableSetFormatIndex sets the format indices. |
|
TableSetName sets the cell name. |
|
TableSetRowHeight sets the row height in centimeters. |
|
TableSetSelection sets the selection. |
|
TableSetText sets the cell text. |
|
TableSetTextAngle sets the text direction of all cells or a selection of cells. |
|
TableUnMergeCell splits a merged cell. |
|
TableUsePlaceholderDialog spedifies the dialog box which will be displayed if the table is double-clicked. |
|
XYGetErrorbarConfig returns the error bar settings. |
|
XYGetFilterFunctions returns a scalar string with filter functions. |
|
XYGetGetOrgDataFlag returns the flag set with XYSetGetOrgDataFlag. |
|
XYGetScaleOffset gets the scaling for the x- and y coordinates of the given dataset. |
|
XYIsFilterUsed checks if the original data or the filtered data is displayed. |
|
XYIsMarkerOrgData checks if the marker are displayed for the original data points or the filtered data points. |
|
XYIsMonoton returns TRUE (1) if the x-coordinates are strictly monoton increasing. |
|
XYSetData sets the xy-coordinates of a dataset. |
|
XYSetErrorbarConfig sets the error bar settings. |
|
XYSetFilterFunctions sets one or more filter functions for a 2D dataset. |
|
XYSetGetOrgDataFlag specifies if the XYGetData function returns the original data or the filtered data. |
|
XYSetScaleOffset sets the scaling for the x- and y-coordinates of the given dataset. |
|
XYShowMarkerOrgData specifies if the dataset markers are displayed for the original data or the filtered data. |
|
The XYUpdate functions recalculates the filter functions of a 2D dataset. |
|
XYUseFilter specifies if the filter functions are used to calculate the output data. |
|
XYZGetBubbleAttribute returns the bubble plot settings. |
|
XYZGetBubbleSize returns the bubble scaling values. |
|
XYZGetBubbleSize returns the bubble diameter in centimeters. |
|
XYZIsBubbleVisible indicates whether the bubbles are visible. |
|
XYZSetBubbleAttribute sets the bubble plot attributes. |
|
XYZSetBubbleScaleValues sets the scale values to calculate the bubble size. |
|
XYZSetBubbleSize sets the bubble size in centimeters. |
|
XYZShowBubble shows or hides bubbles marking the original position of the data points. The bubble size and fill color can depend on the Z-Value. |
|
_mem returns the size of used memory allocated by UniScript. |
|
base64_decode decodes a string that had been encoded using the base64_encode function. |
|
base64_encode encodes data into the base64 format |
|
Is replaced by base64_encode. |
|
Is replaced by base64_encode. |
|
eval evaluates the string given as UniScript code. |
|
eval_file loads a file with UniScript program code. |
|
evalp evaluates UniScript program code. |
|
evalp_file loads a file with UniScript program code. |
|
get_prototype returns the prototype string of a UniScript function. |
|
nc_filename returns the file name for a given ncid. |
|
nc_varcopy copies the data of a variable from one NC file to another NC file. The variable must exist in both files and must have the same number of points. |
|
profiler_start starts the profiler. The profiler can be used for analyzing the run-time behavior and performance of programs. |
|
profiler_stop stops the profiler that has been started with the profiler_start function. The profiler can be used for analyzing the run-time behavior and performance of programs. |
Altered Functions in UniPlot 4.0.0 |
|
---|---|
DocCreate creates a new document or opens an existing document. The document can contain pages with diagrams. The document will be displayed in a window. |
|
GetExceptionInfo returns the current exception information vector. |
|
GetTickCount returns the number of milliseconds that have elapsed since UniPlot was started. |
|
GetUserDirectory returns the UniPlot user directory. |
|
ImageCreate creates a picture object. |
|
ImageGetLinkType returns the link type. |
|
MnGetStrings returns the menu item strings of the specified menu. |
|
PageSaveAsBitmap creates a bitmap (.BMP) or JPEG (.JPG) file from the given page. |
|
TYCreate creates a new y/t datasets (1D dataset). |
|
TYSetMinAndDelta sets the minimum value x-min and the distance delta between 2 x-coordinates. |
|
The XYAddData function adds data to an existing dataset. |
|
XYIsSpline determines whether the data points are connected by a spline. |
|
XYIsTYDataset determines whether the dataset is a 1D dataset (yt-dataset). |
|
XYSetSpline determines if the data points should be connected with a spline or a polygon. |
|
poly_hull calculates the convex hull in the x/y plane. |
|
tic retrieves the number of milliseconds that have elapsed since UniPlot was started. |
id-1800085