Discussion Overview
The discussion focuses on how to plot step functions in gnuplot, particularly the floor and greatest integer functions. Participants explore various methods to achieve the desired visual representation of these functions from the command line, including adjustments to sampling resolution and the use of piecewise-defined functions.
Discussion Character
- Technical explanation
- Exploratory
- Mathematical reasoning
Main Points Raised
- One participant expresses confusion regarding a demo on the gnuplot website and requests guidance on plotting step functions, specifically the floor function.
- Another participant provides examples of plotting the floor and ceil functions but notes that these examples seem to require external data files.
- A later reply mentions that while plotting the functions results in horizontal lines, slanted lines appear connecting these horizontal segments, prompting a request for a solution to eliminate them.
- One suggestion is made to increase the sampling resolution using the command "set samples 10000" to improve the appearance of the plot.
- Another participant shares a method involving piecewise-defined functions to create step functions, suggesting the use of illegal parts to achieve the desired output.
- A further suggestion is made to declare a step function using the signum function with a specific command.
Areas of Agreement / Disagreement
Participants present multiple approaches and suggestions, indicating that there is no consensus on a single method for plotting step functions in gnuplot. The discussion remains unresolved as participants explore different techniques.
Contextual Notes
Some limitations include the dependence on sampling resolution and the potential need for external data files, which may affect the plotting of step functions. The effectiveness of different methods has not been fully established.