Hi,
I simple test the plotSetXTicCount command following the user guide. Codes are below. I got an error message: Undefined symbol: 'plotSetXTicCount'. Any ideas on what is wrong?. I use GAUSS 15. Thanks.
Best
Qingliang
//Create some data to plot
x = seqa(-3, 0.1, 61);
y = x.^3 + rndn(rows(x), 1);
//Plot the data
plotXY(x, y);
//Declare and initialize plotControl structure
struct plotControl myPlot;
myPlot = plotGetDefaults("xy");
//Set the x-axis to have 8 tic marks
plotSetXTicCount(&myPlot, 8);
//Plot the data, using the plotControl structure
plotXY(myPlot, x, y);
4 Answers
0
I am running GAUSS 15.1.3 for Mac and was able to run your code snippet successfully. Let's verify your GAUSS version by printing the output of this command
sysstate(1,0);
The procedure plotSetXTicCount
is defined in the file plotset.src
. Try executing that file by running this command
run plotset.src;
If this does not cause any errors, then try running your code again. Please post all output and errors you get from this and we should be able to help you resolve the problem.
0
Hi,
Thanks for your reply. After I run the command: "run plotset.src", the code works. But it does not work without "run plotset.src". So every time, I will have to run the command before using plotSetXTicCount? Or how can I fix the bug? Following is my GAUSS version.
sysstate(1,0);
15.000000
1.0000000
3.0000000
1.0000000
9.0000000
0.00000000
0.00000000
0.00000000
Best
Qingliang
0
No, you should not have to run plotset.src
every time. This makes it sound like there is a problem with your GAUSS library file (gauss.lcg).
You can check to see if plotset.src
is in your GAUSS library by either
- On the GAUSS 'Source Page', select View -> Library Tool from the main GAUSS menu.
- In the newly opened 'Library Tool' Window, expand the 'gauss.lcg' node and search for
plotset.src
in the list.
or enter this command at the GAUSS input prompt
lib gauss -list
If plotset.src
is not in your GAUSS library, then you can add it back to the GAUSS library by either
- Click the wrench icon to the right of
gauss.lcg
in the Library Tool. - Select 'Add Files' from the newly opened menu.
- Browse to GAUSSHome/src (/Users/YourUserName/gauss15/src on Mac, C:\gauss15\src on Windows)
- Select
plotset.src
and add from the OS File Window.
or enter this command at the GAUSS input prompt
lib gauss plotset.src
0
plotset.src is there in GAUSS library file (gauss.lcg). However, plotSetXTicCount is not in the plotset.src file. I use command "lib gauss plotset.src" to update the library file and it works now. Thanks a lot!! Have a nice day!
Your Answer
4 Answers
I am running GAUSS 15.1.3 for Mac and was able to run your code snippet successfully. Let's verify your GAUSS version by printing the output of this command
sysstate(1,0);
The procedure plotSetXTicCount
is defined in the file plotset.src
. Try executing that file by running this command
run plotset.src;
If this does not cause any errors, then try running your code again. Please post all output and errors you get from this and we should be able to help you resolve the problem.
Hi,
Thanks for your reply. After I run the command: "run plotset.src", the code works. But it does not work without "run plotset.src". So every time, I will have to run the command before using plotSetXTicCount? Or how can I fix the bug? Following is my GAUSS version.
sysstate(1,0);
15.000000
1.0000000
3.0000000
1.0000000
9.0000000
0.00000000
0.00000000
0.00000000
Best
Qingliang
No, you should not have to run plotset.src
every time. This makes it sound like there is a problem with your GAUSS library file (gauss.lcg).
You can check to see if plotset.src
is in your GAUSS library by either
- On the GAUSS 'Source Page', select View -> Library Tool from the main GAUSS menu.
- In the newly opened 'Library Tool' Window, expand the 'gauss.lcg' node and search for
plotset.src
in the list.
or enter this command at the GAUSS input prompt
lib gauss -list
If plotset.src
is not in your GAUSS library, then you can add it back to the GAUSS library by either
- Click the wrench icon to the right of
gauss.lcg
in the Library Tool. - Select 'Add Files' from the newly opened menu.
- Browse to GAUSSHome/src (/Users/YourUserName/gauss15/src on Mac, C:\gauss15\src on Windows)
- Select
plotset.src
and add from the OS File Window.
or enter this command at the GAUSS input prompt
lib gauss plotset.src
plotset.src is there in GAUSS library file (gauss.lcg). However, plotSetXTicCount is not in the plotset.src file. I use command "lib gauss plotset.src" to update the library file and it works now. Thanks a lot!! Have a nice day!