Hi Grigory, As part of the troubleshooting I have been doing, I used the ternary operator to set the value to zero outside of the display values: <function> x<0 ? 0 : x<180 ? $fnct_rms_fullwave : 0</function> This did not help... BR,
Gene L. Harding, PE Associate Professor of ECET Purdue University 574-520-4190 https://polytechnic.purdue.edu/south-bend/ -----Original Message----- From: LON-CAPA-users <lon-capa-users-boun...@mail.lon-capa.org> On Behalf Of SIMIN, GRIGORY Sent: Monday, April 6, 2020 3:19 PM To: Discussion list for LON-CAPA users <lon-capa-users@mail.lon-capa.org> Subject: Re: [LON-CAPA-users] gnuplot problem Stuart, For a GNU Function plot, is there a way to set the range of "x" or "t" arguments? Thanks Grigory ------------------------------- Grigory Simin, PhD, Professor, Electrical Engineering Department University of South Carolina 301 Main Street, Room 3A80 Swearingen Engineering Center Columbia, SCĀ 29208 -----Original Message----- From: LON-CAPA-users [mailto:lon-capa-users-boun...@mail.lon-capa.org] On Behalf Of Raeburn, Stuart Sent: Monday, April 6, 2020 15:11 To: Discussion list for LON-CAPA users <lon-capa-users@mail.lon-capa.org> Subject: Re: [LON-CAPA-users] gnuplot problem Hello Gene, If the text: "dynamically generated plot" is displayed instead of an image, when using gnuplot, then it means gnuplot was unable to process the data file generated by LON-CAPA for your plot. That data file will have been written to /home/httpd/perl/tmp/ on your server's filesystem with a file name that includes your username, and ends _plot.data. and there will also be an error message in the web server's error log file, e.g., /var/log/httpd/ssl_error_log, with your problem listed as the referer. (You'd need to ask your system administrator to look in the log files). I was able to successfully generate plots for both functions: $fnct_rms_halfwave="1/$pi * &sqrt(1/2*($pi-x) + 1/4*sin(2*x))"; $fnct_rms_fullwave="&sqrt(2/$pi) * &sqrt(1/2*($pi-x) + 1/4*sin(2*x))"; in a problem in my Authoring Space (gnuplot version: 4.4.2). You might double check that there is not a typo in the problem XML, where you refer to the function, e.g., <function>$fnct_rms_halfwave</function> Otherwise, there could be an issue with other attributes defined for the plot, aside from the functions themselves (although in most cases, LON-CAPA replaces invalid values with valid ones, before creating the _plot.data file passed to gnuplot). Stuart Raeburn LON-CAPA Academic Consortium ________________________________________ From: LON-CAPA-users <lon-capa-users-boun...@mail.lon-capa.org> on behalf of Harding, Gene L <glhar...@purdue.edu> Sent: Monday, April 6, 2020 11:22 AM To: Discussion list for LON-CAPA users Subject: [LON-CAPA-users] gnuplot problem Hi everyone, I am having trouble generating a gnuplot using the following two functions in LON-CAPA: $fnct_rms_halfwave="1/$pi * &sqrt(1/2*($pi-x) + 1/4*sin(2*x))"; $fnct_rms_fullwave="&sqrt(2/$pi) * &sqrt(1/2*($pi-x) + 1/4*sin(2*x))"; Instead of rendering a plot, LON-CAPA just displays a message that says "dynamically generated plot". It plots fine in Geogebra. Does anyone know what's going on with the gnuplot? Best regards, Gene L. Harding, PE Associate Professor of ECET Purdue University 574-520-4190 https://polytechnic.purdue.edu/south-bend/ _______________________________________________ LON-CAPA-users mailing list LON-CAPA-users@mail.lon-capa.org https://protect2.fireeye.com/v1/url?k=2f72ee47-73e0d4f6-2f72a086-ac1f6b0e67f2-150b4c994e69e1d4&q=1&e=7cb54854-e62e-40e0-ab34-929308cfdf1e&u=http%3A%2F%2Fmail.lon-capa.org%2Fmailman%2Flistinfo%2Flon-capa-users _______________________________________________ LON-CAPA-users mailing list LON-CAPA-users@mail.lon-capa.org http://mail.lon-capa.org/mailman/listinfo/lon-capa-users _______________________________________________ LON-CAPA-users mailing list LON-CAPA-users@mail.lon-capa.org http://mail.lon-capa.org/mailman/listinfo/lon-capa-users