Menu

#916 Plot with steps shows one where there should be many

closed-works-for-me
nobody
2D plot (258)
5
2010-08-23
2010-08-23
No

gnuplot 4.5 patchlevel 0 (also 4.4 patchlevel 0)

Doing "plot[1:10] 1/floor(x) with step" should show 10 steps, but it shows only one.

Discussion

  • Ethan Merritt

    Ethan Merritt - 2010-08-23

    It's that old "floating arithmetic requires a decimal point" gotcha.

    plot [1:10] 1.0/floor(x) with step

     
  • Ethan Merritt

    Ethan Merritt - 2010-08-23
    • status: open --> closed-works-for-me
     

Log in to post a comment.