Verbatim copying and distribution of this entire article If (x_max > floatmax || y_max > floatmax || z_max > floatmaxĪdded xscale or yscale is log.png, #38006Ĭopyright © 2022 Free Software Foundation, Inc. Static double floatmax = std::numeric_limits::max () If (! props.is_visible () & props.get_tag () = "legend")
Legends are not drawn when "visible" is "off".
Opengl_renderer::draw_axes (const axes::properties& props) So obviously drawing the axes (and the entire following plot graph) seems to stop here, what corresponds to the behaviour I see in Octave: I get an empty plot window without any graph, and on subsequent events in the plot window (onMouseClick, onResize. (1) Scale data, or (2) Use gnuplot warning: openglrenderer: data values greater than. openglrenderer: data values greater than float capacity.
#Gnu octave scaling axes Patch#
Attached is a patch which also handles the case where a script would set the upper and lower axis limit to the same value. After the warning a return statement directly follows. GNU Octave - Bugs: bug 43606, plotting with axis limits at 0. The code throwing the warning is in libinterp/corefcn/ and presumably prepares and draws the axes for the plot window. I just found the corresponding code in the online Mercurial browser. I've attached a png of the figure I get using the qt graphics when you see the warning from are you using the fltk, or qt graphics toolkit? You can check by entering "graphics_toolkit" at Octave's prompt (I don't encounter the error from for fltk either). "opengl_renderer: data values greater than float capacity. I do not see the warning from libinterp/corefcn/. In each case, the script (test_log.m which is attached) produces the output below.Įrror: 'test_lot' undefined near line 1 column 1 I've tried both the default branch and the stable branch. I now see warnings due to zeroes in xdata and ydata as well as zeros in xlim and ylim. Warning: opengl_renderer: data values greater than float capacity. > warning: opengl_renderer: data values greater than float capacity. Warning: axis: omitting non-positive data in log plot First: octave:61> plot (x, f, 'linewidth', 5) This command will create the same plot as above, but here we specify the graph property linewidth to have the value 5 rather than 1. Let us try to change the plot of the graph above. I'm attaching an updated script and figure image. Time for action changing the figure properties.