Skip to content

Commit 7851b8a

Browse files
author
Robert Soliday
committed
Improved SciPlot used by the cartesian plot widget. This should be used in place of the XrtGraph code.
The XrtGraph code is not open source and from a company that no longer exists. Some of the SciPlot changes include: 1. Ability to support multiple Y axes. When using multiple axes, the associated line colors are displayed around the axis label. 2. Added the step plot type and fill-under plot type. 3. Added time plot type for scalar Y values. 4. Plots update each second even if PVs don't update. Fixed a few Segfaults. Fixed issues with the color palette and the attributes screen.
1 parent e24145d commit 7851b8a

25 files changed

+24966
-21418
lines changed

medm/SciPlot.c

+3,635-4,651
Large diffs are not rendered by default.

medm/SciPlot.h

+236-256
Large diffs are not rendered by default.

medm/SciPlotP.h

+301-253
Large diffs are not rendered by default.

medm/dialogs.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1851,7 +1851,7 @@ static void updatePrintSetupFromDialog()
18511851

18521852
/* Command */
18531853
string = XmTextFieldGetString(printSetupCommandTF);
1854-
sprintf(printCommand, string);
1854+
sprintf(printCommand, "%s", string);
18551855
XtFree(string);
18561856
XmTextFieldSetCursorPosition(printSetupCommandTF, 0);
18571857

@@ -1940,13 +1940,13 @@ static void updatePrintSetupFromDialog()
19401940

19411941
/* Title string */
19421942
string = XmTextFieldGetString(printSetupTitleTF);
1943-
sprintf(printTitleString, string);
1943+
sprintf(printTitleString, "%s", string);
19441944
XtFree(string);
19451945
XmTextFieldSetCursorPosition(printSetupTitleTF, 0);
19461946

19471947
/* Filename */
19481948
string = XmTextFieldGetString(printSetupFileTF);
1949-
sprintf(printFile, string);
1949+
sprintf(printFile, "%s", string);
19501950
XtFree(string);
19511951
XmTextFieldSetCursorPosition(printSetupFileTF, 0);
19521952

0 commit comments

Comments
 (0)